溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

vSphere安裝vmtools

發(fā)布時間:2020-07-10 12:45:37 來源:網(wǎng)絡(luò) 閱讀:1554 作者:抖嘛看猩猩 欄目:系統(tǒng)運(yùn)維

1.下載vmtools

打開官方站點(diǎn):https://my.vmware.com/group/vmware/downloads

在搜索欄中輸入vmtools

vSphere安裝vmtools

找到一個合適的版本下載

vSphere安裝vmtools

解壓

vSphere安裝vmtools

2.上傳到ESXi或共享存儲

依次選中ESXI主機(jī)—配置存儲器,這里選擇本地存儲datastore1

vSphere安裝vmtools

在datastore1上右鍵選擇“瀏覽數(shù)據(jù)存儲”

選中tools文件夾,上傳

上傳成功后,可以看到多了一個vmtools文件夾,打開可以看到里面有各種vmtools的iso鏡像

vSphere安裝vmtools

vSphere安裝vmtools

3.安裝vmtools

windows下安裝vmtools

在虛擬機(jī)列表中,找到需要安裝vmtools的windows 2003

單擊右鍵“打開控制臺”,登陸系統(tǒng)

vSphere安裝vmtools

由于之前安裝的時候使用了windows 2003的光盤,現(xiàn)在需要先彈出光盤鏡像,然后掛上vmtools中windows的鏡像

然后編輯虛擬機(jī)設(shè)置,將光盤鏡像替換為vmtools的ISO文件

vSphere安裝vmtools

再回到控制臺

vSphere安裝vmtools

windows將開始自動安裝vmtools,直接下一步,下一步,完成安裝。

注意:由于是第一次安裝vmtools,安裝完成后系統(tǒng)會要求重啟以應(yīng)用更新。(以后升級vmtools的時候不需要重啟)

重啟完成后,即完成安裝。



Linux下的vmtools安裝

同樣,卸載之前的系統(tǒng)安裝光盤,掛載上vmtools,注意,這里是掛載linux下的vmtools

vSphere安裝vmtools

注意:如果之前掛載系統(tǒng)盤安裝了,一定要進(jìn)系統(tǒng)把系統(tǒng)鏡像ISO卸載了,才能替換成vmtools的鏡像

回到控制臺,打開命令行,使用mount命令掛載剛才替換的vmtools鏡像

mount /dev/cdrom /media

這里會提示掛載的鏡像是只讀方式:mount:block device /dev/cdrom is write-protected,mounting read-only

進(jìn)入到/media下,可以看到一個VMwareTools-10.0.8-3746311.tar.gz

由于光盤鏡像內(nèi)的文件是只讀的,所有我們將其拷貝出來再解壓安裝

cp VMwareTools-10.0.8-3746311.tar.gz /root

然后切換到/root目錄下,解壓安裝

tar -xvf VMwareTools-10.0.8-3746311.tar.gz

可以看到/root下多了一個vmware-tools-distrib文件夾

進(jìn)去查看,可以找到一個vmware-install.pl文件

執(zhí)行

./vmware-install.pl

開始安裝

Installing VMware Tools.


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

[/usr/bin] //選擇二進(jìn)制文件的安裝目錄,回車默認(rèn)

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?

[/etc/rc.d] //選擇系統(tǒng)初始化腳本存放目錄,回車默認(rèn)

What is the directory that contains the init scripts?

[/etc/rc.d/init.d]

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

[/usr/sbin]

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

[/usr/lib/vmware-tools]

The path "/usr/lib/vmware-tools" does not exist currently. This program is

going to create it, including needed parent directories. Is this what you want?

[yes]

In which directory do you want to install the common agent library files?

[/usr/lib]

In which directory do you want to install the common agent transient files?

[/var/lib]

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

[/usr/share/doc/vmware-tools]

The path "/usr/share/doc/vmware-tools" does not exist currently. This program

is going to create it, including needed parent directories. Is this what you

want? [yes]

The installation of VMware Tools 10.0.8 build-3746311 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-uninstall-tools.pl".


Before running VMware Tools for the first time, you need to configure it by

invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want

this program to invoke the command for you now? [yes]

Initializing...

Making sure services for VMware Tools are stopped.


Stopping VMware Tools services in the virtual machine:

Guest operating system daemon:[  OK  ]

Common Agent:[  OK  ]

VGAuthService:[  OK  ]

VMware User Agent (vmware-user):[  OK  ]

Unmounting HGFS shares:[  OK  ]

Guest filesystem driver:[  OK  ]

Guest memory manager:[  OK  ]

VM communication interface socket family:[  OK  ]

VM communication interface:[  OK  ]



The VMware FileSystem Sync Driver (vmsync) allows external third-party backup

software that is integrated with vSphere to create backups of the virtual

machine. Do you wish to enable this feature? [no]

Found a compatible pre-built module for vmci.  Installing it...



Found a compatible pre-built module for vsock.  Installing it...



Found a compatible pre-built module for vmxnet3.  Installing it...



Found a compatible pre-built module for pvscsi.  Installing it...



Found a compatible pre-built module for vmmemctl.  Installing it...



The VMware Host-Guest Filesystem allows for shared folders between the host OS

and the guest OS in a Fusion or Workstation virtual environment.  Do you wish

to enable this feature? [no]


Found a compatible pre-built module for vmxnet.  Installing it...



The vmblock enables dragging or copying files between host and guest in a

Fusion or Workstation virtual environment.  Do you wish to enable this feature?

[no]

Would you like to enable VMware automatic kernel modules?

[no]


Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed

if you want to enable Common Agent (caf). [yes]

Do you want to enable Common Agent (caf)? [yes]

Detected X version 7.1




Do you want to change the starting screen display size? (yes/no) [no]


X is running fine with the new config file.


Creating a new initrd boot p_w_picpath for the kernel.


NOTE: both /etc/vmware-tools/GuestProxyData/server/key.pem and

/etc/vmware-tools/GuestProxyData/server/cert.pem already exist.

They are not generated again. To regenerate them by force,

use the "vmware-guestproxycerttool -g -f" command.


Checking acpi hot plug[  OK  ]

Starting VMware Tools services in the virtual machine:

Switching to guest configuration:[  OK  ]

Paravirtual SCSI module:[  OK  ]

Guest memory manager:[  OK  ]

VM communication interface:[  OK  ]

VM communication interface socket family:[  OK  ]

VMware User Agent:[  OK  ]

Guest operating system daemon:[  OK  ]

VGAuthService:[  OK  ]

Common Agent:[  OK  ]

The configuration of VMware Tools 10.0.8 build-3746311 for Linux for this

running kernel completed successfully.


You must restart your X session before any mouse or graphics changes take

effect.


You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the

command line.


To enable advanced X features (e.g., guest resolution fit, drag and drop, and

file and text copy/paste), you will need to do one (or more) of the following:

1. Manually start /usr/bin/vmware-user

2. Log out and log back into your desktop session; and,

3. Restart your X session.


Enjoy,


--the VMware team

全部默認(rèn)選擇,至此,linux下的vmtools安裝成功,重啟系統(tǒng)結(jié)束安裝



向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI