2008年5月11日 星期日

VMware Server for linux Installation Note

http://www.vmware.com/
Product Downloads(http://www.vmware.com/download/)
Download VMware Server (http://www.vmware.com/download/server/)
Serial Numbers (http://www.vmware.com/vmwarestore/serial_number.html)
http://www.vmware.com/pdf/server_vm_manual.pdf

NOTE: VMware Server doesn't support shared folders, use samba instead.
VMWare For Linux Setup Guide

  • tar -zxvf VMware-X.X.X-XXX.tar.gz
  • mv vmware-distrib /usr/local/src
  • run "vmware-install.pl." in /usr/local/src/vmware-distrib
  • run ./vmware in where it it installed, ex: /usr/local/vmware.
  • install an OS, setup network access to internet
  • Install VMware Tools
    • Boot up Virtual Machine
    • Requirement:
      • linux-headers-`uname -r`
      • X
    • [VM] -> [Install VMware Tools...]
    • mount /dev/cdrom /cdrom
    • tar xf VMwareTools-X.X.X-XXXXX.tar.gz
    • cd vmware-tools-distrib/;./vmware-install.pl
A virtual appliance primer
http://www.linux.com/feature/138166




my first time to try VMware and it shut down?
it is 08:50 am in TPE and 3am PDT=3+15=23 in TPECST, which means I have to wait til 23:00....damn...



080702
Ubuntu 8.0.4, Linux-2.6.24-17-generic
tar xf VMware-server-1.0.5-80187.tar.gz
cd vmware-server-distrib
./vmware-install.pl
(............)
Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmmon-only'
make -C /lib/modules/2.6.24-17-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-17-generic'
CC [M] /tmp/vmware-config1/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config1/vmmon-only/./include/vmware.h:25,
from /tmp/vmware-config1/vmmon-only/linux/driver.c:48:
/tmp/vmware-config1/vmmon-only/./include/vm_basic_types.h:161: error: conflicting types for ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here
In file included from /tmp/vmware-config1/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config1/vmmon-only/linux/driver.c:49:
/tmp/vmware-config1/vmmon-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config1/vmmon-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config1/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config1/vmmon-only/linux/driver.c:49:
/tmp/vmware-config1/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-config1/vmmon-only/linux/driver.c:147: warning: initialization from incompatible pointer type
/tmp/vmware-config1/vmmon-only/linux/driver.c:151: warning: initialization from incompatible pointer type
/tmp/vmware-config1/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/tmp/vmware-config1/vmmon-only/linux/driver.c:1659: error: ‘struct mm_struct’ has no member named ‘dumpable’
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/linux-headers-2.6.24-17-generic'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/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.

換到VMware-server-1.0.6-91891就好了


Starting VMware services:
Virtual machine monitor done
Virtual ethernet done
Bridged networking on /dev/vmnet0 done
Host-only networking on /dev/vmnet1 (background) done
Host-only networking on /dev/vmnet8 (background) done
NAT service on /dev/vmnet8 done
remote console connection port [902]
virtual machine files in [/var/lib/vmware/Virtual Machines]


# vmware
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)

My Fix
sudo mv /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1.disabled


http://metavige.blogspot.com/2008/05/ubuntu-vmware-server.html
cd /usr/lib/vmware/lib/libgcc_s.so.1
sudo mv libgcc_s.so.1 libgcc_s.so.1.disabled
sudo ln -sf /lib/libgcc_s.so.1 libgcc_s.so.1

http://forum.ubuntu.org.cn/viewtopic.php?p=718223&sid=6b6eabd9584799877e682b3fd63d58b0
删了 /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1及 /usr/lib/vmware/lib/libpng12.so.0/libpng12.so,便解决了,且运行一切正常


http://forum.ubuntu.org.cn/viewtopic.php?t=17220&sid=b97a82e98865c82f8532b7237ed5a6f4
将上面出现的文件全都移走就行!!!!

http://radio.javaranch.com/davo/2008/06/18/1213791596327.html

I didn't find an exact match on the net, but similar hits recommended moving the offending library out of the way:

david@david-ubuntu:~$ cd /usr/lib/vmware/lib
david@david-ubuntu:/usr/lib/vmware/lib$ sudo mkdir bak

david@david-ubuntu:/usr/lib/vmware/lib$ sudo mv libgcc_s.so.1/libgcc_s.so.1 bak/
... and now I'm back :)

UbuntuHelp:VMware/Server
http://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:VMware/Server&variant=zh-tw
UbuntuHelp:VMware/Server Installing from Source
http://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:VMware/Server&variant=zh-tw#Installing_from_Source

* Ubuntu 8.04 (Hardy Heron)
Run [1] after the initial install fails when compiling kernel modules. AMD64 users may get this error
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_***' not found
Install Getlibs and enter the following commands.
getlibs /usr/lib/vmware/bin/vmware
sudo mv /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1-old
sudo ln -s /usr/lib32/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/


http://www.vmware.com/community/message.jspa?messageID=399695
I had the same problem and fixed it like this
I copied
/usr/lib/libpng12.so.0
to
/usr/lib/vmware-server-console/lib/libpng12.so.0/
and
/usr/lib/gcc/i486-linux-gnu/3.4.6/libgcc_s.so
to
/usr/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1
it seems that the libraries shipped with the vmware server do have problems with the cairo library (no version given ??).


https://lists.ubuntu.com/archives/ubuntu-users/2006-June/080987.html
This fixed my issue
---
cp /usr/lib/libpng12.so.0
/usr/lib/vmware-server-console/lib/libpng12.so.0/
and
cp /usr/lib/gcc/i486-linux-gnu/3.4.6/libgcc_s.so
/usr/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1
---

I can't start VMware by [Applications] -> [System Tools] -> [VMware Server Console]
but
# vmware
works.
VMware Server doesn't support shared folders.
http://www.vmware.com/pdf/server_vm_manual.pdf
Complete Installation
A complete installation installs the utilities to enhance the performance of the guest operating system, and all the drivers — the VMware SVGA driver, the VMware Mouse driver, the VMware SCSI driver, the VMware vmxnet networking driver (the vlance driver is installed automatically when you created the virtual machine) and the shared folders driver (for use by virtual machines with VMware Workstation).



沒有留言: