TIP: Building Modules in Xen
kernel sources
You'll need to deploy a 6.06 profile, log in, and then use:
apt-get update
apt-get upgrade
apt-get install build-essential
Then, go to /usr/src, grab the kernel source, and untar it:
wget
tar xvfj 2.6.18.8-domU-linode7.tar.bz2
Create a symbolic link:
ln -s 2.6.18.8-domU-linode7 linux
You should now be ready to compile and test your modules. Once you have done so, go back to the dashboard, change your normal boot profile to connect the Ubuntu image to a virtual device, and boot back into your original system. You can then mount that image somewhere (let's say /dapper for this example), and copy your Ubuntu /lib/modules/2.6.18.8-domU-linode7 tree to your original system.
cp -ax /dapper/lib/modules/2.6.18-domU-linode7 /lib/modules
If you want to rebuild modules, you can just use chroot to bring up a shell in the Ubuntu environment instead of rebooting:
chroot /dapper /bin/bash