I have the following config files on my Debian 5 dom0 with self-compiled Xen 3.3.1 and Debian 2.6.26-2-xen-amd64 kernel. ### hvm2 name = ''hvm2'' builder = ''hvm'' device_model = ''/usr/lib/xen/bin/stubdom-dm'' kernel = ''/usr/lib/xen/boot/hvmloader'' memory = ''512'' acpi = 1 apic = 1 pae = 1 vcpus = 1 sdl = 0 vnc = 0 boot = ''d'' vif = [ ''mac=00:16:3e:11:11:01,bridge=vlan2000'' ] ### hvm2-dm disk = [ ''phy:/dev/vg0/hvm2,sda,w'', ''file:/xen/iso/ubuntu-9.04-alternate-i386.iso,hda:cdrom,r'' ] kernel = "/usr/lib/xen/boot/ioemu-stubdom.gz" vfb = [ ''type=vnc'' ] vif = [ '''', ''mac=00:16:3e:11:11:01,bridge=vlan2000'' ] I''m able to start this VM and complete the Ubuntu installation. But if after installation I change the boot device to "c", the domU fails to start. Using "cd" boots to the Ubuntu installation program and if I then select "Boot from first hard disk" I get isolinux: Disk error 01, AX = 0201, drive 80 Boot failed: press a key to retry... Next I booted into the installation CD''s "Rescue a broken system" mode. In there I can see /dev/sda with / and swap. Any ideas what I am doing wrong? Martti _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, May 15, 2009 at 5:51 PM, Martti Kuparinen <martti.kuparinen@iki.fi> wrote:> disk = [ ''phy:/dev/vg0/hvm2,sda,w'', > ''file:/xen/iso/ubuntu-9.04-alternate-i386.iso,hda:cdrom,r'' ]> isolinux: Disk error 01, AX = 0201, drive 80 > Boot failed: press a key to retry...I''m not sure if hvm guest can boot from sda. Try changing it to disk = [ ''phy:/dev/vg0/hvm2,hda,w'', ''file:/xen/iso/ubuntu-9.04-alternate-i386.iso,hdc:cdrom,r'' ] Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha wrote:> I''m not sure if hvm guest can boot from sda. Try changing it toYes, that fixed my problems. Thanks! Martti _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, May 15, 2009 at 7:28 PM, Martti Kuparinen <martti.kuparinen@iki.fi> wrote:> Fajar A. Nugraha wrote: > >> I''m not sure if hvm guest can boot from sda. Try changing it to > > Yes, that fixed my problems. > > Thanks!You''re welcome. I must ask though, why do you use hvm guest for Ubuntu? HVM guest performance (at least today) will be lower compared to PV guests. Even with the help of PV drivers (which is not available for Ubuntu''s kernel) or stubdom. If you don''t use any propietary binary-only driver it''d be best performance-wise to use PV guest. If you''re interested I can share the steps necessary to convert your HVM guest to PV. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar, I think all of us are interested in these magic steps to convert hvm in pv. ;-) Guido> -----Ursprüngliche Nachricht----- > Von: Fajar A. Nugraha [mailto:fajar@fajar.net] > Gesendet: Freitag, 15. Mai 2009 14:38 > An: Xen User-List > Betreff: Re: [Xen-users] stubdom boot problems > > On Fri, May 15, 2009 at 7:28 PM, Martti Kuparinen > <martti.kuparinen@iki.fi> wrote: > > Fajar A. Nugraha wrote: > > > >> I''m not sure if hvm guest can boot from sda. Try changing it to > > > > Yes, that fixed my problems. > > > > Thanks! > > You''re welcome. > > I must ask though, why do you use hvm guest for Ubuntu? > HVM guest performance (at least today) will be lower compared to PV > guests. Even with the help of PV drivers (which is not available for > Ubuntu''s kernel) or stubdom. If you don''t use any propietary > binary-only driver it''d be best performance-wise to use PV guest. > > If you''re interested I can share the steps necessary to convert your > HVM guest to PV. > > Regards, > > Fajar > > _______________________________________________ > 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 Fri, May 15, 2009 at 7:57 PM, Guido Hecken <guido.hecken@gwsnettech.de> wrote:> Fajar, > > I think all of us are interested in these magic steps to convert hvm in pv. > ;-)No magic here I''m afraid, just plain science :) Here''s for Ubuntu 9.04 Server amd4 without LVM: Part 1: Installing HVM domU : http://pastebin.com/f630547c Part 2: Converting HVM to PV, using Lenny''s Xen kernel : http://pastebin.com/f63285128 Here''s the same thing for RHEL/Centos 5 that I created some time ago: Part 1. Creating a Centos HVM domU with working PV drivers : http://pastebin.com/fb6fe631 Part 2, converting HVM guest to PV guest : http://pastebin.com/f6a5022bf Using LVM for "/" on domU makes thing somewhat complicated. For example, on Ubuntu install /boot will be located on the end of disk in an extended partition, which makes in unreadable by pygrub. There''s a workaround for this, but the easiest way is to NOT use LVM for "/" when installing. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha wrote:> I must ask though, why do you use hvm guest for Ubuntu?Because I didn''t have access to my winxp.iso but I wanted to test how HVM works :-) In real life I''m a happy NetBSD domU user so PV domU is old stuff for me.> If you''re interested I can share the steps necessary to convert your > HVM guest to PV.Yes please, I have few Ubuntu hosts currently running on VMware ESXi which I want to move to Xen. I assume it''s quite a simple task but ready-to-follow instructions are always nice to have. Martti _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2009-May-15 17:30 UTC
Re: [Xen-users] stubdom boot problems
Well, this magics steps to convert HVM into a PVM are on the Xen Live CD! :-D http://wiki.xensource.com/xenwiki/LiveCD ...demonstration of conversion between machines HVM / PVM... Paravirt_ops is the real "magic", just like in the Prestigie movie!! Save Tesla! ^_^ Regards, Thiago 2009/5/15 Guido Hecken <guido.hecken@gwsnettech.de>> Fajar, > > I think all of us are interested in these magic steps to convert hvm in pv. > ;-) > > Guido > > > > -----Ursprüngliche Nachricht----- > > Von: Fajar A. Nugraha [mailto:fajar@fajar.net] > > Gesendet: Freitag, 15. Mai 2009 14:38 > > An: Xen User-List > > Betreff: Re: [Xen-users] stubdom boot problems > > > > On Fri, May 15, 2009 at 7:28 PM, Martti Kuparinen > > <martti.kuparinen@iki.fi> wrote: > > > Fajar A. Nugraha wrote: > > > > > >> I''m not sure if hvm guest can boot from sda. Try changing it to > > > > > > Yes, that fixed my problems. > > > > > > Thanks! > > > > You''re welcome. > > > > I must ask though, why do you use hvm guest for Ubuntu? > > HVM guest performance (at least today) will be lower compared to PV > > guests. Even with the help of PV drivers (which is not available for > > Ubuntu''s kernel) or stubdom. If you don''t use any propietary > > binary-only driver it''d be best performance-wise to use PV guest. > > > > If you''re interested I can share the steps necessary to convert your > > HVM guest to PV. > > > > Regards, > > > > Fajar > > > > _______________________________________________ > > 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 >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, May 16, 2009 at 12:30 AM, Thiago Camargo Martins Cordeiro <thiagocmartinsc@gmail.com> wrote:> Well, this magics steps to convert HVM into a PVM are on the Xen Live CD! > :-D > > http://wiki.xensource.com/xenwiki/LiveCD > ...demonstration of conversion between machines HVM / PVM... > > Paravirt_ops is the real "magic"True, pv_ops make things easier. That and the availablity of vfb for PV guest, as it means you can have the same image for both native/hvm and PV. However from http://wiki.xensource.com/xenwiki/XenParavirtOps, it still lacks balloon expansion, which means you can''t grow domU memory beyond it''s initial size. It also lacks device hotplug. So if you need those features (like I do) you still need -xen kernel for domU. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users