Vmware Workstation 9.0 中爲 CentOS 6.3 安裝 VMware Tools

 

Vmware Workstation 9.0 中爲 CentOS 6.3 安裝 VMware Tools  

 

本文測試環境爲 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”

in which directory do you want to install

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章