Red Hat Bugzilla – Bug 507073
virt-manager hangs while setting up WinXP VM ....
Last modified: 2009-08-07 10:37:27 EDT
Description of problem:I am trying to use virt-manager to set up a WinXP-SP2 qemu-kvm VM. I get to step 5 when it tries to go ahead & setup the VM & the process hangs (went for ~12 hrs. last night, I am trying again this A.M.).
Version-Release number of selected component (if applicable):latest as of this A.M.
How reproducible: try it yourself
Steps to Reproduce:
1.invoke virt-manager from a bash CLI
2.enter data for VM (I took almost all defaults)
3.hit finish button, last progress dialog opens up, DVD-drive flashes for about 10 sec., then everything hangs ....
Actual results:process hangs
Expected results:creates new VM
Additional info: from my messages file this A.M.:
Jun 20 09:16:08 athloncube gnome-keyring-daemon: adding removable location: volume_label_WXPVOL_EN at /media/WXPVOL_EN
Jun 20 09:16:08 athloncube libvirtd: 09:16:08.625: error : Domain not found
Jun 20 09:16:28 athloncube libvirtd: 09:16:28.081: error : Domain not found
Jun 20 09:16:56 athloncube libvirtd: 09:16:56.751: error : Domain not found
Jun 20 09:16:56 athloncube libvirtd: 09:16:56.770: error : Domain not found
Jun 20 09:17:10 athloncube libvirtd: 09:17:10.063: error : Domain not found
Jun 20 09:17:10 athloncube libvirtd: 09:17:10.082: error : Domain not found
Jun 20 09:17:10 athloncube libvirtd: 09:17:10.276: error : Domain not found
Jun 20 09:17:10 athloncube libvirtd: 09:17:10.326: error : Domain not found
Jun 20 09:17:10 athloncube kernel: device vnet0 entered promiscuous mode
Jun 20 09:17:10 athloncube kernel: virbr0: topology change detected, propagating
Jun 20 09:17:10 athloncube kernel: virbr0: port 1(vnet0) entering forwarding state
Jun 20 09:17:10 athloncube NetworkManager: nm_device_ethernet_new: assertion `driver != NULL' failed
Jun 20 09:17:14 athloncube ntpd: Listening on interface #10 vnet0, fe80::85b:e2ff:fe83:2015#123 Enabled
Jun 20 09:17:15 athloncube nm-system-settings: Added default wired connection 'Auto vnet0' for /org/freedesktop/Hal/devices/net_0a_5b_e2_83_20_15
from ps in another window:
[wam@athloncube, ~, 9:20:48am] 66 % ps -elf | grep virt
5 S root 1873 1 0 80 0 - 116360 poll_s Jun19 ? 00:00:04 libvirtd --daemon
5 S root 24080 1 0 80 0 - 620530 poll_s 09:14 ? 00:00:03 python /usr/share/virt-manager/virt-manager.py
0 S root 24131 1 0 80 0 - 183132 poll_s 09:17 ? 00:00:02 /usr/bin/qemu-kvm -S -M pc -m 512 -smp 1 -name WinXP -uuid e7929660-ca3f-ae92-5913-0356ea556392 -monitor pty -pidfile /var/run/libvirt/qemu//WinXP.pid -localtime -no-reboot -no-acpi -boot d -drive file=/home/VMs/hda.img,if=ide,index=0 -drive file=/dev/sr0,if=ide,media=cdrom,index=2 -net nic,macaddr=54:52:00:4f:c3:31,vlan=0 -net tap,fd=18,script=,vlan=0,ifname=vnet0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:0
0 S wam 24339 2397 0 80 0 - 1554 pipe_w 09:27 pts/0 00:00:00 grep virt
[wam@athloncube, ~, 9:27:10am] 66 %
See https://fedoraproject.org/wiki/Reporting virtualization bugs
What versions of virt-manager, python-virtinst libvirt and qemu-system-x86? Please attach ~/.virt-manager/virt-manager.log and /var/log/libvirt/qemu/$guest.log
FWIW, installing WinXP SP2 works fine for me on F-11
Created attachment 348976 [details]
virt-manager log ....
Created attachment 348978 [details]
[root@athloncube:/etc, Mon Jun 22, 02:24 PM] 1212 # grep virt-manager LIST.installed
virt-manager.x86_64 0.7.0-5.fc11 installed
[root@athloncube:/etc, Mon Jun 22, 02:26 PM] 1213 # grep python-virtinst LIST.installed
python-virtinst.noarch 0.400.3-8.fc11 installed
[root@athloncube:/etc, Mon Jun 22, 02:26 PM] 1214 # grep libvirt LIST.installed
libvirt.x86_64 0.6.2-11.fc11 installed
libvirt-python.x86_64 0.6.2-11.fc11 installed
[root@athloncube:/etc, Mon Jun 22, 02:26 PM] 1215 # grep qemu-system-x86 LIST.installed
qemu-system-x86.x86_64 2:0.10.5-3.fc11 installed
[root@athloncube:/etc, Mon Jun 22, 02:26 PM] 1216 #
need anything else, don't hesitate ....
Okay, nothing interesting in the logs and I have tried this recently and it works well for me - the only difference is that I used and ISO instead of a physical cd-rom
$> dd if=/dev/sr0 of=/tmp/winxp.iso
and try again?
If that works, it will help narrow down the problem. Thanks
Created attachment 349115 [details]
new virt-manager.log file ....
here is the newer virt-manager.log file trying to use the iso in /tmp ratherr than through the DVD drive ....
still nogo, but different behavior ....
Okay, your attempt to install with the ISO failed with:
Unable to complete install '<class 'libvirt.libvirtError'> internal error unable to start guest: char device redirected to /dev/pts/23
What was in /var/log/libvirt/qemu/WinXP.log this time?
Sorry, I should have included that last time. I just tried again this A.M. & it shows:
[root@athloncube:/etc, Wed Jun 24, 08:58 AM] 1079 # ll /var/log/libvirt/qemu/WinXP.log
1155208 4 -rw-r--r--. 1 root root 562 Jun 24 08:57 /var/log/libvirt/qemu/WinXP.log
[root@athloncube:/etc, Wed Jun 24, 08:58 AM] 1080 # cat /var/log/libvirt/qemu/WinXP.log
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin /usr/bin/qemu-kvm -S -M pc -m 512 -smp 1 -name WinXP -uuid 1900af4c-bc04-d822-9fef-912a3d584de8 -monitor pty -pidfile /var/run/libvirt/qemu//WinXP.pid -localtime -no-reboot -no-acpi -boot d -drive file=/home/VMs/hda.img,if=ide,index=0 -drive file=/tmp/winxp.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=54:52:00:14:40:12,vlan=0 -net tap,fd=18,script=,vlan=0,ifname=vnet0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:0
char device redirected to /dev/pts/22
char device redirected to /dev/pts/23
[root@athloncube:/etc, Wed Jun 24, 08:58 AM] 1081 #
uname -a shows:
Linux athloncube.cfd.com 220.127.116.11-167.fc11.x86_64 #1 SMP Wed May 27 17:27:08 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
Created attachment 349242 [details]
virt-manager.log from this A.M., consistent w/ last post about WinXP guest log ....
Here is the virt-manager.log from this AM, consistent w/ the WinXP guest log from a few minutes ago ....
Unlike the last time you tried with an iso, this virt-manager.log doesn't show the guest failing to start and your /var/log/libvirt/qemu/WinXP.log doesn't show any errors either.
What happened this time? Did the guest hang like it did when you were using /dev/sr0?
yes, it hung. The little progress dialog w/ the progress thingy that bounces back & forth hung about 10 sec. in (stopped bouncing), it said 'Creating domain...' right above the progress bar, then came up w/ an error dialog about 5 min. later. I sent the above files several minutes in, but before the last error dialog (I got jumpy, thought it was permanently hung again, wanted to get the info in ASAP, sorry) .... I could try it again & wait until the end & send that if you want, please advise ....
Yes, please try again using an ISO - there were no details of that error in ~/.virt-manager/virt-manager.log
Please try and trim virt-manager.log to the relevant bits - e.g. by moving the existing log out of the way before you do the steps needed to reproduce the bug
Very well, I just deleted the existing virt-manager.log file & kicked off the process again. How long would you expect it to take to create the new VM ? I have waited as long as 24 hours recently just to make totally sure it was hosed ....
(In reply to comment #12)
> yes, it hung. The little progress dialog w/ the progress thingy that bounces
> back & forth hung about 10 sec. in (stopped bouncing), it said 'Creating
> domain...' right above the progress bar, then came up w/ an error dialog about
> 5 min. later.
Okay, that sounds like an anaconda error - could you attach a screenshot of that dialog?
Created attachment 350457 [details]
screen shot of virt-manager at the moment of death ....
Here you go (screenshot of proceedings when hang occurs) ....
Update: I had been trying this w/ an externally prepared (by qemu-img) disk image, using the QCOW2 format. When I removed that file & just let virt-manager do its thing all by itself, it (mostly) worked. It did get a VM setup & booted, although there are a few configuration issues (I can't get the VM rebooted once I exit virt-manager, I would like to install the VM image in a dir of my choosing instead of /var/lib/whatever, & the networking isn't working yet). I think these issues are probably mailing list fodder, so .... is there a fedora-virt-manager or kvm mailing list ? Otherwise, I think you can mark this bug .... squashed.
Sorry for the delay in replying
There's a fedora-virt mailing list, see:
I'm going to close this bug for since there's so much back and forth about different issues
However, the issue of virt-manager not being able to use your prepared qcow2 file sounds like it might be worth filing as a new, separate bug if you can still reproduce
OK, but 1 lingering question .... how long should it take to create the new VM (roughly) ? I.e. how long do I wait before declaring it *HUNG* ?
Good question - I would have said 1 minute would be enough, but I see above that you got an error message after waiting 5 minutes
10 minutes, then? I dunno, really
I just tried again (w/ qcow2 disk image) & it looks like it is hung again. Want it filed separately ?
Yes, please - one bug per issue; i.e. file a new bug for the "cannot use existing qcow2 disk image" and other separate bugs for any other issues you find