VMware虛擬機下Ubuntu安裝VMware Tools詳解


一、安裝步驟

1、開啟虛擬機,運行想要安裝VMware Tools的系統,運行進入系統后,點擊虛擬機上方菜單欄的“虛擬機(M)”->點擊“安裝 VMware Tools”,圖片所示是因為我已經安裝好了

 

2、完成第一步后,系統桌面會有一個VMware Tools文件,進入文件目錄,可以看到以下目錄:

 

3、使用終端解壓VMwareTools-xxxx.tar.gz文件,解壓完成后“cd”進入該目錄,“ls”查看當前目錄是否有VMware Tools的安裝程序vmware-install.pl。

如果存在,則輸入命令安裝:

sudo ./vmware-install.pl

 

 

4、在安裝的過程中,只需要一直按回車即可,直到出現以下界面:

 

5、重啟系統就可使用VMware Tools了

 

二、Vmware-Tools安裝問題解決

1、安裝vmware-tools出現"what is the location of the "ifconfig"program on your machine?"

出現此問題的錯誤是因為網絡問題, 解決辦法如下:

方法/步驟 一:
1. 執行sudo apt-get update, 如果無法安裝說明網絡連接出現問題, 修改網絡鏈接方式為橋接模式. 
2. 執行sudo apt-get install net-tools, 安裝net-tools. 
3 .然后重新執行安裝vmware-tools.pl , 成功. 重啟系統就可使用tools. 

方法二:

當出現”what is the location of the “ifconfig”program on your machine?”時直接輸入“yes”,再回車即可,

之后的安裝也默認回車。

2、安裝vmware-tools出現"Unable to find the binary installation directory"

You have a version of VMware Tools installed. Continuing this install will
first uninstall the currently installed version. Do you wish to continue?
(yes/no) [yes]  當你選擇"yes"后出現如下信息:

Error: Unable to find the binary installation directory(answer BINDIR)
in the installer database file "/etc/vmware-tools/locations".

Uninstall failed. Please correct the failure and re run the install.

Execution aborted.

解決方法:

刪除"/etc/vmware-tools/"全部文件,使用命令:rm -rf 文件夾名;然后重新安裝VMware Tools

 

三、設置共享文件夾

1、在VMware的界面(注意系統不要啟動),點擊“虛擬機(M)”->“設置”->“選項”,出現以下界面:

2、出現”添加共享文件夾向導”,選擇你要共享的文件夾或者文件后

 

3、勾選”啟用此共享”,點擊完成

 

4、再次打開虛擬機,進入ubuntu,在根目錄下,進入”mnt”->”hgfs”就可以看到你在主機共享的文件夾

 

四、設置好后,在VMware 中的 Ubuntu 虛擬機看不到共享文件夾怎么辦?

解決方法一:

1、打開一個終端窗口,運行命令:sudo vmware-config-tools.pl

2、然后來到VMware Host-Guest Filesystem的安裝提示,即共享文件夾功能hgfs。此處默認選項為no,我們需要輸入yes,然后一直按回車繼續安裝即可

3、最后查看”mnt”->”hgfs”是否可以看到在主機共享的文件夾


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM