Karolina Kotova
2011-Aug-12 12:33 UTC
[Xen-users] change HVM to PV with root on logical volume
I have full virtualized CentOs with disks ike this ------------- /dev/vg00/lv_root / ext3 defaults 1 1 /dev/hda1 /boot ext3 defaults 1 2 --------------- I try change my it to paravirtualized, but after reboot I got kernel panic, because /dev/vg00/lv_root wansn''t found. ----------------- this is my grub config title CentOS (2.6.18-128.el5xen_pv) root (hd0,0) kernel /vmlinuz-2.6.18-128.el5xen ro module /initrd-2.6.18-128.el5xen-no-scsi.img root=/dev/vg00/lv_root ------------------- What should I do to my CentOs work paravirtualized? thanks Karolina _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Carsten Heesch
2011-Aug-12 13:20 UTC
Re: [Xen-users] change HVM to PV with root on logical volume
Hi Karolina,> ----------------- this is my grub config > title CentOS (2.6.18-128.el5xen_pv) > root (hd0,0) > kernel /vmlinuz-2.6.18-128.el5xen ro > module /initrd-2.6.18-128.el5xen-no-scsi.img root=/dev/vg00/lv_root > -------------------It looks like the (out-of-date) stock CentOS 5.5 Xen kernel, which should work just fine. However, you need to specify the root= parameter at the kernel line, not the module. Actually the module line should be called initrd instead. Like this: title CentOS (2.6.18-128.el5xen_pv) root (hd0,0) kernel /vmlinuz-2.6.18-128.el5xen ro root=/dev/vg00/lv_root initrd /initrd-2.6.18-128.el5xen-no-scsi.img The chainloader/module syntax is only valid in Dom0. You don''t need that for your guest. Also make sure that your default= entry in menu.lst points to this kernel as well. And to be safe, you can also set timeout=<seconds> to be able to choose a different kernel at boot time, if you made a mistake. Cheers Carsten _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users