https://bugzilla.novell.com/show_bug.cgi?id=782835
https://bugzilla.novell.com/show_bug.cgi?id=782835#c6
A R changed:
What |Removed |Added
----------------------------------------------------------------------------
InfoProvider|ohering@suse.com |jdouglas@suse.com
--- Comment #6 from A R 2012-10-03 23:07:33 UTC ---
On host, Opensuse 12.2 Dom0
rpm -qa | grep -i xen
xen-tools-4.2.0_02-205.1.x86_64
xen-devel-4.2.0_02-205.1.x86_64
kernel-xen-3.4.6-2.10.1.x86_64
ipset-kmp-xen-6.12_k3.4.6_2.10-2.3.1.x86_64
xen-libs-4.2.0_02-205.1.x86_64
patterns-openSUSE-xen_server-12.2-5.5.1.x86_64
kernel-xen-devel-3.4.6-2.10.1.x86_64
xen-4.2.0_02-205.1.x86_64
Build a new DomU,
Opensuse 12.2 Guest
launched as HVM
installed from Opensuse 12.2 Installer DVD
test HVM Guest launch, @case:
(1) xm toolstack ==> WORKS
(2) xl toolstack ==> WORKS
converted HVM to PV Guest
test PV Guest launch, @case:
(1) xm toolstack + bootloader=domUloader.py ==> WORKS
(2) xm toolstack + bootloader=pygrub ==> FAILS
(3) xl toolstack + bootloader=domUloader.py ==> FAILS
(4) xl toolstack + bootloader=domUloader.py ==> FAILS
===================================================
CASE (1) xm toolstack + bootloader=domUloader.py ==> WORKS
cat *.cfg
name = 'test'
builder = 'linux'
bootloader = '/usr/lib/xen/boot/domUloader.py'
bootargs = '--entry=xvda1:vmlinuz-xen,/boot/initrd-xen'
...
service xend start
xm create /home/ar/test_PV.cfg
==> WORKS
===================================================
CASE (2) xm toolstack + bootloader=pygrub ==> FAILS
cat *.cfg
name = 'test'
builder = 'linux'
bootloader = 'pygrub'
bootargs = ''
...
service xend start
xm create /home/ar/test_PV.cfg
==> FAILS
pyGRUB version 0.6
┌────────────────────────────────────────────────────────────────────────┐
│ Xen4 DomU -- openSUSE 12.2 │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└────────────────────────────────────────────────────────────────────────┘
Use the ^ and ┴ keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, 'a' to modify the kernel arguments
before booting, or 'c' for a command line.
Will boot selected entry in 1 seconds
Traceback (most recent call last):
File "/usr/bin/pygrub", line 860, in
<module>
raise RuntimeError, "Unable to find partition containing kernel"
RuntimeError: Unable to find partition
containing kernel
Error: Boot loader didn't return any data!
===================================================
CASE (3) xl toolstack + bootloader=domUloader.py ==> FAILS
cat *.cfg
name = 'test'
builder = 'linux'
bootloader = '/usr/lib/xen/boot/domUloader.py'
bootargs = '--entry=xvda1:vmlinuz-xen,/boot/initrd-xen'
...
xm destroy test
service xend stop
xl create /home/ar/test_PV.cfg
==> FAILS
xl create /home/ar/test_PV.cfg
Parsing config from /home/ar/test_PV.cfg
libxl: error: libxl_bootloader.c:628:bootloader_finished: bootloader
failed - consult logfile /var/log/xen/bootloader.46.log
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus:
bootloader [26255] exited with error status 1
libxl: error: libxl_create.c:901:domcreate_rebuild_done: cannot
(re-)build domain: -3
cat /var/log/xen/bootloader.46.log
domUloader usage: domUloader [--output=fd] [--quiet] [--dryrun]
[--verbose]
[--args] [--help] --entry=dev:kernel[,ramdisk] physdisk [virtdisk]
dev format: hd[a-p][0-9]*, xvd[a-p][0-9]*, LVM-vgname-lvname
Loader for kernel and (optional) ramdisk from domU filesystem
Given a physical disk (or disk image) for a domU and the path of a
kernel and
optional ramdisk, copies the kernel and ramdisk from the domU disk to a
temporary location in dom0.
The --entry parameter specifies the location of the kernel (and
optional
ramdisk) within the domU filesystem. dev is the disk as seen by domU.
Filenames are relative to that filesystem.
The disk is passed as the last parameter. It must be a block device or
raw
disk image. More complex disk images (QCOW, VMDK, etc) must already be
configured via blktap and presented as a block device.
The script writes an sxpr specifying the locations of the copied kernel
and
ramdisk into the file specified by --output (default is stdout).
Limitations:
- It is assumed both kernel and ramdisk are on the same filesystem.
- domUs might use LVM; the script currently does not have support for
setting
up LVM mappings for domUs; it's not trivial and we might risk
namespace
conflicts. If you want to use LVM inside domUs, set up a small
non-LVM boot
partition and specify it in bootentry.
The script uses kpartx (multipath-tools) to create mappings for devices
that
are exported as whole disk devices that are partitioned.
(c) 01/2006 Novell Inc
License: GNU GPL
Author: Kurt Garloff
===================================================
CASE (4) xl toolstack + bootloader=domUloader.py ==> FAILS
xm destroy test
cat *.cfg
name = 'test'
builder = 'linux'
bootloader = 'pygrub'
bootargs = ''
...
xm destroy test
service xend restart
xm create /home/ar/test_PV.cfg
==> FAILS
xl create /home/ar/test_PV.cfg
Parsing config from /home/ar/test_PV.cfg
libxl: error: libxl_bootloader.c:628:bootloader_finished: bootloader
failed - consult logfile /var/log/xen/bootloader.49.log
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus:
bootloader [26321] exited with error status 1
libxl: error: libxl_create.c:901:domcreate_rebuild_done: cannot
(re-)build domain: -3
cat /var/log/xen/bootloader.49.log
pyGRUB version 0.6
┌────────────────────────────────────────────────────────────────────────┐
│ Xen4 DomU -- openSUSE 12.2
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
└────────────────────────────────────────────────────────────────────────┘
Use the ^ and ┴ keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, 'a' to modify the kernel arguments
before booting, or 'c' for a command line.
Will boot selected entry in 1 seconds
Traceback (most recent call last):
File "/usr/bin/pygrub", line 860, in <module>
raise RuntimeError, "Unable to find partition containing kernel"
RuntimeError: Unable to find partition containing kernel
===================================================
I'm going to stop here until I get some additional feedback as to what's,
possibly, still broken/needed
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.