Bud Bundy
2011-Nov-15 00:18 UTC
[Xen-users] How to get pygrub to load grub2 guest on Squeeze Dom0.
Hi, I''m trying to install a FC 16 PV guest. After installation the guest doesn''t load with: Error: Boot loader didn''t return any data! xend.log: [2011-11-14 18:57:32 32321] ERROR (XendBootloader:214) Boot loader didn''t return any data! [2011-11-14 18:57:32 32321] ERROR (XendDomainInfo:483) VM start failed Traceback (most recent call last): File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 469, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 2820, in _initDomain self._configureBootloader() File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 3266, in _configureBootloader bootloader_args, kernel, ramdisk, args) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBootloader.py", line 215, in bootloader raise VmError, msg The only thing I could find that was close is this: Reading the wiki this is a known issue: http://wiki.debian.org/Xen#Upgrading.2BAC8-transition With a bug report in debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599243 If I''m reading bug report correctly it''s fixed in 4.0.1-2? When I do apt-cache show xen-hypervisor-4.0-amd64, the version I have is 4.0.1-4. Thanks _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2011-Nov-15 02:51 UTC
Re: [Xen-users] How to get pygrub to load grub2 guest on Squeeze Dom0.
On Mon, Nov 14, 2011 at 7:18 PM, Bud Bundy <budric@gmail.com> wrote:> Hi, > I''m trying to install a FC 16 PV guest. After installation the guest > doesn''t load with: Error: Boot loader didn''t return any data!Some debugging tips here: https://bugzilla.redhat.com/show_bug.cgi?id=577511 I wouldn''t completely rule out that it is a Xen + grub2 problem. You may also want to take a closer look at the file system type and give more details about that and search to see if the file type can be a problem with your xen + pygrub setup. Hope that helps. Thanks, Todd -- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/community/xenday11.html http://cloudstack.org/about-cloudstack/cloudstack-events/viewevent/29-build-an-open-source-cloud-day-boston.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kyle Lexmond
2011-Nov-15 03:32 UTC
Re: [Xen-users] How to get pygrub to load grub2 guest on Squeeze Dom0.
I had a similar problem with my F16 PV install that came down to having /boot formatted as btrfs - except pygrub doesn''t support it, so it can''t read the initrd & kernel. I can''t remember it btrfs was the default filesystem for /boot though, and even if it is, you might have changed it to ext3/4, so this might not help. If this is your problem, how I fixed it: I ended up creating a new LV, formatting it as ext4, block-attaching both the btrfs and ext4 formatted LVs to my dom0, and copying the grub files from the btrfs LV to the ext4 LV. One point if you do this: The new LV has a different UUID though, so F16 refused to boot because the disks are referenced by UUID in the domU''s /etc/fstab, so you''ll need to change that. I resorted to doing it all through the emergency shell, taking advantage of screen''s text buffer to copy the output. I documented what I did here - http://kyl191.net/2011/10/stupid-trick-changing-the-uuid-in-etcfstab-from-an-emergency-shell-with-screen/ if you''re inclined to follow it, but because it took a fair bit of unnecessary configuration, I recommend running blkid in your dom0 and replacing the UUID in your domU''s /etc/fstab after attaching the domU''s root partition to your dom0, and editing with $EDITOR_OF_CHOICE. Hope that helped, and good luck. On Tue, Nov 15, 2011 at 8:18 AM, Bud Bundy <budric@gmail.com> wrote:> Hi, > I''m trying to install a FC 16 PV guest. After installation the guest > doesn''t load with: Error: Boot loader didn''t return any data! > xend.log: > [2011-11-14 18:57:32 32321] ERROR (XendBootloader:214) Boot loader didn''t > return any data! > [2011-11-14 18:57:32 32321] ERROR (XendDomainInfo:483) VM start failed > Traceback (most recent call last): > File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 469, > in start > XendTask.log_progress(31, 60, self._initDomain) > File "/usr/lib/xen-4.0/lib/python/xen/xend/XendTask.py", line 209, in > log_progress > retval = func(*args, **kwds) > File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 2820, > in _initDomain > self._configureBootloader() > File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 3266, > in _configureBootloader > bootloader_args, kernel, ramdisk, args) > File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBootloader.py", line 215, > in bootloader > raise VmError, msg > The only thing I could find that was close is this: > Reading the wiki this is a known > issue: http://wiki.debian.org/Xen#Upgrading.2BAC8-transition > With a bug report in > debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599243 > If I''m reading bug report correctly it''s fixed in 4.0.1-2? > When I do apt-cache show xen-hypervisor-4.0-amd64, the version I have is > 4.0.1-4. > 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
Bud Bundy
2011-Nov-15 04:13 UTC
Re: [Xen-users] How to get pygrub to load grub2 guest on Squeeze Dom0.
Kyle, thanks for the suggestions. The guest installs onto a logical volume in Dom 0 (/dev/storage/fc16). Then the guest further partitions that device into ext4 for /boot, and the rest is LVM and ext4 for / mount point. I don''t think that''s the problem. Nothing exotic like btrfs. Todd, thanks. I''m not sure I follow your suggestions. The link has a patch to pygrub. I can''t install it since it''s for Red Hat and I''m running Debian Squeeze. And there''s nothing else in /var/log/xen/xend.log relevant to that domain that''s failing to start. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2011-Nov-15 04:20 UTC
Re: [Xen-users] How to get pygrub to load grub2 guest on Squeeze Dom0.
On Tue, Nov 15, 2011 at 11:13 AM, Bud Bundy <budric@gmail.com> wrote:> Kyle, thanks for the suggestions. The guest installs onto a logical volume > in Dom 0 (/dev/storage/fc16). Then the guest further partitions that device > into ext4 for /boot, and the rest is LVM and ext4 for / mount point. I > don''t think that''s the problem. Nothing exotic like btrfs. > Todd, thanks. I''m not sure I follow your suggestions. The link has a patch > to pygrub. I can''t install it since it''s for Red Hat and I''m running Debian > Squeeze. And there''s nothing else in /var/log/xen/xend.log relevant to that > domain that''s failing to start.Then try running it manually. Something like pygrub -i /path/to/your/domU/root/fs/image ... then watch what happens. If it spits out errors, try to work on that. If it seem to hang with high cpu usage, most likely the fs isn''t supported (I think I have a version somewhere that doesn''t even support ext4, only ext2/3). It might be the case that pygrub got confused with nested menus. In that case you can try creating a grub.cfg manually, or create /boot/grub/menu.lst (i.e. old-style grub1 config) manually. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kyle Lexmond
2011-Nov-15 08:06 UTC
Re: [Xen-users] How to get pygrub to load grub2 guest on Squeeze Dom0.
Ok, last thought. https://bugzilla.redhat.com/show_bug.cgi?id=745335 mentions a grub2 bug with pygrub''s handling of F16''s installation of grub2. M Young summarized it as "By default Fedora 16 installs a Bios boot partition as the first GPT partition to contain grub2 boot code, and the grub2 configuration files are in the GPT second partition. Pygrub currently only checks the first partition." http://lists.xensource.com/archives/html/xen-devel/2011-10/msg01121.html has a mention of a patch, but I''m not sure if it''s backported to Xen 4.0, since it seems to be for Xen 4.1. On Tue, Nov 15, 2011 at 12:13 PM, Bud Bundy <budric@gmail.com> wrote:> Kyle, thanks for the suggestions. The guest installs onto a logical volume > in Dom 0 (/dev/storage/fc16). Then the guest further partitions that device > into ext4 for /boot, and the rest is LVM and ext4 for / mount point. I > don''t think that''s the problem. Nothing exotic like btrfs. > Todd, thanks. I''m not sure I follow your suggestions. The link has a patch > to pygrub. I can''t install it since it''s for Red Hat and I''m running Debian > Squeeze. And there''s nothing else in /var/log/xen/xend.log relevant to that > domain that''s failing to start. > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bud Bundy
2011-Nov-15 16:24 UTC
Re: [Xen-users] How to get pygrub to load grub2 guest on Squeeze Dom0.
Kyle I think you''re right. Installation was creating an extra partition. I erased it AND IT WORKED!!! THANK YOU. Also I made /boot ext3 just in case. But I think it was the extra 1 MB partition at the start of the disk. On Tue, Nov 15, 2011 at 3:06 AM, Kyle Lexmond <kyl191@kyl191.net> wrote:> Ok, last thought. https://bugzilla.redhat.com/show_bug.cgi?id=745335 > mentions a grub2 bug with pygrub''s handling of F16''s installation of > grub2. M Young summarized it as "By default Fedora 16 installs a Bios > boot partition as the first GPT partition to contain grub2 boot code, > and the grub2 configuration files are in the GPT second partition. > Pygrub currently only checks the first partition." > > http://lists.xensource.com/archives/html/xen-devel/2011-10/msg01121.html > has a mention of a patch, but I''m not sure if it''s backported to Xen > 4.0, since it seems to be for Xen 4.1. > > On Tue, Nov 15, 2011 at 12:13 PM, Bud Bundy <budric@gmail.com> wrote: > > Kyle, thanks for the suggestions. The guest installs onto a logical > volume > > in Dom 0 (/dev/storage/fc16). Then the guest further partitions that > device > > into ext4 for /boot, and the rest is LVM and ext4 for / mount point. I > > don''t think that''s the problem. Nothing exotic like btrfs. > > Todd, thanks. I''m not sure I follow your suggestions. The link has a > patch > > to pygrub. I can''t install it since it''s for Red Hat and I''m running > Debian > > Squeeze. And there''s nothing else in /var/log/xen/xend.log relevant to > that > > domain that''s failing to start. > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kyle Lexmond
2011-Nov-15 16:42 UTC
Re: [Xen-users] How to get pygrub to load grub2 guest on Squeeze Dom0.
Glad to hear it! I''m planning on doing a guide to installing a F16 dom0/domU this weekend, so I''ll be sure to mention the bug and your workaround in it. :) On Wed, Nov 16, 2011 at 12:24 AM, Bud Bundy <budric@gmail.com> wrote:> Kyle I think you''re right. Installation was creating an extra partition. I > erased it AND IT WORKED!!! THANK YOU. > Also I made /boot ext3 just in case. But I think it was the extra 1 MB > partition at the start of the disk. > > On Tue, Nov 15, 2011 at 3:06 AM, Kyle Lexmond <kyl191@kyl191.net> wrote: >> >> Ok, last thought. https://bugzilla.redhat.com/show_bug.cgi?id=745335 >> mentions a grub2 bug with pygrub''s handling of F16''s installation of >> grub2. M Young summarized it as "By default Fedora 16 installs a Bios >> boot partition as the first GPT partition to contain grub2 boot code, >> and the grub2 configuration files are in the GPT second partition. >> Pygrub currently only checks the first partition." >> >> http://lists.xensource.com/archives/html/xen-devel/2011-10/msg01121.html >> has a mention of a patch, but I''m not sure if it''s backported to Xen >> 4.0, since it seems to be for Xen 4.1. >> >> On Tue, Nov 15, 2011 at 12:13 PM, Bud Bundy <budric@gmail.com> wrote: >> > Kyle, thanks for the suggestions. The guest installs onto a logical >> > volume >> > in Dom 0 (/dev/storage/fc16). Then the guest further partitions that >> > device >> > into ext4 for /boot, and the rest is LVM and ext4 for / mount point. I >> > don''t think that''s the problem. Nothing exotic like btrfs. >> > Todd, thanks. I''m not sure I follow your suggestions. The link has a >> > patch >> > to pygrub. I can''t install it since it''s for Red Hat and I''m running >> > Debian >> > Squeeze. And there''s nothing else in /var/log/xen/xend.log relevant to >> > that >> > domain that''s failing to start. >> > >> > >> > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Seemingly Similar Threads
- Has anyone been able to start a Fedora 16 VM in Xen PV?
- How to solve "Error: Boot loader didn't return any data"
- "Boot loader did not return any data" to make HVM to PV
- Bug#649349: xen-hypervisor-4.1-amd64: pygrub fails due to invalid opcode trapped
- Error: Boot loader didn't return any data [pygrub boot debian wheezy alpha1 netinst ISO]