[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Convert Debian 6 from HVM to PV



I have a couple Debian 6 HVM VMs. From what I've read, Debian 6's standard kernels have pv_ops already enabled. I'd like to convert these to pv for the following reasons (Assuming both of are valid expectations):

1) so the VMs use pv for the NICs
2) so the VMs properly respond to shutdown/reboot commands from xm

I'm having trouble converting them. I believe need to convert the menu from something like this:
        root (hd0,0)
        kernel /xen.gz-2.6.18-53.1.14.el5
        module /vmlinuz-2.6.18-53.1.14.el5xen ro root=LABEL=/
        module /myinitrd.img

to something like this:
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.1.14.el5xen ro root=LABEL=/
        initrd /myinitrd.img

The Debian 6 VMs I have appear to use grub2, which is a pain in the rear as far as I can tell. I expect there are good reasons for it, but being able to modify a menu.lst makes this transition much easier. The top of the file says to use /etc/grub.d and settings from /etc/default/grub to update grub.cfg, but I can't figure out how they build the menu section.

Here's the menu section of grub.cfg. Can anyone give me some help on changing this to the proper form for booting pv?

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8d0d1b45-e312-49ee-9213-50651e18f259
        echo    'Loading Linux 2.6.32-5-686 ...'
linux /boot/vmlinuz-2.6.32-5-686 root=UUID=8d0d1b45-e312-49ee-9213-50651e18f259 ro quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-2.6.32-5-686
}

Any help is appreciated.

Thanks,
James

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.