Updated from etch to lenny, vmware tools package from VMWare Workstation Edition 5.5.x is not friendly to the linux kernel 2.26.6-1-686.
cd /tmp/vmware-tools-distrib sudo CC=/usr/bin/gcc-4.1 ./vmware-install.pl
当这样编译源代码的时候,会产生编译错误。解决该问题的办法是,采用新版的vmware tool代码包。
在http://www.vmware.com 下载VMWare Server Edition 2.0, 最好用x86 Linux tar.gz方便解压。解压后找到 ./vmware-server-distrib/lib/isoimages/linux.iso, 这个文件就是用来mount到vmware linux guest操作系统上的光盘映像。 可以用rar直接将该文件解压后,找到其中的VMWARETO.TGZ,解压后重新编译即可。
另外,在多网卡的宿主机上,采用VMWare默认的自动选择Bridge采用的网络链结,不能保证选择有效的网卡/虚拟网卡,因此手动指定该链结 是必要的。在VMWare的菜单栏上选择,
Edit > Virtual Network Setting ...
(Tab) Automatic Bridging 禁用Bridge自动选择模式 (Tab) Host Virtual Network Mapping 选择要在Bridge模式下选择的网卡
+——-+
> | Guest |
+——-+
VMnet0
> |
==========|========================(local network)
> |
Bridged Interface
+——-+
|Host OS|
> |
+——-+