[Bug 820885] New: virt-manager Xen VM install fails due to "No kernel was found." message

https://bugzilla.novell.com/show_bug.cgi?id=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c0 Summary: virt-manager Xen VM install fails due to "No kernel was found." message Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: openSUSE 12.3 Status: NEW Severity: Critical Priority: P5 - None Component: Xen AssignedTo: jdouglas@suse.com ReportedBy: rschaffner@novell.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- When doing an opensuse Xen VM install on a Xen host running openSUSE 12.3 using virt-manager, the install fails after the first reboot with a "No kernel was found. The installation may have failed." message. It looks like the openSUSE Xen VM is trying to use the same temporary kernel file after the first reboot that it used for the install but that tmp file is no longer there. So the install fails. domainbuilder: detail: xc_dom_allocate: cmdline=" install=hd:/dev/xvdb ", features="(null)" libxl: debug: libxl_dom.c:379:libxl__build_pv: pv kernel mapped 0 path /tmp/kernel.TQnGKf domainbuilder: detail: xc_dom_kernel_file: filename="/tmp/kernel.TQnGKf" libxl: error: libxl_dom.c:391:libxl__build_pv: xc_dom_kernel_file failed: No such file or directory homevhst01:~ # rpm -qa | grep virt virt-manager-0.9.4-4.3.1.x86_64 python-virtinst-0.600.3-2.2.1.x86_64 virt-utils-1.1.9-6.1.1.x86_64 libvirt-1.0.2-1.3.1.x86_64 libvirt-client-1.0.2-1.3.1.x86_64 libvirt-python-1.0.2-1.3.1.x86_64 virt-viewer-0.5.4-4.1.1.x86_64 homevhst01:~ # rpm -qa | grep -i xen xen-kmp-desktop-4.2.1_12_k3.7.10_1.1-1.8.1.x86_64 kernel-xen-3.7.10-1.4.1.x86_64 xen-tools-4.2.1_12-1.8.1.x86_64 kernel-xen-3.7.10-1.1.1.x86_64 xen-doc-pdf-4.2.1_12-1.8.1.x86_64 xen-libs-4.2.1_12-1.8.1.x86_64 xen-4.2.1_12-1.8.1.x86_64 patterns-openSUSE-xen_server-12.3-7.10.1.x86_64 xen-doc-html-4.2.1_12-1.8.1.x86_64 homevhst01:~ # -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c1 --- Comment #1 from Ralph Schaffner <rschaffner@novell.com> 2013-05-21 05:55:42 UTC --- Created an attachment (id=540290) --> (http://bugzilla.novell.com/attachment.cgi?id=540290) This is the libxl.log output from the failed install Here is the libxl.log output from the failed install. -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jdouglas@suse.com |carnold@suse.com QAContact|qa-bugs@suse.de |jdouglas@suse.com -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c2 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |rschaffner@novell.com --- Comment #2 from Charles Arnold <carnold@suse.com> 2013-05-22 22:39:31 UTC --- Have you disabled xend (it must not run when using xl)? Please attach the configuration file from /etc/xen/vm/ for this VM. -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c3 --- Comment #3 from Ralph Schaffner <rschaffner@novell.com> 2013-05-23 04:03:06 UTC --- Yes, I disabled xend. homevhst01:~ # ps aux | grep xend | grep -v grep homevhst01:~ # chkconfig xend xend off homevhst01:~ # I've also configured libvirtd to start after xenstored and xenconsoled so it is loading the libxl driver. See https://bugzilla.novell.com/show_bug.cgi?id=820888 I don't have the config file for that VM anymore so I recreated the error and I'll attach all the related files for it. -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c4 --- Comment #4 from Ralph Schaffner <rschaffner@novell.com> 2013-05-23 04:05:51 UTC --- Created an attachment (id=540766) --> (http://bugzilla.novell.com/attachment.cgi?id=540766) libxl.log for "bugtest" VM Here is the libxl.log file for the failed "bugtest" VM -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c5 --- Comment #5 from Ralph Schaffner <rschaffner@novell.com> 2013-05-23 04:09:49 UTC --- Created an attachment (id=540767) --> (http://bugzilla.novell.com/attachment.cgi?id=540767) Here is the screenshot of the error as you see it from virt-manager Virt-manager is able to initially create the VM and perform the install. Everything runs smoothly until the first reboot. After that we see this error because it is trying to use a temporary kernel file that no longer exists instead of switching over to using pygrub or some other bootloader to pull the correct kernel from the newly created VM. -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c6 --- Comment #6 from Ralph Schaffner <rschaffner@novell.com> 2013-05-23 04:11:40 UTC --- Created an attachment (id=540768) --> (http://bugzilla.novell.com/attachment.cgi?id=540768) bugtest VM config file Here is the VM config file generated by virt-manager. -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c7 Ralph Schaffner <rschaffner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|rschaffner@novell.com | --- Comment #7 from Ralph Schaffner <rschaffner@novell.com> 2013-05-23 04:25:58 UTC --- So to reiterate, this is not a xen problem. When I upgraded my Xen host to opensuse 12.3, I disabled xend and imported all my existing VMs into libvirtd using virsh. I can see them through virsh and virt-manager and have no trouble managing my existing Xen VMs through libvirtd. I can't pull up a console for then through libvirtd ( I have to use xl ) but that will be a separate bug. :) I can create the VMs manually without virt-manager. I can also get virt-manager to work (sort of) by creating the disk manually using qemu-img and passing it to virt-manager for the install. If I do that, virt-manager wont delete the disk after the failure and I can modify the config file that virt-manager creates to start the VM. The problem I have is with creating new VMs through virt-manager due to it's inability to find the correct kernel after the first reboot. -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c8 --- Comment #8 from Charles Arnold <carnold@suse.com> 2013-05-23 12:52:11 UTC --- For debugging, there are a couple things you can do. To preserve the image after an error, manually run vm-install at the command line with the '--preserve-on-error' flag. Normally vm-install should be writing out a post install configuration file that removes the temporary kernel and initrd and uses pygrub (if a pv guest) to start up the guest. Try manually running vm-install with the --debug flag which dumps out lots of information as things progress. If you could capture that and attach it to this bug would be helpful. I haven't been able to dup this problem yet but I wasn't using qcow2 which may be where vm-install is failing. It tries to validate the image after an install and will display this error if for some reason it fails. Also, could you show the version of vm-install you are using? -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c9 --- Comment #9 from Ralph Schaffner <rschaffner@novell.com> 2013-05-30 05:59:10 UTC --- Created an attachment (id=541876) --> (http://bugzilla.novell.com/attachment.cgi?id=541876) vm-install debug output I ran vm-install directly with the debug flag and I'm attaching the output. The version of vm-install that I am running is 0.6.16 homevhst01:~ # rpm -qf $(which vm-install) vm-install-0.6.16-1.1.1.x86_64 homevhst01:~ # Just looking over the output, it looks like vm-install is still trying to use "xm" for attaching disks. I don't know if that is another issue or related to the kernel issue but vm-install obviously hasn't been completely updated to work with xl. -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c10 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |rschaffner@novell.com --- Comment #10 from Charles Arnold <carnold@suse.com> 2013-05-30 20:32:00 UTC --- In the Build Service 'Virtualization' project is a new vm-install with a fix for this bug and others. https://build.opensuse.org/package/binaries?package=vm-install&project=Virtualization&repository=openSUSE_12.3 Could you give it a try? -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c11 --- Comment #11 from Ralph Schaffner <rschaffner@novell.com> 2013-05-30 20:37:54 UTC --- Yes, I will give it a try and let you know my results. -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c12 Ralph Schaffner <rschaffner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|rschaffner@novell.com | --- Comment #12 from Ralph Schaffner <rschaffner@novell.com> 2013-05-31 02:18:58 UTC --- The 0.7.0 version of vm-install fixes the issue. I can now use vm-install to create xen VMs using xl/libvirtd without having to resort to any kinds of hacks or workarounds. homevhst01:~ # rpm -q vm-install vm-install-0.7.0-150.1.x86_64 homevhst01:~ # It also fixed a few other minor issues that I noticed but didn't get around to opening bugs on such as the appending of "/root/" onto the path of the virtual CDROM devices. -- 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=820885 https://bugzilla.novell.com/show_bug.cgi?id=820885#c13 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #13 from Charles Arnold <carnold@suse.com> 2013-05-31 14:06:43 UTC --- Thanks for testing. Closing. -- 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