vmware player on debian / sidux
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4034
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
I needed this to get the correct any-any-update extra kernel stuff for making the module:
any-any (for vmware 2.x). Scroll down the list of packages until you see the vmware-any-any-update... tar.gz file, latest version.

For 2.6.24, get the 115a any any here

For 2.6.24, get 116 here

any-any is now required with vmware player and Pentium M and Pentium 4, along with AMD processors, as usual

Read more on any any in the vmware forums. More in this thread, including a (now obsolete) warning about intel processors. More on any any on kernel trap, including advice on compiling to 2. 6 kernel with that, also stuff on nvidia.

NOTE: any-any patch was required to install vmware on a Pentium M and Pentium 4. so it looks like the intel cpu warning is not valid any longer.

That's using standard vmware player tar-gzip file: www.vmware.com/download/player/

To install vmware player:
  1. For latest kernels, make sure to install this package to avoid an install error: apt-get install build-essential. This will install g++ g++-4.1 libstdc++6-4.1-dev build-essential
  2. Unzip vmware package
  3. change directory to that package directory in console
  4. Run the vmware installer script
  5. When the script asks if you want to run vmware-config.pl say no.
  6. run the anypatch script if you run AMD, Pentium M or 4. Try it without it first if you are using older Pentiums, II or III.
  7. at the end of the anypatch script, you will be asked if you want to run vmware-config.pl. Say yes.
  8. If all goes well, vmware will now install


Gotchas: if your kernel header and kernel stuff is compiled with a later gcc than you have installed in your system, vmware install will fail.
So install a recent but ideally not the very latest kernel, dist-upgrade your system to get a corresponding gcc, and you should be good to go.

:: Quote ::
the question where you give no is: do you want to run vmware-config.pl, say no, install any any patch and you will be prompted to go on with install of vmware


Create vmdk file with Qemu
NEW: I just found this site, easyvmx.com, which generates a nice vmx AND vmdk file for you automatically.
Or you can do it yourself:
I used this method to make the vmdk file with qemu: software.newsforge.com/article.pl?sid=06/05/16/1940214

:: Quote ::
To create a disk image, run:
:: Code ::
qemu-img create -f vmdk imagename.vmdk nG

where n is the size of the disk image you want to create. Note that the size of the disk image is the size it can eventually grow to -- not the size it will be when it's first created. So, if you create a 20G image, it will only occupy about 3MB on disk without any data.


Create vmx files
NEW: I just found this site, easyvmx.com, which generates a nice vmx AND vmdk file for you automatically.
Or you can use this sample vmx filet, paste and save to some file called say linux1.vmx
This is the file that vmware player will use to launch the install of whatever you want installed.:

:: Code ::
#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "/path/to/qemu-generated/os/linux.vmdk"
memsize = "256"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
ide1:0.autodetect = "TRUE"
floppy0.present = "FALSE"
ethernet0.present = "TRUE"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "win2k Pro"
guestOS = "win2000pro"
nvram = "win2000Pro.nvram"
MemTrimRate = "-1"

ide0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d 06 54 69 87 3d ea-48 d2 10 4c c9 ec 16 b1"
uuid.bios = "56 4d 06 54 69 87 3d ea-48 d2 10 4c c9 ec 16 b1"
ethernet0.generatedAddress = "00:0c:29:ec:16:b1"
ethernet0.generatedAddressOffset = "0"


tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"

uuid.action = "create"

checkpoint.vmState = ""

usb.autoConnect.device0 = ""
usb.autoConnect.device1 = ""
usb.autoConnect.device2 = ""
ethernet0.connectionType = "hostonly"


to have the system boot from an iso, To do this replace:

:: Code ::

ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
with:
ide1:0.fileName = "C:\targetcd.iso"
ide1:0.deviceType = "cdrom-image"

Back to top
Legacy fixes for vmware, just in case they are needed
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4034
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
These are previous fixes for vmware, I'll leave these here just in case anyone needs to refer to them in the future for some unknown issue.

Previous any-any stuff:
any-any 109 (for version 1.x of vmware)

Previous fixes:
This fix is superceded by the new any-any-112 patch, and is not required now
Before running it, do this fix:
:: Quote ::
ok, workaround for 2.6.22 kernels and vmware:
1) download knihovny.cvut.cz/ftp/pub/vmware/ ... 110.tar.gz
2) unzip
3) note: the "runme.pl" script throws an error message for me, saying i run a unkown version of vmware (my version: 6)
if the any-any update works for you, continue with "vmware-config.pl"
4) copy the file "vmnet.tar" from the any-any-update110 to "/usr/lib/vmware/modules/source/" (overwrite existing vmnet.tar!)
5) run "vmware-config.pl"
6) everyting should work fine.



This fix may no longer by needed, I think it is not:
There may be an issue for some users, especially debian users, with recent updates. Those are fixed by first running this, assuming a fully dist-upgraded system:

:: Quote ::
open /usr/lib/vmware/lib/wrapper-gtk24.sh as root.
search for the lines
:: Code ::
vm_run() {
    local exitCode;

add this after:
:: Code ::
  # Fix for vmplayer pulling in libdbus-1.so.2 instead of .3
   export LD_PRELOAD=/usr/lib/libdbus-1.so.3:$LD_PRELOAD


so your new /usr/lib/vmware/lib/wrapper-gtk24.sh looks like this:

:: Code ::
# Run "$binary" while watching its progress on its stderr.
vm_run() {
   local exitCode;

   # Fix for vmplayer pulling in libdbus-1.so.2 instead of .3
   export LD_PRELOAD=/usr/lib/libdbus-1.so.3:$LD_PRELOAD

   # Append any libraries that are still missing.
   if [ "$VMWARE_USE_SHIPPED_GTK" = 'force' ]; then

roughnecks on kanotix.com

That works perfectly, and without that fix vmware will install but won't start.
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4034
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
With later, 2.6.22 kernels, you may get this error after running any-any patch, while building module:

:: Code ::
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
make[2]: *** [/tmp/vmware-config1/vmmon-only/common/task.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22.5-rc1-slh-smp-1'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmmon-only'
Unable to build the vmmon module.

This is resolved by installing: apt-get install build-essential, which will install these packages:
:: Code ::
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  g++ g++-4.1 libstdc++6-4.1-dev
Suggested packages:
  g++-multilib g++-4.1-multilib gcc-4.1-doc libstdc++6-4.1-doc
The following NEW packages will be installed:
  build-essential g++ g++-4.1 libstdc++6-4.1-dev

then just start any-any runme.pl again, and the module should build fine.

This is on debian systems, sid. I have not tested this on testing or stable, but this kernel shouldn't be in stable anyway so that shouldn't be an issue.
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4034
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
2.6.24 build issue, after creating symbolic link:

more: communities.vmware.com/thread/113938

:: Code ::
may require -s link, eg:
ln -s /usr/src/linux-headers-2.6.24-rc8-git4-slh-smp-1/include/asm-x86 /usr/src/linux-headers-2.6.24-rc8-git4-slh-smp-1/include/asm-i386

:: Code ::
./runme.pl
Updating /usr/bin/vmware ... failed
Cannot open /usr/bin/vmware: No such file or directory
Updating /usr/bin/vmnet-bridge ... No patch needed/available
Updating /usr/lib/vmware/bin/vmware-vmx ... No patch needed/available
Updating /usr/lib/vmware/bin-debug/vmware-vmx ... No patch needed/available
VMware modules in "/usr/lib/vmware/modules/source" has been updated.

Before running VMware for the first time after update, you need to configure it
for your running kernel by invoking the following command:
"/usr/bin/vmware-config.pl". Do you want this script to invoke the command for
you now? [yes]

Making sure services for VMware Player are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done
   Blocking file system:                                               done
   Bridged networking on /dev/vmnet0                                   done
   Host network detection                                              done
   DHCP server on /dev/vmnet1                                          done
   Host-only networking on /dev/vmnet1                                 done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                    done

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the theme icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

/usr/share/applications/vmware-player.desktop: error: value "vmware-player.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
Error on file "/tmp/vmware-config3/vmware-player.desktop": Failed to validate the created desktop file
Unable to install the .desktop menu entry file. You must add it to your menus
by hand.
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Player is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel?
[/lib/modules/2.6.24-rc8-git4-slh-smp-1/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Workstation 6.0.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmmon-only'
make -C /lib/modules/2.6.24-rc8-git4-slh-smp-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-rc8-git4-slh-smp-1'
/usr/src/linux-headers-2.6.24-rc8-git4-slh-smp-1/arch/x86/Makefile:15: /usr/src/linux-headers-2.6.24-rc8-git4-slh-smp-1/arch/x86/Makefile_32: No such file or directory
  CC [M]  /tmp/vmware-config3/vmmon-only/linux/driver.o
In file included from include/asm/mpspec.h:2,
                 from include/asm/smp_32.h:15,
                 from include/asm/smp.h:2,
                 from include/linux/smp.h:19,
                 from include/asm/desc_32.h:10,
                 from include/asm/desc.h:2,
                 from include/asm/elf.h:80,
                 from include/linux/elf.h:6,
                 from include/linux/module.h:14,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:16:
include/asm/mpspec_32.h:6:25: error: mach_mpspec.h: No such file or directory
In file included from include/asm/mpspec.h:2,
                 from include/asm/smp_32.h:15,
                 from include/asm/smp.h:2,
                 from include/linux/smp.h:19,
                 from include/asm/desc_32.h:10,
                 from include/asm/desc.h:2,
                 from include/asm/elf.h:80,
                 from include/linux/elf.h:6,
                 from include/linux/module.h:14,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:16:
include/asm/mpspec_32.h:8: error: ‘MAX_MP_BUSSES’ undeclared here (not in a function)
include/asm/mpspec_32.h:22: error: ‘MAX_IRQ_SOURCES’ undeclared here (not in a function)
In file included from include/asm/smp.h:2,
                 from include/linux/smp.h:19,
                 from include/asm/desc_32.h:10,
                 from include/asm/desc.h:2,
                 from include/asm/elf.h:80,
                 from include/linux/elf.h:6,
                 from include/linux/module.h:14,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:16:
include/asm/smp_32.h:157:26: error: mach_apicdef.h: No such file or directory
In file included from include/asm/smp.h:2,
                 from include/linux/smp.h:19,
                 from include/asm/desc_32.h:10,
                 from include/asm/desc.h:2,
                 from include/asm/elf.h:80,
                 from include/linux/elf.h:6,
                 from include/linux/module.h:14,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:16:
include/asm/smp_32.h: In function ‘hard_smp_processor_id’:
include/asm/smp_32.h:161: error: implicit declaration of function ‘GET_APIC_ID’
In file included from include/asm/irq.h:2,
                 from include/linux/irq.h:23,
                 from include/asm/hardirq_32.h:5,
                 from include/asm/hardirq.h:2,
                 from include/linux/hardirq.h:7,
                 from include/linux/interrupt.h:11,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:24:
include/asm/irq_32.h:15:25: error: irq_vectors.h: No such file or directory
In file included from include/asm/irq.h:2,
                 from include/linux/irq.h:23,
                 from include/asm/hardirq_32.h:5,
                 from include/asm/hardirq.h:2,
                 from include/linux/hardirq.h:7,
                 from include/linux/interrupt.h:11,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:24:
include/asm/irq_32.h: At top level:
include/asm/irq_32.h:49: error: ‘NR_VECTORS’ undeclared here (not in a function)
In file included from include/asm/hardirq_32.h:5,
                 from include/asm/hardirq.h:2,
                 from include/linux/hardirq.h:7,
                 from include/linux/interrupt.h:11,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:24:
include/linux/irq.h:180: error: ‘NR_IRQS’ undeclared here (not in a function)
In file included from include/linux/interrupt.h:11,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:24:
include/linux/hardirq.h:40:27: warning: "NR_IRQS" is not defined
In file included from /tmp/vmware-config3/vmmon-only/./include/vmci_kernel_defs.h:26,
                 from /tmp/vmware-config3/vmmon-only/./common/vmciContext.h:19,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.h:21,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:53:
/tmp/vmware-config3/vmmon-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config3/vmmon-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config3/vmmon-only/./include/vmci_kernel_defs.h:26,
                 from /tmp/vmware-config3/vmmon-only/./common/vmciContext.h:19,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.h:21,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:53:
/tmp/vmware-config3/vmmon-only/./include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here
/tmp/vmware-config3/vmmon-only/linux/driver.c:172: warning: initialization from incompatible pointer type
/tmp/vmware-config3/vmmon-only/linux/driver.c:176: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config3/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config3/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-rc8-git4-slh-smp-1'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config3/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4034
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
With kernel 2.6.35 the Linux devs have, again, changed some APIs so you'll need to do a manual update of some vmplayer files to enable module compilation.

Thanks to www.rrfx.net for this fix.

First, download and install the latest vmware, 3.1 as I write this: downloads.vmware.com/d/details/player_310/ZGp0YmQqQHdiZHR3ZQ== (note: you must have a vmware account to download this)
change directory to the .bundle file, then execute it: sh ./<bundle file name>
then run this set of commands:
:: Code ::
cd /tmp
tar xvf /usr/lib/vmware/modules/source/vmmon.tar -C /tmp
perl -pi -e 's,_range,,' vmmon-only/linux/iommu.c
tar cvf /usr/lib/vmware/modules/source/vmmon.tar vmmon-only


also, although the module will build, there might be a vsock module error, you can fix that by using the patch from this page: www.debuntu.org/how-wmware-workstation-7.1-ubuntu-maverick-meerkat-10.10
note that if you update your kernel you'll have to do this again manually.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours