Guest Kernel Changes for Xen 4

From PrgmrWiki
Jump to: navigation, search

For ubuntu precise, please do the following to upgrade to the latest supported version:

sudo apt-get update
sudo apt-get install linux-image-generic-lts-trusty

Check /boot/grub/menu.lst and verify that 1. a kernel with version 3.13 is present and 2. that this is default entry. If there is no boot entry, you may need to do

sudo cp /etc/apt/sources.list.d/trusty.list /etc/apt/sources.list.d/trusty.list.orig || true
echo "deb trusty universe" | sudo tee -a \
sudo apt-get update
sudo apt-get install pv-grub-menu

For debian squeeze, please do the following:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.orig
echo "deb squeeze-lts main contrib non-free" | \
sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install linux-image-amd64 #64 bit systems
sudo apt-get install linux-image-686-bigmem #32 bit systems
sudo mknod /dev/hvc0 c 229 0
#Edit /etc/inittab to include
#1:2345:respawn:/sbin/getty 38400 hvc0

Note, apparently for debian squeeze you no longer need to specify the console= on the kernel command line in /boot/grub/menu.lst... here's what a working guest kernel command line looks like on one of my guests:

title		Debian GNU/Linux, kernel 2.6.32-5-686-bigmem
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.32-5-686-bigmem root=/dev/xvda1 
initrd		/boot/initrd.img-2.6.32-5-686-bigmem