Module Copying Guide
If your site kernels require modules, the VM will need to be populated.
Make sure there is enough space on the partition file. If not, create a bigger filesystem:
# ls -lh ttylinux-xen -rw-r--r-- 1 2894 311 4.0M Apr 20 00:32 ttylinux-xen # du -sh /lib/modules/2.6.16.33-xen/ 41M /lib/modules/2.6.16.33-xen/ # mv ttylinux-xen ttylinux-xen-old # dd if=/dev/zero of=ttylinux-xen bs=1k count=65k 66560+0 records in 66560+0 records out 68157440 bytes (68 MB) copied, 0.425743 s, 160 MB/s # ls -lh ttylinux-xen -rw-r--r-- 1 root root 65M Oct 17 10:49 ttylinux-xen # mke2fs ttylinux-xen mke2fs 1.38 (30-Jun-2005) ttylinux-xen is not a block special device. Proceed anyway? (y,n) y [rest of output snipped]
Run a recursive copy of the relevant modules directory into the VM (you may need to obtain these from an administrator). See the Offline Editing Guide for more information about mounting loopback.
# mkdir tmp # mount -o loop ttylinux-xen tmp/ # mkdir tmp2 # mount -o loop ttylinux-xen-old tmp2/ # cp -a tmp2/* tmp/ # umount tmp2/ # rmdir tmp2 # cp -a /lib/modules/2.6.16.33-xen tmp/lib/modules/ # umount tmp # rmdir tmp