vmware-tools安裝:linux
linux-VMware tools安裝步驟:shell
(1)在CD-ROM虛擬光驅中選擇使用ISO鏡像,找到VMWARE TOOLS 安裝文件,如D:\VMware\VMware Workstation\Programs\linux.iso;windows
(2)以ROOT身份進入LINUX;session
(3)在虛擬機菜單欄中點擊「虛擬機-> 安裝VMWARE TOOLS」 子菜單,會彈出對話框,點擊"確認" 安裝;app
(4)掛載光驅:mount /dev/cdrom /mnt/cdrom(注意命令中輸入的空格)這時,你的linux.iso裏面的文件就至關於windows光盤裏面的文件了;ide
(5)進入cd /mnt/cdrom,輸入ls命令你將會發現多了兩個文件,如:VMwareTools-5.0.0-13124.tar.gz 和VMwareTools-5.0.0-13124.i386.rpm,這就是VMware Tools的Linux軟件包,.rpm文件是給Red Hat準備的,咱們只須要.tar.gz。this
(6)將VMwareTools-5.0.0-13124.tar.gz複製到/tmp/目錄下(命令:cp vmware-linux-tools /tmp);spa
(7)輸入命令:cd /tmp 進入/tmp目錄;orm
(8)輸入命令:tar zxf vmware-linux-tools.tar.gz 將剛剛複製的vmware-linux-tools.tar.gz 解壓,默認解壓到vmware-linux-tools目錄下(與文件名同名),此時就會多出一個命名爲vmware-linux-tools的文件夾,這裏和windows 裏面的解壓結果同樣。xml
(9)輸入命令:cd vmware-linux-tools 進入解壓後的目錄;
(10)輸入命令:./vmware-install.pl(執行vwware的安裝腳本,這個腳本是用perl編寫的),運行安裝VMware tools (.pl文件在前面有提過);
(11)在運行安裝過程當中,它會一步一步的提出問題要你迴應,此過程當中所有使用默認值,一直按 Enter 就對了;
(12)最後它會輸出1-15個分辨率讓你輸入數字選擇,根據你的顯示器來選擇分辨率吧;
(13)好了,安裝完成。如今你應該已經能看到VMware Tools安裝後的效果了:鼠標不再須要用Ctrl+Alt切換於虛擬與現實之間,一切過渡得那麼天然;虛擬機的分辨率也能依窗口的大小來自動適應,一切顯得那樣和諧;咱們也能夠使用/mnt/hgfs共享文件夾了,一切都是那麼的方便。
卡住以後,能夠按向下鍵查看詳細的錯誤信息。
若是是[warning] [guestinfo]recordrountinginfo:unable to collect IPv4 routing table;則經過以下方式解決:
This issue occurs when the Linux iputils package causes a delay in the boot process. A warning message appears when the guestinfo plug-in tool fails to parse the content from the /proc/net/route file. The guest operating system's clock is ahead of the host on which it is running, causing the arping process to become unresponsive during boot. This results in the delayed boot times.
When a virtual machine is affected this issue occurs every time it boots, but it does not happen on every Linux virtual machine.
Resolution
To resolve this issue, see the RedHat Advisory RHBA-2013:1290.
Note: The preceding link was correct as of December 11, 2013. If you find the link is broken, provide feedback and a VMware employee will update the link.
To work around this issue, add rtc.diffFromUTC=0 to the .vmx file of the affected virtual machine. This forces a time sync, which enables the arping process to complete as expected leading to normal boot times.
To add rtc.diffFromUTC=0 to the .vmx file:
1.Power off the virtual machine.
2.Log in to the ESXi/ESX host on which the virtual machine is located with a secure shell session.
3.Change to the virtual machine's .vmx file location (located at /vmfs/volumes/datastore_name/vm_name).
4.Create a backup of the .vmx file.
5.Open and edit the original .vmx file with a text editor.
6.Add this entry to the end of the .vmx file:
rtc.diffFromUTC=0
7.Close and save the .vmx file.
8.Power on the virtual machine.
1 # locate libtimeSync.so
2 /root/vmware-tools-distrib/lib/plugins32/vmsvc/libtimeSync.so
3 /root/vmware-tools-distrib/lib/plugins64/vmsvc/libtimeSync.so
4 /usr/lib/vmware-tools/plugins32/vmsvc/libtimeSync.so
5 /usr/lib/vmware-tools/plugins64/vmsvc/libtimeSync.so
重命名 /usr/lib/ 下的 libtimeSync.so 爲libtimeSync.so.bak