Compilation of vmware modules
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 |
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 apt-show-versions vim module-assistant |
Inside each chroot, run the script build.vmwaremodules.sh
. This will yield a deb file for each arch, flavor and version.
This can quickly add up to a lot of debs, because you will have (archs x flavors x versions) debs.
For instance:
( (i386 + amd64) + (generic + server) + (14 + 15 + 18 + 20) ) = 2 x 2 4 = 16 debs.
Upload the debs to outkast.tienhuis.nl.
The i386 ones go to /pub/www/www.tienhuis.nl/ubuntu/dists/karmic/restricted/binary-i386
, the amd64 ones go to /pub/www/www.tienhuis.nl/ubuntu/dists/karmic/restricted/binary-amd64
.
Then cd to /home/dick/scripts/apt-repos
and run the script gen_repos.sh
. This will update the repository
After installing a karmic host, configure it to use the repository by creating a file /etc/apt/sources.list.d/tienhuis.list
with this content:
deb http://www.tienhuis.nl/ubuntu karmic main universe multiverse restricted |
Now add the GPG key so that the repository is trusted:
wget http://www.tienhuis.nl/ubuntu/gpg.key.asc -O - | apt-key add - |
Now you can install the vmware modules:
apt-get install open-vm-modules-`uname -r` |
TODO: try exactly these steps