Install Open VM Tools on Debian 7 (wheezy)

In a previous post I demonstrated how to install Open VM Tools on Debian 6 (squeeze). The process is much simpler on Debian 7 (wheezy), assuming networking and DNS are configured correctly simply run the following command:

apt-get install open-vm-tools

That’s it!

Reference:
How to install Open Virtual Machine Tools (open-vm-tools) on squeeze/wheezy

Install Open VM Tools on Debian 6 (squeeze)

To install Open VM Tools on Debian 6 (squeeze) perform the following:

Open the apt source repository list:

vi /etc/apt/sources.list

Add contrib archive to then end of the source:

deb http://ftp.uk.debian.org/debian/ squeeze main contrib

Save the changes and then update the package list:

apt-get update -q -y

Then run the following commands:

# install kernel headers so modules will work
apt-get install linux-headers-virtual

# install kernel modules
apt-get install --no-install-recommends open-vm-dkms

# EITHER: install tools for an xorg install
apt-get install open-vm-tools
# OR: a headless install
apt-get install --no-install-recommends open-vm-tools

Then start up Open VM Tools:

/etc/init.d/open-vm-tools start

I was met with the following error when starting Open VM Tools:

root@web1:/etc/init.d# /etc/init.d/open-vm-tools start
Loading open-vm-tools modules: vmhgfsFATAL: Module vmhgfs not found.
vmmemctlFATAL: Module vmmemctl not found.
vmsyncFATAL: Module vmsync not found.
.
Starting open-vm daemon: vmtoolsd.

Thanks to this link I was able to understand why and fix the issue. Basically, kernel modules for advanced VMware functions weren’t installed. To install them run the following:

module-assistant auto-install open-vm -i

That’s it, Open VM Tools will now work with advanced VMware functions.

References:
Install Open-VM-tools on Debian 6 Squeeze
How to install Open Virtual Machine Tools (open-vm-tools) on squeeze/wheezy