Compilation of vmware modules

Create build-environment

Install debootstrap and schroot:

apt-get install debootstrap schroot

You need one environment per arch. With i386 and amd64 you cover almost everything:

debootstrap --arch=i386 karmic /opt/ubuntu/karmic-i386 http://nl.archive.ubuntu.com/ubuntu
debootstrap --arch=amd64 karmic /opt/ubuntu/karmic-amd64 http://nl.archive.ubuntu.com/ubuntu

Edit /etc/schroot/schroot.conf and add to the bottom:

[karmic-amd64]
description=Ubuntu 9.10 Karmic Koala amd64
users=dick
root-users=dick
location=/opt/tmp/ubuntus/karmic
type=directory
run-setup-scripts=true
run-exec-scripts=true

[karmic-i386]
description=Ubuntu 9.10 Karmic Koala i386
users=dick
root-users=dick
location=/opt/tmp/ubuntus/karmic-i386
type=directory
run-setup-scripts=true
run-exec-scripts=true

Configure build environment

Go into each of them and first modify /etc/apt/sources.list to have the proper lines:

#
deb http://nl.archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse

deb http://nl.archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu karmic-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted universe multiverse

Install the package that will pull down all requires debs (>100 MB):

apt-get install open-vm-tools linux-source linux-headers-generic-pae