Showing posts with label vmware. Show all posts
Showing posts with label vmware. Show all posts

2007-03-16

2.6.20-1.2925.fc6 and vmware


$ sudo vmware-config.pl
...
In file included from /tmp/vmware-config1/vmmon-only/linux/driver.c:80:
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
make[2]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2925.fc6-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmmon-only'
Unable to build the vmmon module.
The Fix
$ cd /usr/lib/vmware/modules/source
$ sudo cp vmmon.tar vmmon.tar.orig
$ vi vmmon-only/include/compat_kernel.h
...
static inline _syscall1(int, compat_exit, int, exit_code);
...
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
static inline _syscall1(int, compat_exit, int, exit_code);
#endif
...
$ sudo rm vmmon.tar
$ sudo tar cf vmmont.tar vmmon-only
$ sudo vmware-config.pl

2007-02-12

vmware libpng12.so.0

I got tired of seeing the libping12.so.0 error when I launched vmware. Here is a simple fix.

$ vmware
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0: no version information available (required by /usr/lib/libcairo.so.2)
$ /usr/lib/vmware/lib/libpng12.so.0
$ mv libpng12.so.0 libpng12.so.0.old
$ ln -s /usr/lib/libpng12.so.0 .
$ vmware

2007-02-11

vmware with unusual resolutions

Letting your virtual OS know about an odd resolution (1280x800, 1650x1080, etc) for you host OS.
$ grep svga Windows\ XP\ Professional.vmx 
svga.maxWidth = "1280"
svga.maxHeight = "800"

2007-02-08

vmware server on fc6

While installing the latest vmware server on a new Fedora Core 6 box, I ran into some trouble:
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
CC [M] /tmp/vmware-config0/vmnet-only/driver.o
CC [M] /tmp/vmware-config0/vmnet-only/hub.o
CC [M] /tmp/vmware-config0/vmnet-only/userif.o
/tmp/vmware-config0/vmnet-only/userif.c: In function #VNetCopyDatagramToUser#:
/tmp/vmware-config0/vmnet-only/userif.c:629: error: #CHECKSUM_HW# undeclared (first use in this function)
/tmp/vmware-config0/vmnet-only/userif.c:629: error: (Each undeclared identifier is reported only once
/tmp/vmware-config0/vmnet-only/userif.c:629: error: for each function it appears in.)
make[2]: *** [/tmp/vmware-config0/vmnet-only/userif.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmnet-only'
Unable to build the vmnet module.
With some help from google I found some sites with further information (noted below). From these sites I pieced together this solution.
$ cd /tmp
$ cp /usr/lib/vmware/modules/source/vmnet.tar .
$ tar xf vmnet.tar
$ cd vmnet-only/
$ wget http://nerdbynature.de/bits/2.6.19-rc5/vmnet_CHECKSUM_PARTIAL.diff
$ patch -p1
patching file Makefile.kernel
patching file bridge.c
patching file userif.c
$ cd ..
$ tar cf vmnet.tar vmnet-only
$ cd /usr/lib/vmware/modules/source/
$ sudo cp vmnet.tar vmnet.tar.orig
$ sudo mv /tmp/vmnet.tar .
$ sudo vmware-config.pl
vmware-config.pl now finishes as expected.
More details:
http://www.vmware.com/community/thread.jspa?messageID=501053
http://www.vmware.com/community/thread.jspa?messageID=511840
http://nerdbynature.de/bits/2.6.19-rc5/