[Bug 782835] New: Xen HVM Guest fails (errors) to launch on Opensuse 12.2 + Xen 4.2 + 'xl' toolstack
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c0 Summary: Xen HVM Guest fails (errors) to launch on Opensuse 12.2 + Xen 4.2 + 'xl' toolstack Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Critical Priority: P5 - None Component: Xen AssignedTo: jdouglas@suse.com ReportedBy: ar16@imapmail.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1 Migrating from a stable/production install of Opensuse 12.1 + Xen 4.{1,2} + xm toolstack to Opensuse 12.2 + Xen 4.2 + xl toolstack + Opensuse 12.2 has been problematic. To simplify troubleshooting, I'm attempting to init a new/clean 12.2 Guest. The procedure is to init an HVM Guest, boot to a physically-attached Opensuse 12.2 Install DVD, and install a new/clean 12.2 Guest. Atm, the guest is failing to launch, with a series of errors: ... 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 6 libxl: error: libxl.c:1429:libxl__destroy_domid: libxl__destroy_device_model failed for 6 ... System info, lsb_release -a LSB Version: n/a Distributor ID: SUSE LINUX Description: openSUSE 12.2 (x86_64) Release: 12.2 Codename: Mantis uname -a Linux test 3.4.6-2.10-xen #1 SMP Thu Jul 26 09:36:26 UTC 2012 (641c197) x86_64 x86_64 x86_64 GNU/Linux Xen/xl info, xl info host : test release : 3.4.6-2.10-xen version : #1 SMP Thu Jul 26 09:36:26 UTC 2012 (641c197) machine : x86_64 nr_cpus : 4 max_cpu_id : 5 nr_nodes : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 2806 hw_caps : 178bf3ff:efd3fbff:00000000:00001310:00802001:00000000:000037ff:00000000 virt_caps : hvm total_memory : 7935 free_memory : 6844 sharing_freed_memory : 0 sharing_used_memory : 0 free_cpus : 0 xen_major : 4 xen_minor : 2 xen_extra : .0_01-204.1 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0xffff800000000000 xen_changeset : 25844 xen_commandline : conring_size=64 vga=gfx-1280x1024x16 log_buf_len=4M console=vga console_timestamps dom0_mem=1024M dom0_vcpus_pin=true dom0_max_vcpus=4 sched=credit apic_verbosity=verbose iommu=verbose cpuidle=1 cpufreq=xen clocksource=acpi numa=on cc_compiler : gcc (SUSE Linux) 4.7.1 20120723 [gcc-4_7-branch revision 189773 cc_compile_by : abuild cc_compile_domain : cc_compile_date : Fri Sep 28 15:30:52 UTC 2012 xend_config_format : 4 Verifying HVM availability, xl dmesg | grep -i hvm (XEN) [2012-09-28 22:53:56] HVM: ASIDs enabled. (XEN) [2012-09-28 22:53:56] HVM: SVM enabled (XEN) [2012-09-28 22:53:56] HVM: Hardware Assisted Paging (HAP) detected (XEN) [2012-09-28 22:53:56] HVM: HAP page sizes: 4kB, 2MB, 1GB The config I'm using, cat test.cfg name = 'test' builder = 'hvm' acpi = 1 apic = 1 boot = 'f' 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' ] maxmem = 1024 vcpus = 4 localtime = 0 netif = 'yes' on_shutdown = 'destroy' on_reboot = 'destroy' on_crash = 'destroy' The failing launch cmd, xl -vvv create -c /home/ar/test.cfg Parsing config from /home/ar/test.cfg libxl: debug: libxl_create.c:1173:do_domain_create: ao 0x7e1c80: create: how=(nil) callback=(nil) poller=0x7e1ce0 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=0x7e2690: 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 0x0x7f8d58910000 -> 0x0x7f8d589a4eb5 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 6 libxl: error: libxl.c:1429:libxl__destroy_domid: libxl__destroy_device_model failed for 6 libxl: debug: libxl_event.c:1497:libxl__ao_complete: ao 0x7e1c80: complete, rc=-3 libxl: debug: libxl_create.c:1186:do_domain_create: ao 0x7e1c80: inprogress: poller=0x7e1ce0, flags=ic libxl: debug: libxl_event.c:1469:libxl__ao__destroy: ao 0x7e1c80: destroy xc: debug: hypercall buffer: total allocations:871 total releases:871 xc: debug: hypercall buffer: current allocations:0 maximum allocations:4 xc: debug: hypercall buffer: cache current size:4 xc: debug: hypercall buffer: cache hits:863 misses:4 toobig:4 Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c1 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cyliu@suse.com --- Comment #1 from A R <ar16@imapmail.org> 2012-10-01 01:02:20 UTC --- fyi, I've added valgrind/gdb output to a thread @: http://lists.xen.org/archives/html/xen-devel/2012-10/msg00000.html -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c2 Olaf Hering <ohering@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ohering@suse.com --- Comment #2 from Olaf Hering <ohering@suse.com> 2012-10-01 16:40:18 CEST --- Bug is in xen-warnings-unused.diff, libxl__build_hvm returns error -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c3 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |ohering@suse.com --- Comment #3 from A R <ar16@imapmail.org> 2012-10-02 15:50:01 UTC --- So, narrowed down to opensuse's packaging. Do you have the info/detail you need from my end? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c4 --- Comment #4 from A R <ar16@imapmail.org> 2012-10-03 04:59:02 UTC --- After an upgrade this eve to 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 xen-libs-4.2.0_02-205.1.x86_64 xen-4.2.0_02-205.1.x86_64 I'm able to 'xl create' the HVM. It's installing now; see how far it gets. Looking at changelog, rpm -q --changelog xen * Mon Oct 01 2012 carnold@novell.com - Upstream patches from Jan 25927-x86-domctl-ioport-mapping-range.patch 25929-tmem-restore-pool-version.patch 25931-x86-domctl-iomem-mapping-checks.patch 25940-x86-S3-flush-cache.patch 25952-x86-MMIO-remap-permissions.patch 25961-x86-HPET-interrupts.patch 25962-x86-assign-irq-vector-old.patch 25965-x86-ucode-Intel-resume.patch * Tue Sep 25 2012 ohering@suse.de - pygrub: always append --args 25941-pygrub_always_append_--args.patch * Mon Sep 24 2012 ohering@suse.de - use BuildRequires: gcc46 only in sles11sp2 or 12.1 to fix build in 11.4 * Wed Sep 19 2012 carnold@novell.com ... I don't see a fix specific to this issue. So, since it's "working", is it just luck atm, and still requires attention to the bug "in xen-warnings-unused.diff"? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c5 --- Comment #5 from A R <ar16@imapmail.org> 2012-10-03 14:46:48 UTC ---
and still requires attention to the bug "in xen-warnings-unused.diff"?
fyi, launching appears to work for this HVM guest, but not when launched as a PV guest (https://bugzilla.novell.com/show_bug.cgi?id=782341#c8). do not know, yet, if same issue. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c6 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|ohering@suse.com |jdouglas@suse.com --- Comment #6 from A R <ar16@imapmail.org> 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 <garloff@suse.de> =================================================== 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c7 --- Comment #7 from A R <ar16@imapmail.org> 2012-10-03 23:14:23 UTC --- *** Bug 782341 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=782341 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c8 --- Comment #8 from A R <ar16@imapmail.org> 2012-10-03 23:32:01 UTC --- sloppy copy & paste of case (4) on my part. "Take 2" ... CASE (4) xl toolstack + bootloader=pygrub ==> FAILS cat *.cfg name = 'test' builder = 'linux' bootloader = 'pygrub' bootargs = '' ... 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.51.log libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: bootloader [26464] exited with error status 1 libxl: error: libxl_create.c:901:domcreate_rebuild_done: cannot (re-)build domain: -3 cat /var/log/xen/bootloader.51.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 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c9 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jfehlig@suse.com --- Comment #9 from A R <ar16@imapmail.org> 2012-10-04 22:39:52 UTC --- simply cc-adding someone (jfehlig) who's @suse, apparently alive/awake, and talking about libxl on xen-devel, in the hopes of getting the/any right, active eyes on this, and maybe (?) another down weekend ... -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c10 --- Comment #10 from A R <ar16@imapmail.org> 2012-10-04 22:41:47 UTC --- s/maybe/maybe avoiding/ -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c11 --- Comment #11 from James Fehlig <jfehlig@suse.com> 2012-10-04 22:47:25 UTC --- I have your libxl issues on my list, but can't guarantee that I will get to them before the weekend - sorry. I was on vacation and have a huge backlog... Can't you use Xen4.1 in the meantime? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c12 --- Comment #12 from A R <ar16@imapmail.org> 2012-10-04 22:53:34 UTC ---
I have your libxl issues on my list
Thanks for letting me know so quickly
Can't you use Xen4.1 in the meantime?
Unfortunately, not ... https://bugzilla.novell.com/show_bug.cgi?id=780368#c16 "4.1 + 12.2 <- fails to boot" -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c13 --- Comment #13 from Charles Arnold <carnold@suse.com> 2012-10-05 22:27:56 UTC --- Created an attachment (id=508429) --> (http://bugzilla.novell.com/attachment.cgi?id=508429) Potential fix Could you give this patch a try. Copy it to /usr/bin/ Run 'patch -p0 < pygrub-grub-args.patch' Try starting your VM. Thanks -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carnold@suse.com InfoProvider|jdouglas@suse.com |ar16@imapmail.org -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c14 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|ar16@imapmail.org | --- Comment #14 from A R <ar16@imapmail.org> 2012-10-06 03:21:42 UTC --- That patch seems to do the trick; PV Guest launches on 12.2 Dom0 with Xen 4.2+xl+pygrub, and Guest's net's 'up', cat /home/ar/testPV.cfg name = 'test' builder = 'linux' bootloader = 'pygrub' bootargs = '' xl create /home/ar/testPV.cfg Parsing config from /home/ar/testPV.cfg libxl: error: libxl_bootloader.c:628:bootloader_finished: bootloader failed - consult logfile /var/log/xen/bootloader.2.log libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: bootloader [16625] exited with error status 1 libxl: error: libxl_create.c:901:domcreate_rebuild_done: cannot (re-)build domain: -3 cd /usr/bin/ wget -k -O ./pygrub-grub-args.patch "http://bugzillafiles.novell.org/attachment.cgi?id=508429" patch -p0 < pygrub-grub-args.patch patching file pygrub xl -vvv create /home/ar/testPV.cfg Parsing config from /home/ar/testPV.cfg libxl: debug: libxl_create.c:1173:do_domain_create: ao 0x214a470: create: how=(nil) callback=(nil) poller=0x214aa10 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_create.c:677:initiate_domain_create: running bootloader ... libxl: debug: libxl_device.c:916:device_hotplug: calling hotplug script: /etc/xen/scripts/vif-bridge online libxl: debug: libxl_event.c:1667:libxl__ao_progress_report: ao 0x214a470: progress report: ignored libxl: debug: libxl_event.c:1497:libxl__ao_complete: ao 0x214a470: complete, rc=0 libxl: debug: libxl_event.c:1469:libxl__ao__destroy: ao 0x214a470: destroy Daemon running with PID 16791 xc: debug: hypercall buffer: total allocations:255 total releases:255 xc: debug: hypercall buffer: current allocations:0 maximum allocations:4 xc: debug: hypercall buffer: cache current size:4 xc: debug: hypercall buffer: cache hits:245 misses:4 toobig:6 xl list Name ID Mem VCPUs State Time(s) Domain-0 0 997 4 r----- 2711.7 test 3 1024 2 r----- 5.1 ssh test login: ... uname -a Linux test 3.4.6-2.10-xen #1 SMP Thu Jul 26 09:36:26 UTC 2012 (641c197) x86_64 x86_64 x86_64 GNU/Linux ping www.google.com -c1 PING www.google.com (74.125.224.48) 56(84) bytes of data. 64 bytes from nuq04s06-in-f16.1e100.net (74.125.224.48): icmp_seq=1 ttl=56 time=19.3 ms --- www.google.com ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 19.380/19.380/19.380/0.000 ms -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c15 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #15 from Charles Arnold <carnold@suse.com> 2012-10-08 15:48:15 UTC --- Thanks for testing the patch. Marking as fixed. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c16 --- Comment #16 from Olaf Hering <ohering@suse.com> 2012-10-08 17:51:43 CEST ---
Created an attachment (id=508429) --> (http://bugzilla.novell.com/attachment.cgi?id=508429) [details] Potential fix
Charles, in my 12.2 testing incfg["args"] is always a str, and I dont see how it can become a list, especially with bootargs='' in the .cfg file. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c17 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|FIXED | --- Comment #17 from A R <ar16@imapmail.org> 2012-10-08 15:58:39 UTC --- Before closing, can we get the id/location of the associated OBS integration request, and an actual test repo with a testable, deployable package? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c18 --- Comment #18 from Charles Arnold <carnold@suse.com> 2012-10-08 16:37:56 UTC --- (In reply to comment #16)
Created an attachment (id=508429) --> (http://bugzilla.novell.com/attachment.cgi?id=508429) [details] [details] Potential fix
Charles,
in my 12.2 testing incfg["args"] is always a str, and I dont see how it can become a list, especially with bootargs='' in the .cfg file.
incfg["args"] is a string but "args" by itself is a list which is what you used to append to the grub arguments. A more correct patch may be to append incfg["args"] instead of "args" and not bother with the check for 'list'. I haven't checked this on SLES yet. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c19 --- Comment #19 from Olaf Hering <ohering@suse.com> 2012-10-08 18:58:51 CEST --- it assigns 'args', but it should have assign 'arg'. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c20 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #508429|0 |1 is obsolete| | --- Comment #20 from Charles Arnold <carnold@suse.com> 2012-10-08 17:09:22 UTC --- Created an attachment (id=508558) --> (http://bugzilla.novell.com/attachment.cgi?id=508558) The correct fix (In reply to comment #19)
it assigns 'args', but it should have assign 'arg'.
I've updated the patch internally and will push it out to the Virtualization repo. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c21 --- Comment #21 from Olaf Hering <ohering@suse.com> 2012-10-08 19:10:17 CEST --- Created an attachment (id=508563) --> (http://bugzilla.novell.com/attachment.cgi?id=508563) pygrub-args.patch The bug is a wrong assignment. I'm not sure where 'args' was coming from, but it should have been 'arg'. Rename the local variable and correct assignment. diff -r 0e999fae8b14 pygrub --- pygrub +++ pygrub @@ -585,7 +585,7 @@ def get_entry_idx(cf, entry): return None -def run_grub(file, entry, fs, arg): +def run_grub(file, entry, fs, cfg_args): global g global sel @@ -622,8 +622,8 @@ def run_grub(file, entry, fs, arg): grubcfg["ramdisk"] = img.initrd[1] if img.args: grubcfg["args"] += img.args - if arg: - grubcfg["args"] += " " + args + if cfg_args: + grubcfg["args"] += " " + cfg_args return grubcfg -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c22 --- Comment #22 from A R <ar16@imapmail.org> 2012-10-08 22:20:47 UTC --- (In reply to comment #13)
Created an attachment (id=508429) --> (http://bugzilla.novell.com/attachment.cgi?id=508429) [details] Potential fix
Could you give this patch a try. Copy it to /usr/bin/ Run 'patch -p0 < pygrub-grub-args.patch' Try starting your VM.
Thanks
fyi, problems with a symlink ... rpm -qa | grep -i ^xen xen-libs-4.2.0_03-206.2.x86_64 xen-4.2.0_03-206.2.x86_64 xen-tools-4.2.0_03-206.2.x86_64 xen-devel-4.2.0_03-206.2.x86_64 cd /usr/bin/ wget -k -O ./pygrub-grub-args.patch "http://bugzillafiles.novell.org/attachment.cgi?id=508429" patch -p0 < pygrub-grub-args.patch File pygrub is not a regular file -- can't patch 1 out of 1 hunk ignored -- saving rejects to file pygrub.rej ??? ls -al /usr/bin/pygrub lrwxrwxrwx 1 root root 23 Oct 7 15:20 /usr/bin/pygrub -> ../lib64/xen/bin/pygrub* cd /usr/lib64/xen/bin/ patch -p0 < /usr/bin/pygrub-grub-args.patch patching file pygrub -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c23 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #508558|0 |1 is obsolete| | Attachment #508563|0 |1 is obsolete| | --- Comment #23 from Charles Arnold <carnold@suse.com> 2012-10-08 22:52:22 UTC --- Created an attachment (id=508619) --> (http://bugzilla.novell.com/attachment.cgi?id=508619) Pygrub patch - same code change just modified path I should have mentioned that the second (and this) version of the patch would need to apply to the original /usr/bin/pygrub (not the one already patched). Also, the path in the last patch was based on a source build location and not the actual location in /usr/bin. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c24 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |CLOSED Resolution| |FIXED --- Comment #24 from Charles Arnold <carnold@suse.com> 2012-10-09 12:37:58 UTC --- Xen has been submitted to Factory with SR#137604. Packages will be built and show up on the software download page after it has been accepted by one of the 'gate keepers'. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c25 --- Comment #25 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-10-09 15:00:13 CEST --- This is an autogenerated message for OBS integration: This bug (782835) was mentioned in https://build.opensuse.org/request/show/137604 Factory / xen -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |RESOLVED -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=782835 https://bugzilla.novell.com/show_bug.cgi?id=782835#c26 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #26 from A R <ar16@imapmail.org> 2012-10-11 04:31:11 UTC --- rpm -q --whatprovides `which pygrub` xen-tools-4.2.0_03-209.1.x86_64 works. thanks. -- 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.
participants (1)
-
bugzilla_noreply@novell.com