Matej Zary
2010-Feb-27 14:18 UTC
[Xen-users] Converting Debian Lenny HVM DomU to PV on Lenny Dom0 - PV DomU hangs during boot
Hi guys, maybe I''m too sleep deprived or just dumb, but can''t get it working (using standard Lenny Xen 3.2.1 and Xen kernel 2.6.26-2-xen-amd64 - will move to another later) :(. Steps (inspiration taken from http://www.asplund.nu/xencluster/xen-convert-hvm-to-pvm.html): 1. Created HVM Debian Lenny amd64 DomU with img file as hda (standard netinst installation without LVM and with everything in /). 2. Installed Debian xen kernel in this DomU via aptitude. 3. Created two LVMs in Dom0 for the PV (one with ext3 for / and second one for swap) 4. rsynced everything from / of HVM DomU from the hda img file to the ext3 LVM (using losetup and kpartx) 5. changed /etc/fstab in the LVM to xvda1 and xvda2 6. Created PV DomU and experienced hang during boot (see attached txt logs - boot log and PV cfg file) Bad initrd? Many thanks for your help. Regards Matej _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
David
2010-Feb-27 14:28 UTC
Re: [Xen-users] Converting Debian Lenny HVM DomU to PV on Lenny Dom0 - PV DomU hangs during boot
You need to add /dev/hvc0 to your /etc/inittab as a console. On 27 February 2010 14:18, Matej Zary <zary@cvtisr.sk> wrote:> Hi guys, > > maybe I''m too sleep deprived or just dumb, but can''t get it working (using > standard Lenny Xen 3.2.1 and Xen kernel 2.6.26-2-xen-amd64 - will move to > another later) :(. > > Steps (inspiration taken from > http://www.asplund.nu/xencluster/xen-convert-hvm-to-pvm.html): > > 1. Created HVM Debian Lenny amd64 DomU with img file as hda (standard > netinst installation without LVM and with everything in /). > 2. Installed Debian xen kernel in this DomU via aptitude. > 3. Created two LVMs in Dom0 for the PV (one with ext3 for / and second one > for swap) > 4. rsynced everything from / of HVM DomU from the hda img file to the ext3 > LVM (using losetup and kpartx) > 5. changed /etc/fstab in the LVM to xvda1 and xvda2 > 6. Created PV DomU and experienced hang during boot (see attached txt > logs - boot log and PV cfg file) > > Bad initrd? > > Many thanks for your help. > > Regards > > Matej > > _______________________________________________ > 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
Matej Zary
2010-Feb-27 15:02 UTC
RE: [Xen-users] Converting Debian Lenny HVM DomU to PV on Lenny Dom0 - PV DomU hangs during boot
Many thanks, works like charm! Lenny DomU /etc/inittab: Replaced 1:2345:respawn:/sbin/getty 38400 tty1 with 1:2345:respawn:/sbin/getty 38400 hvc0 Regards Matej -----Original Message----- From: David [mailto:admin@dmarkey.com] Sent: Saturday, February 27, 2010 3:29 PM To: Matej Zary Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Converting Debian Lenny HVM DomU to PV on Lenny Dom0 - PV DomU hangs during boot You need to add /dev/hvc0 to your /etc/inittab as a console. On 27 February 2010 14:18, Matej Zary <zary@cvtisr.sk> wrote: Hi guys, maybe I''m too sleep deprived or just dumb, but can''t get it working (using standard Lenny Xen 3.2.1 and Xen kernel 2.6.26-2-xen-amd64 - will move to another later) :(. Steps (inspiration taken from http://www.asplund.nu/xencluster/xen-convert-hvm-to-pvm.html): 1. Created HVM Debian Lenny amd64 DomU with img file as hda (standard netinst installation without LVM and with everything in /). 2. Installed Debian xen kernel in this DomU via aptitude. 3. Created two LVMs in Dom0 for the PV (one with ext3 for / and second one for swap) 4. rsynced everything from / of HVM DomU from the hda img file to the ext3 LVM (using losetup and kpartx) 5. changed /etc/fstab in the LVM to xvda1 and xvda2 6. Created PV DomU and experienced hang during boot (see attached txt logs - boot log and PV cfg file) Bad initrd? Many thanks for your help. Regards Matej _______________________________________________ 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
Markus Hochholdinger
2010-Mar-17 19:58 UTC
Re: [Xen-users] Converting Debian Lenny HVM DomU to PV on Lenny Dom0 - PV DomU hangs during boot
Hello, Am 27.02.2010 um 15:28 Uhr schrieb David <admin@dmarkey.com>:> You need to add /dev/hvc0 to your /etc/inittab as a console.... or add "xencons=tty" to your domUs "extra" configuration line. I''ve done this because with this option i can switch forth and back the domU kernel. Unfortunately this isn''t working anymore with the new pv_ops kernels. -- greetings eMHa _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users