[opensuse-virtual] Correct config to 'xl' init an Opensuse 12.2 Xen Guest, booting to installer DVD?
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: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
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.
I was informed in #xen that 'pygrub' is not a "real bootloader", and can't boot to DVD. In order to successfully do that, I'd need to boot an HVM guest. Switching my config to: cat test.cfg name = 'test' kernel = '/usr/lib/xen/boot/hvmloader' builder = 'hvm' #device_model = '/usr/lib64/xen/bin/qemu-dm' acpi = 1 apic = 1 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', ] vif = [ 'mac=00:16:3E:55:00:01, model=rtl8139, type=ioemu, bridge=br0, vifname=vifO',] vfb = [ 'type=vnc, vncdisplay=1, vnclisten=127.0.0.1' ] boot = 'f' maxmem = 2048 vcpus = 4 localtime = 0 netif = 'yes' on_shutdown = 'destroy' on_reboot = 'destroy' on_crash = 'destroy' Guest launch still fails, but differently, xl create -c test.cfg Parsing config from test.cfg xc: info: VIRTUAL MEMORY ARRANGEMENT: Loader: 0000000000100000->000000000019e028 TOTAL: 0000000000000000->000000007f800000 ENTRY ADDRESS: 0000000000100000 xc: info: PHYSICAL MEMORY ALLOCATION: 4KB PAGES: 0x0000000000000200 2MB PAGES: 0x00000000000003fb 1GB PAGES: 0x0000000000000000 libxl: error: libxl_create.c:901:domcreate_rebuild_done: cannot (re-)build domain: -3 libxl: error: libxl_dm.c:1251:libxl__destroy_device_model: could not find device-model's pid for dom 37 libxl: error: libxl.c:1429:libxl__destroy_domid: libxl__destroy_device_model failed for 37 Can someone contribute a working config to boot a Xen Guest -- hvm or pv -- from the Opensuse installer and launch it for access via VNC? -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
Guest launch still fails, but differently,
xl create -c test.cfg
Same, but with verbose output: xl -vvv create -c test.cfg Parsing config from test.cfg libxl: debug: libxl_create.c:1173:do_domain_create: ao 0x259dd50: create: how=(nil) callback=(nil) poller=0x259de70 libxl: debug: libxl_device.c:229:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=unknown libxl: debug: libxl_device.c:265:libxl__device_disk_set_backend: Disk vdev=xvda, using backend phy libxl: debug: libxl_device.c:229:libxl__device_disk_set_backend: Disk vdev=xvdb spec.backend=unknown libxl: debug: libxl_device.c:265:libxl__device_disk_set_backend: Disk vdev=xvdb, using backend phy libxl: debug: libxl_device.c:229:libxl__device_disk_set_backend: Disk vdev=xvdc spec.backend=unknown libxl: debug: libxl_device.c:265:libxl__device_disk_set_backend: Disk vdev=xvdc, using backend phy libxl: debug: libxl_device.c:229:libxl__device_disk_set_backend: Disk vdev=xvdd spec.backend=unknown libxl: debug: libxl_device.c:265:libxl__device_disk_set_backend: Disk vdev=xvdd, using backend phy libxl: debug: libxl_create.c:677:initiate_domain_create: running bootloader libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not a PV domain, skipping bootloader libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=0x259e6a0: deregister unregistered libxl: debug: libxl_numa.c:435:libxl__get_numa_candidate: New best NUMA placement candidate found: nr_nodes=1, nr_cpus=4, nr_vcpus=8, free_memkb=6842 libxl: detail: libxl_dom.c:192:numa_place_domain: NUMA placement candidate with 1 nodes, 4 cpus and 6842 KB free selected xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0x9e028 xc: detail: elf_parse_binary: memory: 0x100000 -> 0x19e028 xc: info: VIRTUAL MEMORY ARRANGEMENT: Loader: 0000000000100000->000000000019e028 TOTAL: 0000000000000000->000000007f800000 ENTRY ADDRESS: 0000000000100000 xc: info: PHYSICAL MEMORY ALLOCATION: 4KB PAGES: 0x0000000000000200 2MB PAGES: 0x00000000000003fb 1GB PAGES: 0x0000000000000000 xc: detail: elf_load_binary: phdr 0 at 0x0x7fdf87b41000 -> 0x0x7fdf87bd5eb5 libxl: error: libxl_create.c:901:domcreate_rebuild_done: cannot (re-)build domain: -3 libxl: error: libxl_dm.c:1251:libxl__destroy_device_model: could not find device-model's pid for dom 38 libxl: error: libxl.c:1429:libxl__destroy_domid: libxl__destroy_device_model failed for 38 libxl: debug: libxl_event.c:1497:libxl__ao_complete: ao 0x259dd50: complete, rc=-3 libxl: debug: libxl_create.c:1186:do_domain_create: ao 0x259dd50: inprogress: poller=0x259de70, flags=ic libxl: debug: libxl_event.c:1469:libxl__ao__destroy: ao 0x259dd50: destroy xc: debug: hypercall buffer: total allocations:872 total releases:872 xc: debug: hypercall buffer: current allocations:0 maximum allocations:4 xc: debug: hypercall buffer: cache current size:4 xc: debug: hypercall buffer: cache hits:864 misses:4 toobig:4 -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
participants (1)
-
ar16@imapmail.org