1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Nutanix Community(CE) Editionを構築してみる4/n~VMware Toolsのインストール

1
Posted at

ESXiのNestとして構築したNutanix CE
ベースはRHELなので、VMware Toolsをインストールすると何かと便利なのかと思いインストールしてみました。

vSphere Clientにログインし、ゲストから[ゲストOS]-[VMware Toolsのインストール]を実行します。
image.png

別のCD-ROMをゲストがマウントしている場合は強制的にアンマウントします。
image.png

AHVにadminユーザーでログインして、VMware Toolsのメディアをマウントします。

[root@NTNX-3ae90e56-A ~]# mount /dev/cdrom /media/
mount: /media: WARNING: device write-protected, mounted read-only.
[root@NTNX-3ae90e56-A ~]# ls /media/
manifest.txt  run_upgrader.sh  VMwareTools-10.3.24-18733423.tar.gz  vmware-tools-upgrader-32  vmware-tools-upgrader-64

ローカルにコピーしたtarファイルを展開します。

[root@NTNX-3ae90e56-A ~]# cp /media/VMwareTools-10.3.24-18733423.tar.gz /tmp
cp: overwrite '/tmp/VMwareTools-10.3.24-18733423.tar.gz'? y
[root@NTNX-3ae90e56-A ~]# tar zxf /tmp/VMwareTools-10.3.24-18733423.tar.gz 
[root@NTNX-3ae90e56-A ~]# ls
acropolis_modules  anaconda-ks.cfg  cvm_ip  firstboot  original-ks.cfg  upgrade_config.sh  vmware-tools-distrib
[root@NTNX-3ae90e56-A ~]# cd vmware-tools-distrib/
[root@NTNX-3ae90e56-A vmware-tools-distrib]# ls
bin  doc  etc  FILES  INSTALL  installer  lib  vgauth  vmware-install.pl

vmware-install.plを実行します。

[root@NTNX-3ae90e56-A vmware-tools-distrib]# ./vmware-install.pl 
Use of uninitialized value $parts[1] in substitution (s///) at ./vmware-install.pl line 1701, <FH> line 5.
Use of uninitialized value $parts[1] in substitution (s///) at ./vmware-install.pl line 1701, <FH> line 5.
Use of uninitialized value $parts[1] in substitution (s///) at ./vmware-install.pl line 1701, <FH> line 6.
Use of uninitialized value $parts[1] in substitution (s///) at ./vmware-install.pl line 1701, <FH> line 6.
Use of uninitialized value $parts[1] in substitution (s///) at ./vmware-install.pl line 1701, <FH> line 7.
Use of uninitialized value $parts[1] in substitution (s///) at ./vmware-install.pl line 1701, <FH> line 7.
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

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

INPUT: [/usr/bin]  default

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

INPUT: [/etc/rc.d]  default

What is the directory that contains the init scripts? 
[/etc/rc.d/init.d] 

INPUT: [/etc/rc.d/init.d]  default

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

INPUT: [/usr/sbin]  default

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

INPUT: [/usr/lib/vmware-tools]  default

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] 

INPUT: [yes]  default

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

INPUT: [/usr/share/doc/vmware-tools]  default

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] 

INPUT: [yes]  default

The installation of VMware Tools 10.3.24 build-18733423 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] 

INPUT: [yes]  default

Initializing...


Making sure services for VMware Tools are stopped.

Stopping vmware-tools (via systemctl):  [  OK  ]


The installation status of vmsync could not be determined. 
Skippinginstallation.

The installation status of vmci could not be determined. Skippinginstallation.

The installation status of vsock could not be determined. Skippinginstallation.


The installation status of vmxnet3 could not be determined. 
Skippinginstallation.

The installation status of pvscsi could not be determined. 
Skippinginstallation.

The installation status of vmmemctl could not be determined. 
Skippinginstallation.

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] 

INPUT: [no]  default

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please 
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

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] 

INPUT: [no]  default


Skipping configuring automatic kernel modules as no drivers were installed by 
this installer.

Do you want to enable Guest Authentication (vgauth)? [yes] 

INPUT: [yes]  default

No X install found.


Skipping rebuilding initrd boot image for kernel as no drivers to be included 
in boot image were installed by this installer.

The configuration of VMware Tools 10.3.24 build-18733423 for Linux for this 
running kernel completed successfully.

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

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
3. Restart your X session.

Found VMware Tools CDROM mounted at /media. Ejecting device /dev/sr0 ...
Warning no default label for /tmp/vmware-block-restore-2260435.0/tmp_file
Enjoy,

--the VMware team

VMwara ToolsがインストールされたことをGUIとCLIから確認します。
image.png

[root@NTNX-3ae90e56-A ~]# /etc/init.d/vmware-tools status
vmtoolsd is running
[root@NTNX-3ae90e56-A ~]# systemctl is-enabled vmware-tools
vmware-tools.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install is-enabled vmware-tools
enabled

vSphereのGUIからNutanix CEのIPアドレスが表示されること、ゲストのいシャットダウン、再起動が実行できることを確認します。
image.png
image.png

VMware ToolsのISOがアンマウントされたことを確認します。
image.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?