I have a Opensuse 12.2 + Xen 4.2 server.

I want to configure a Xen Guest to boot to a physically attached
Opensuse install DVD, and init the guest with the default 'xl'
toolstack.

The config I'm working with is,

        cat ~/os122.cfg
                name = 'os122'
                builder = 'linux'
                bootloader = 'pygrub'
                bootargs = '-q'
                disk = [ 'phy:/dev/VG0/boot,xvda,w',
                'phy:/dev/VG0/swap,xvdb,w', 'phy:/dev/VG0/root,xvdc,w',
                'phy:/dev/cdrom,xvdd:cdrom,r',]
                root = '/dev/xvdd1'
                vif = [ 'bridge=br0',]
                vfb = [ 'type=vnc, vncdisplay=01, vnclisten=127.0.0.1' ]
                maxmem = 1024
                vcpus = 2
                localtime = 0
                netif = 'yes'
                on_shutdown = 'destroy'
                on_reboot = 'destroy'
                on_crash = 'destroy'

On launch,

        xl create -c os122.cfg
                Parsing config from os122.cfg
                libxl: error:
                libxl_bootloader.c:628:bootloader_finished: bootloader
                failed - consult logfile /var/log/xen/bootloader.1.log
                libxl: error:
                libxl_exec.c:118:libxl_report_child_exitstatus:
                bootloader [12340] exited with error status 1
                libxl: error: libxl_create.c:901:domcreate_rebuild_done:
                cannot (re-)build domain: -3
                libxl: error: libxl_dom.c:34:libxl__domain_type: unable
                to get domain type for domid=1
                Unable to attach console
                libxl: error:
                libxl_exec.c:118:libxl_report_child_exitstatus: console
                child [0] exited with error status 1

The referenced log contains,

        cat /var/log/xen/bootloader.1.log
                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

It appears that pygrub fails to find the kernel in

        mount /dev/cdrom /mnt/CDROM
        ls -al /mnt/CDROM/boot/x86_64/ | egrep "vmlinuz|initrd"
                -r--r--r-- 1 root root  45M Aug 24 08:58 initrd-xen
                -r--r--r-- 1 root root 4.2M Aug 24 08:58 vmlinuz-xen
        umount /mnt/CDROM

Specifying the kernel & ramdisk path

        -       bootargs = '-q'
        +       bootargs = '-q --kernel=/boot/x86_64/vmlinuz-xen
        --ramdisk=/boot/x86_64/initrd-xen'

doesn't help.  Same error & log.

What's the correct config to specify the DVD's kernel/init so pygrub can
find it?
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to