I was playing around with Ubuntu on ESXi 3.5 (free edition) when I ran into some trouble installing the VM Tools package on my guest VM. After successfully installing it on Ubuntu server 9.04 - with GUI, I decided to create a new VM and install Ubuntu Server 9.10 - without the desktop GUI (X11).
After researching many forums and help files, I was able to install the package. Many thanks to all who helped me out a long the way! Now back to it.
The package to install is called open-vm-tools. It’s been released by VMware as an open source project. Unfortunately, it doesn’t include an installer so several steps have to be followed to compile and install it.
NB. All commands must be run with root level access or via sudo commands. Before attempting the below steps, make sure you have console access to the server. During the install network connectivity is lost. If a SSH session is used you won’t be able to finish the install.
After installing the server, log in and gain the necessary access, type:
sudo bash
then enter the account password.
Then type:
apt-get update
Then type:
apt-get dist-upgrade
Now that the linux kernel has been updated, the system should be rebooted. Type:
reboot
When the system comes back up, log in and gain root access as above. Then type:
apt-get install open-vm-tools
This is the point where network connectivity fails; it has to be restarted. Type:
modprobe pcnet32
/etc/init.d/networking restart
Now the installer needs to be built and installed. Type:
module-assistant prepare open-vm
module-assistant auto-install open-vm
** If the above command fails, refer to the troubleshooting section below.
Now that the package is installed, the “initramfs” file needs to be modified so the VMware accelerated NIC will be loaded at boot time. To modify the file, type:
echo vmxnet >> /etc/initramfs-tools/modules
update-initramfs -u
Now another reboot is required, type:
reboot
VM Tools is installed…
Troubleshooting:
If installing on Ubuntu 9.04, the command: module-assistant auto-install open-vm will fail. There is a patch available though. It get it type:
cd /usr/src
Then type :
wget http://launchpadlibrarian.net/25819719/vmhgfs-2008-11-18-jaunty-lenny.diff
To install the patch, type:
patch -p0 < vmhgfs-2008-11-18-jaunty-lenny.diff
Now the auto-install command can be re-run. Type:
module-assistant –not-unpack auto-install open-vm
NB. There are 2 dashes before the word not-unpack. EG. - -not-unpack (no space between dashes)
Continue on and modify the initramfs file. Reboot to complete the install.