[Libvir] Issue with creating domains that use pygrub

I'm stumped. I'm trying to automate creation of domains through libvirt and the Python bindings, but I'm having trouble getting things to work when using pygrub. If I define an XML-described domain and use <bootloader>/usr/bin/pygrub</bootloader> the domain tries to start and then immediately crashes. Using explicit local-pathed vmlinuz/initrd without the bootloader element works just fine. Am I missing something? The version of libvirt on my test system in 0.1.9. Thanks! C. Halstead <chris@sourcelabs.com> SourceLabs - http://www.sourcelabs.com Dependable Open Source Systems

On Tue, Jan 30, 2007 at 10:39:05AM -0800, Chris Halstead wrote:
I'm stumped. I'm trying to automate creation of domains through libvirt and the Python bindings, but I'm having trouble getting things to work when using pygrub.
If I define an XML-described domain and use <bootloader>/usr/bin/pygrub</bootloader> the domain tries to start and then immediately crashes. Using explicit local-pathed vmlinuz/initrd without the bootloader element works just fine. Am I missing something?
Not sure - which bit crashes ? Pygrub, or XenD, or the guest kernel ? If there's any interesting looking stuff in xend.log or xend-debug.log please post it to the list. Oh also, what version of xen & python are you using - there's crash with Xen 3.0.4 or later when using with python 2.5 Regards, Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|

NM - found it. The grub.conf in the image was configured with 'root=LABEL=/' and the label on the disk image didn't match. Works now... Thanks, C. Halstead <chris@sourcelabs.com> SourceLabs - http://www.sourcelabs.com Dependable Open Source Systems On 1/30/07 10:51 AM, "Daniel P. Berrange" <berrange@redhat.com> wrote:
On Tue, Jan 30, 2007 at 10:39:05AM -0800, Chris Halstead wrote:
I'm stumped. I'm trying to automate creation of domains through libvirt and the Python bindings, but I'm having trouble getting things to work when using pygrub.
If I define an XML-described domain and use <bootloader>/usr/bin/pygrub</bootloader> the domain tries to start and then immediately crashes. Using explicit local-pathed vmlinuz/initrd without the bootloader element works just fine. Am I missing something?
Not sure - which bit crashes ? Pygrub, or XenD, or the guest kernel ? If there's any interesting looking stuff in xend.log or xend-debug.log please post it to the list.
Oh also, what version of xen & python are you using - there's crash with Xen 3.0.4 or later when using with python 2.5
Regards, Dan.
participants (2)
-
Chris Halstead
-
Daniel P. Berrange