Vmware Workstation 9.0 中為 CentOS 6.3 安裝 VMware Tools

來源:互聯網
上載者:User
本文測試環境為 Windows Vista 下安裝的 Vmware Workstation 6.0,guest OS為 CentOS 5.3
1. 開啟Vmware Workstation,運行 CentOS 5.3,待CentOS 5.3啟動完成,登入系統。成功登入系統後,在Vmware的菜單中找到 VM -> Install Vmware Tools,這樣,Vmware就會把Vmware Tools的映像以cdrom的形式掛載至 Guest OS中(CentOS 6.3)
2. 在 CentOS 5.3中開啟終端,使用su命令獲得 root 許可權,執行下面的命令以掛載虛擬cd磁碟機,掛載點這裡使用 /mnt/ 目錄
mount /dev/cdrom /mnt/
複製代碼
3. 掛載成功成,可以在 /mnt/ 目錄中瀏覽Vmware Tools 安裝包,一般包括兩個:一個是rpm包,加一個是tar.gz格式的壓縮包。我們使用下面的命令解壓其中的.tar.gz檔案
tar -C /tmp -zxvf /mnt/VMwareTools-6.0.2-59824.tar.gz
複製代碼
4. 把VMware Tools的安裝檔案解壓至 /tmp 目錄後,我們就不需要VMware為CentOS準備的虛擬光碟片了,卸載此虛擬盤
umount /mnt
複製代碼
5. 進入 /tmp 目錄中的 VMware Tools 的安裝包目錄即可安裝了
cd /tmp/vmware-tools-distrib
./vmware-install.pl
複製代碼
6. 當問到是否要運行 vmware-config-tools.pl的時候,選擇 yes 就可以了,安裝過程中,可以有多個目錄設定需要互動,預設值就可以了。不過,最後有一步是讓選擇 螢幕解析度的,我這裡選擇了 800 x 600,這個自然是因人而異嘍。

.執行vmware-install.pl安裝VMWare Tools:./vmware-install.pl
7.

because I had already installed the VMware tools, to practice for this tutorial, I get the message that VMware tools are already installed.

somewhere the installation will ask you the following question:

In which directory do you want to install the binary files?

type an absolute path when typing the answer like “/usr/bin/vmware”

type Y when it tells you ” the path”/usr/bin/vmware” does not exist currently. this program is going to create it. including needed parent directories. is this what you want?

this is part of the log of the installation I went through:

What is the directory that contains the init scripts? [/etc]
The file /etc/vmware-tools that this program was about to install already
exists. Overwrite? [yes] n

In which directory do you want to install the daemon files?
[/usr/bin/sbin] /usr/sbin

In which directory do you want to install the library files?
[/usr/bin/lib/vmware-tools] /usr/lib/vmware

The path “/usr/lib/vmware” does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes] y 

            
In which directory do you want to install the documentation files?
[/usr/bin/doc/vmware-tools] /usr/share/doc/vmware

The path “/usr/share/doc/vmware” does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] y

The installation of VMware Tools 2.0.0 build-122956 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: “/usr/bin/vmware/vmware-uninstall-tools.pl”

at this point, I will need to reboot the computer

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.