转自:http://community.spiceworks.com/how_to/show/39871-how-to-install-vmware-tools-v5-on-ubuntu-12-04-lts-server-and-12-10-server
http://blog.csdn.net/bingqingsuimeng/article/details/8732585
环境:WIN7 + VMware 8.0.0 build-471780 + Ubuntu 12.04(虚拟机)
问题关键:ubuntu 12.04用的是3.2.0内核,而vm 8.0.0还不支持该内核。
解决办法:找来vmware workstation 8.0.2 tools中的linux.iso来,重新安装此iso文件中vmware-tools工具即可。(用到的linux.iso下载地址:http://115.com/file/dp7gwhkv)
安装过程见:
After searching a long time in the internet, for getting the right solution on installing the VmWare Tools on my Ubuntu Server VM, I tried a lot different ones and came up with this one. For me it works great and my server is up to date!
1. | Update your Ubuntu VMsudo apt-get -y update | |
---|---|---|
2. | Install build toolssudo apt-get -y install linux-headers-$(uname -r) build-essential | |
3. | Mount vmwaretools within esxfirst, VM->Removable Devices ->Floppy ->Settings ->connetion, DONOT Select 'Use floppy image file' | |
4. | Create the mount pointsudo mkdir -p /media/cdrom | |
5. | Mount the ISOsudo mount /dev/cdrom /media/cdrom | |
6. | Now change the directorycd /media/cdrom | |
7. | Copy the tar filesudo cp VM*.tar.gz /tmp | |
8. | Unmount ISOsudo umount /media/cdrom | |
9. | change directorycd /tmp | |
10. | Expand the tarsudo tar xzvf VM*.tar.gz | |
11. | Change Directorycd vmware-tools-distrib | |
12. | To prevent a potential error ..in the install script on Ubuntu 11.10+, Unable to create symlink “/usr/lib64/libvmcf.so” pointing to file ”/usr/lib/vmware-tools/lib64/libvmcf.so/libvmcf.so”. , create a special directory: sudo mkdir -p /usr/lib64 | |
13. | Run the Install script:关联文件,就是因为找不到这个几个文件,vmware tools才认为路径无效的。 | |
14. | Rebootsudo reboot |
Conclusion
For me this is the quickest way to get vmtools installed! Hope it'll work for you!