Ubuntu12.04 install VMware tools

转自: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 VM

sudo apt-get -y update
sudo apt-get -y upgrade

 
2.

Install build tools

sudo apt-get -y install linux-headers-$(uname -r) build-essential

 
3.

Mount vmwaretools within esx

first, VM->Removable Devices ->Floppy ->Settings ->connetion, DONOT Select 'Use floppy image file'
then, In your esx select the ubuntu vm, right klick and select guest --> install vmwaretools. Now the vmwaretools cd is attached.

84f47eee2848de06f9920ca7b7aa9519895175b575831632b4b53343ca52bc78_vmtools_big
4.

Create the mount point

sudo mkdir -p /media/cdrom

 
5.

Mount the ISO

sudo mount /dev/cdrom /media/cdrom

 
6.

Now change the directory

cd /media/cdrom

 
7.

Copy the tar file

sudo cp VM*.tar.gz /tmp

 
8.

Unmount ISO

sudo umount /media/cdrom

 
9.

change directory

cd /tmp

 
10.

Expand the tar

sudo tar xzvf VM*.tar.gz

 
11.

Change Directory

cd 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才认为路径无效的。
cd /lib/modules/$(uname -r)/build/include/linux
sudo ln -s ../generated/utsrelease.h
sudo ln -s ../generated/autoconf.h
sudo ln -s ../generated/uapi/linux/version.h
就是因为没有最后这个链接,一直失败,郁闷啊。
【转自:http://www.cnblogs.com/lifegoesonitself/p/3357375.html】

sudo ./vmware-install.pl -d
 
14.

Reboot

sudo reboot

 

Conclusion

For me this is the quickest way to get vmtools installed! Hope it'll work for you!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值