Hi Everyone, To convert an HVM install to PV, is it just as simple as creating a new config file, and use the "kernel" and "initrd" parameters to boot from a XEN kernel stored in the Dom0, and use the (ex) HVM''s disk image in the "disk" parameter? Or is there something else I am missing? Thanks _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 06/08/10 11:48, Jonathan Tripathy wrote:> Hi Everyone, > To convert an HVM install to PV, is it just as simple as creating a > new config file, and use the "kernel" and "initrd" parameters to boot > from a XEN kernel stored in the Dom0, and use the (ex) HVM''s disk > image in the "disk" parameter?You will have to handle your disk-layout. Normally you would give pv domU your partition instead of your disk. hda or sda becomes xvda in the pv world, so you will add directly the data-partition (xvda1 e.g.). And you will have to get a paravirtualized kernel and initrd for your domU to boot. oh, and your getty has to listen to xvc0 (on xenified kernels) or hvc0 (on pvops-kernels) and not on tty1-6 anymore in order to have a console login prompt after booting. you could also try to migrate your grub to pvgrub. then you don''t have mess around and convert your hvm-disk (with partitiontable and everything). But I don''t know how stable pvgrub is. in ##xen, i observed many problems with pvgrub and hvm-pv migration. Good luck. Sincerly Nicolas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
The Xen Live CD v2.0 teach you about this! ;-) On 8 June 2010 06:48, Jonathan Tripathy <jonnyt@abpni.co.uk> wrote:> Hi Everyone, > > To convert an HVM install to PV, is it just as simple as creating a new > config file, and use the "kernel" and "initrd" parameters to boot from a XEN > kernel stored in the Dom0, and use the (ex) HVM''s disk image in the "disk" > parameter? > > Or is there something else I am missing? > > Thanks > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Jun 8, 2010 at 4:48 PM, Jonathan Tripathy <jonnyt@abpni.co.uk> wrote:> Hi Everyone, > > To convert an HVM install to PV, is it just as simple as creating a new > config file, and use the "kernel" and "initrd" parameters to boot from a XEN > kernel stored in the Dom0, and use the (ex) HVM''s disk image in the "disk" > parameter? > > Or is there something else I am missing?Example for RHEL/Centos domU: http://pastebin.com/f6a5022bf When using recent kernel with pv_ops enabled (like Ubuntu Lucid with linux-image-server or linux-image-virtual), the process is actually simpler, in that you don''t need a different kernel. However you stil need to: - handle disk name changes. I usually get around that by using labels or UUID in grub.conf and fstab - handle console change. It doesn''t matter as much if you use vfb (since you''ll have VNC-accesible GUI, same way as in HVM), but it''d matter a lot if you only use text console. Upstart is actually flexible enough in that it allows you to create an entry wihch detects whether a particular console device works, and if so, spawn login screen there. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users