« ESXi サーバーの仮想マシンに Ubuntu 10.04(32-bit) をデフォルトインストールする / Ubuntu10.04(32-bit) on VMware ESXi4.0 Update 2 | トップページ | ESXi サーバーの NIC チーミング:明示的なフェイルオーバー順序を指定する:仮想マシン用ポート/VMkernel用ポート / ESXi 4.0 Update 2 »

ESXi サーバー上の Ubuntu 10.04(32-bit) に"VMware Tools"をインストールする / Ubuntu10.04(32-bit) on VMware ESXi4.0 Update 2

【注意】
Ubuntu 10.04(32-bit) に VMware Tools をインストールする前に、次の作業を実施します。


仮想マシンコンソールから、[仮想マシン] → [ゲスト] → [VMware Tools のインストール/アップグレード]の順にクリックします。

VMware Tools に関する注意事項などが表示されます。[OK]をクリックします。


ここからは Tera Term で作業を行っています。

Linux vm1 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux
Ubuntu 10.04 LTS

Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/


The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

user@vm1:~$ mount[ENTER]
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/user/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=user)
/dev/sr0 on /media/VMware Tools type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)
user@vm1:~$ ls -la /media/VMware\ Tools/[ENTER]
合計 52226
dr-xr-xr-x 2 user user 2048 2010-05-25 13:53 .
drwxr-xr-x 4 root root 4096 2010-06-19 14:18 ..
-r--r--r-- 1 user user 53470578 2010-05-25 13:53 VMwareTools-4.0.0-261974.tar.gz
-r--r--r-- 1 user user 1956 2010-05-25 13:51 manifest.txt
user@vm1:~$ mkdir ./vmware[ENTER]
user@vm1:~$ cd ./vmware/[ENTER]
user@vm1:~/vmware$ cp /media/VMware\ Tools/VMwareTools-4.0.0-261974.tar.gz ./[ENTER]
user@vm1:~/vmware$ ls -l[ENTER]
合計 52220
-r--r--r-- 1 user user 53470578 2010-06-19 14:19 VMwareTools-4.0.0-261974.tar.gz
user@vm1:~/vmware$ tar xzvf ./VMwareTools-4.0.0-261974.tar.gz[ENTER]
vmware-tools-distrib/
vmware-tools-distrib/lib/
vmware-tools-distrib/lib/modules/
vmware-tools-distrib/lib/modules/source/
vmware-tools-distrib/lib/modules/source/vmblock.tar
(途中省略)
vmware-tools-distrib/doc/INSTALL
vmware-tools-distrib/installer/
vmware-tools-distrib/installer/services.sh
vmware-tools-distrib/INSTALL
vmware-tools-distrib/FILES
user@vm1:~/vmware$ ls[ENTER]
VMwareTools-4.0.0-261974.tar.gz vmware-tools-distrib
user@vm1:~/vmware$ cd ./vmware-tools-distrib/[ENTER]
user@vm1:~/vmware/vmware-tools-distrib$ sudo ./vmware-install.pl[ENTER]
[sudo] password for user:ログイン中のユーザーのパスワード[ENTER]
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][ENTER]

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

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

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

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

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][ENTER]

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

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][ENTER]

The installation of VMware Tools 4.0.0 build-261974 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][ENTER]

Initializing...


Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: done
Unmounting HGFS shares: done
Guest filesystem driver: done
insserv: warning: script 'K20acpi-support' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'network-interface-security' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'atd' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'avahi-daemon' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'failsafe-x' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0) of script `halt' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udevtrigger' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'alsa-mixer-save' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'network-manager' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'anacron' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `wpa-ifupdown' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udevmonitor' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'hwclock-save' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'module-init-tools' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udev' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'dmesg' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'network-interface' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'acpid' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountnfs.sh' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'hwclock' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'gdm' missing LSB tags and overrides
insserv: warning: script 'acpi-support' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'ufw' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'rsyslog' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (6) of script `reboot' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth-stop' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth-splash' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'console-setup' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'dbus' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'apport' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'procps' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'hostname' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `sendsigs' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'irqbalance' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountroot' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udev-finish' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth-log' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `networking' overwrites defaults (empty).
insserv: There is a loop between service rsyslog and pulseaudio if stopped
insserv: loop involving service pulseaudio at depth 3
insserv: loop involving service rsyslog at depth 2
insserv: loop involving service udev at depth 1
insserv: There is a loop between service rsyslog and pulseaudio if stopped
insserv: loop involving service dbus at depth 2
insserv: exiting now without changing boot order!
WARNING: The installer initially used the insserv application to setup the
vmware-tools service. That application cannot be found. Please re-install the
insserv application. This script will now attempt to manually setup the
vmware-tools service.update-rc.d: warning: vmware-tools start runlevel arguments (S) do not match LSB Default-Start values (2 3 5)
Adding system startup for /etc/init.d/vmware-tools ...
/etc/rc0.d/S36vmware-tools -> ../init.d/vmware-tools
/etc/rc6.d/S36vmware-tools -> ../init.d/vmware-tools
/etc/rcS.d/S38vmware-tools -> ../init.d/vmware-tools
The bld-2.6.32-21.32-generic-i386-Ubuntu10.04 - vmmemctl module loads perfectly
into the running kernel.

The bld-2.6.32-21.32-generic-i386-Ubuntu10.04 - vmhgfs module loads perfectly
into the running kernel.

The bld-2.6.32-21.32-generic-i386-Ubuntu10.04 - vmxnet module loads perfectly
into the running kernel.

The bld-2.6.32-21.32-generic-i386-Ubuntu10.04 - vmblock module loads perfectly
into the running kernel.

The bld-2.6.32-21.32-generic-i386-Ubuntu10.04 - vmci module loads perfectly
into the running kernel.

The bld-2.6.32-21.32-generic-i386-Ubuntu10.04 - vsock module loads perfectly
into the running kernel.

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.

Detected X.org version 7.6.6.

Could not locate hal daemon init script.
Checked: /etc/init.d/haldaemon and /etc/init.d/hal


The configuration file /etc/X11/xorg.conf can not be found. Do you want to
create a new one? (yes/no) [yes][ENTER]


X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-27-server i686 Ubuntu
Current Operating System: Linux vm1 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-21-generic root=UUID=cefbb4a3-bc9b-4cb6-86be-cacec627776b ro quiet splash
Build Date: 09 June 2010 10:55:28AM
xorg-server 2:1.7.6-2ubuntu7.1 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.16.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.1622", Time: Sat Jun 19 14:20:47 2010
(EE) Unable to locate/open config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/usr/lib/X11/xorg.conf.d"
(EE) Failed to load module "vmwgfx" (module does not exist, 0)
(EE) vmware: Please ignore the above warnings about not being able to to load module/driver vmwgfx
error setting MTRR (base = 0xd4000000, size = 0x00400000, type = 1) Inappropriate ioctl for device (25)

X is running fine with the new config file.

error setting MTRR (base = 0xd4000000, size = 0x00400000, type = 1) Inappropriate ioctl for device (25)
ddxSigGiveUp: Closing log
Use of uninitialized value $style in string eq at /usr/bin/vmware-config-tools.pl line 6276.
Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-2.6.32-21-generic
Checking acpi hot plug done
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: done
Guest memory manager: done
Guest vmxnet fast network device: done
VM communication interface: done
VM communication interface socket family: done
Guest operating system daemon: done

The configuration of VMware Tools 4.0.0 build-261974 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 the following command:
"/usr/bin/vmware-toolbox" during an X server session.

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.

To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/networking stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/networking start

Enjoy,

--the VMware team

Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
/dev/sr0 ...
user@vm1:~/vmware/vmware-tools-distrib$


コンソールからの確認結果です。[全般]内の[VMware Tools:]は[OK]になっており、正常に稼働していることが確認出来ます。

« ESXi サーバーの仮想マシンに Ubuntu 10.04(32-bit) をデフォルトインストールする / Ubuntu10.04(32-bit) on VMware ESXi4.0 Update 2 | トップページ | ESXi サーバーの NIC チーミング:明示的なフェイルオーバー順序を指定する:仮想マシン用ポート/VMkernel用ポート / ESXi 4.0 Update 2 »

OS」カテゴリの記事