I have a CentOS 5.7 domU I''m trying to convert from an hvm to pv. I''ve installed the xen kernel in the domU and setup menu.lst and fstab for xvda devices. When I try to xm create the domU I get "Error: Boot loader didn''t return any data!" If I do: pygrub /dev/mapper/360030d90f890d704c735eff06069f0df I get: Traceback (most recent call last): File "/usr/bin/pygrub", line 713, in <module> chosencfg = run_grub(file, entry, fs, incfg["args"]) File "/usr/bin/pygrub", line 548, in run_grub g = Grub(file, fs) File "/usr/bin/pygrub", line 204, in __init__ self.read_config(file, fs) File "/usr/bin/pygrub", line 408, in read_config raise RuntimeError, "couldn''t find bootloader config file in the image provided." RuntimeError: couldn''t find bootloader config file in the image provided. If I do: pygrub /dev/mapper/360030d90f890d704c735eff06069f0df_part1 This one I see the grub menu. The disk structure is: part1 = /boot part2 = swap part3 = / Any suggestions or thoughts on where the problem lies? Thanks, James
Hello. El 12/04/12 09:35, James Pifer escribió:> When I try to xm create the domU I get "Error: Boot loader didn''t return > any data!"In what order are the vitrual disks mentioned in your DomU .cfg file? Make sure your VM''s /boot goes first. -- Alexandre Kouznetsov
On Thu, 2012-04-12 at 12:34 -0500, Alexandre Kouznetsov wrote:> Hello. > > El 12/04/12 09:35, James Pifer escribió: > > When I try to xm create the domU I get "Error: Boot loader didn't return > > any data!" > > In what order are the vitrual disks mentioned in your DomU .cfg file? > > Make sure your VM's /boot goes first. >It's one partitioned disk. /dev/mapper/360030d90f890d704c735eff06069f0df so: disk=['phy:/dev/mapper/360030d90f890d704c735eff06069f0df,xvda,w'] Thanks, James _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
the default debian squeeze fs is ext4. If your /boot is ext4, back it up, and reformat as ext3. The pygrub in Centos won''t support ext4. -- Mark ________________________________ From: James Pifer <jep@obrien-pifer.com> To: Xen list <xen-users@lists.xensource.com> Cc: Alexandre Kouznetsov <alk@ondore.com> Sent: Thursday, April 12, 2012 10:49 AM Subject: Re: [Xen-users] pygrub question On Thu, 2012-04-12 at 12:34 -0500, Alexandre Kouznetsov wrote:> Hello. > > El 12/04/12 09:35, James Pifer escribió: > > When I try to xm create the domU I get "Error: Boot loader didn''t return > > any data!" > > In what order are the vitrual disks mentioned in your DomU .cfg file? > > Make sure your VM''s /boot goes first. >It''s one partitioned disk. /dev/mapper/360030d90f890d704c735eff06069f0df so: disk=[''phy:/dev/mapper/360030d90f890d704c735eff06069f0df,xvda,w''] Thanks, James _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users