Install VMware Tools – Debian Lenny

Quick tip for anyone running Debian Lenny under VMware. As the tools were open sourced you can now find an implementation in your apt tree. Although personally i haven’t seen a quick and easy guide floating around.

Run the fowling as root

Update!: If you are getting out of date tools in your vmware see this comment for an explination

6 Comments

K. Vick says:

Very helpful. Thanks!

Greg says:

Make sure you have contrib & non-free in sources.list. it errors without those.

Mike says:

This was very helpful, but I needed to first install a new kernel. Here is what I did:

vi /etc/apt/sources.list
Add “contrib non-free” to the end of the uncommented lines (after the word “main”). If either of the words are already there, don’t add them again.
apt-get update
apt-get install linux-headers-2.6.26-2-686 (not sure if needed)
apt-get upgrade kernel (not sure if needed) (Choose keyboard from full list when asked). (This did not upgrade my kernel, so I had to do the next line).
apt-get install linux-image-2.6.26-2-686
reboot
apt-get install open-vm-source (This takes awhile. Just “Ok” any popups)
apt-get install module-assistant
module-assistant prepare open-vm
module-assistant auto-install open-vm

I am a newbie to this so I probably didn’t do it the best way, but hopefully this will help someone.

* Scott says:

You will need to add contrib i know, not sure if you need non-free though.

moulde-assistant prepare open-vm should get the headers and build tools you need

Syngin says:

Thanks. That really boils down the instructions a lot. vSphere is reporting that the VMWare Tools are out of date though? Must be a Lenny (stable) thing?

* Scott says:

@Syngin – The verseion in lenny is (im guessing) a branch of the main open sourced tool kit, as thats what debian likes to do, based on the package name full name (below) its a cut from 2008, squeeze is running a much newer version.

Lenny: http://packages.debian.org/lenny/open-vm-source

Package: open-vm-source (2008.11.18-130226-1lenny2) [contrib]

Squeeze: http://packages.debian.org/squeeze/open-vm-source

Package: open-vm-source (2010.06.16-268169-3) [contrib]

Just started playing with squeeze (last 3 days), for lenny these days i use most of the steps above to solve the dependencies then build the official VM tools

[cc lang=”bash” width=”400″]
apt-get update
apt-get install open-vm-source
module-assistant prepare open-vm
[/cc]

This should get you to the point where you have what you need to build the VM tools, from vmware just select the “install vmware tools” form inside the management console

[cc lang=”bash” width=”400″]
mount /media/cdrom
cp /media/cdrom/VMwareTools*.tar.gz /tmp
cd /tmp
tar zxvf VMwareTools*.tar.gz
cd vmware-tools-distrib/
./vmware-install.pl –default
[/cc]

Squeeze doesn’t like this but it works for me in lenny

Leave a Reply

Your email address will not be published.