Skip to content

Instantly share code, notes, and snippets.

@minazou67
Last active June 15, 2016 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minazou67/58cdb4c8b784b0f53cf9 to your computer and use it in GitHub Desktop.
Save minazou67/58cdb4c8b784b0f53cf9 to your computer and use it in GitHub Desktop.
How to install the VMware tools to Debian

How to install the VMware tools to Debian

Debian 仮想マシンに VMware Tools をインストールする方法です。
(注意) Debian 7.x 以降では、VMware Toolsではなく、open-vm-tools の利用が推奨されています。

Environment

  • VMware ESXi 5.1.0
  • VMware vSphere Client 5.1.0
  • Debian 8.1.0

How to install

  • 対象の仮想マシンを起動
  • インベントリビューで階層ツリーから仮想マシンを選択し右クリック
  • ゲスト > VMware Tools のインストール/アップデート を選択
  • ターミナルから仮想マシンに接続し CD-ROM をマウント
$ sudo mkdir /mnt/cdrom
$ sudo mount /dev/cdrom /mnt/cdrom
mount: /dev/sr0 is write-protected, mounting read-only
  • VMware Tools のファイル名を確認して一時格納領域に解凍
$ ls /mnt/cdrom
VMwareTools-9.0.5-1065307.tar.gz  manifest.txt
$ tar xzvf /mnt/cdrom/VMwareTools-9.0.5-1065307.tar.gz -C /tmp/
  • CD-ROM をアンマウントしてイジェクト
$ sudo umount /mnt/cdrom/
$ eject
  • インストーラーをデフォルト設定で実行
$ sudo /tmp/vmware-tools-distrib/vmware-install.pl -d
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]

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

What is the directory that contains the init scripts?
[/etc/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 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 9.0.5 build-1065307 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:                                      done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done


The module vmci has already been installed on this system by another installer
or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmci to override.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vsock to override.

The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=pvscsi to override.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmmemctl to override.

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]

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]

!!! [EXPERIMENTAL] !!!
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present.  By selecting yes,
you will be enabling this experimental feature.  You can always disable this
feature by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no]

No X install found.

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
   Checking acpi hot plug                                              done
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                                   done
   Guest operating system daemon:                                      done
The configuration of VMware Tools 9.0.5 build-1065307 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

Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/sr0 ...
  • インストールされたバージョンとステータスを確認
$ /usr/bin/vmware-toolbox-cmd -v
9.0.5.21789 (build-1065307)
$ service vmware-tools status
vmtoolsd is running
  • 仮想マシンを再起動
$ sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment