10.04 amd64 libvirt+qemu fails to install Win Server 08 x64 or Win7 x64

Bug #607884 reported by Matt Keys
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

This is on a fresh install of server 10.04 amd64. I selected VM host and SSH upon install, added virt-manager, virt-viewer, xterm, and ubuntu-vm-builder afterwards. I have changed networking to bridge eth0, and set libvirtxml.tmpl to use br0 by default. Using virt-manager locally on the host I attempt to install Windows Server 2008 R2 x64 from DVD .ISO. I selected "Windows" and "Windows 2008" from the drop-down list, set it 1 CPU, 4096 MB RAM, 40GB disk (I tried both thin and full provisioned disk). It successfully creates the disk, but when it goes to create the domain it fails with this message:

Unable to complete install '<class 'libvirt.libvirtError'> operation failed: failed to retrieve chardev info in qemu with 'info chardev'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1436, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 660, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 758, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1097, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: operation failed: failed to retrieve chardev info in qemu with 'info chardev'
'

I deleted the vm image, then attempted a Ubuntu server 10.04 i386 installation which worked fine. I then attempted a Windows 7 x64 installation. I didn't receive the same message, but it gave me the "blue screen of death" with the message of:

STOP: 0x0000001E (0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000)

Windows XP 32bit installs just fine.

Revision history for this message
Matt Keys (mk6032) wrote :

If it matters the hardware I'm using is a Dell PowerEdge 1855 chassis with ten 1855 blades. They're all configured the same:

matt@libvirt01:/$ uname -a
Linux libvirt01 2.6.32-23-server #37-Ubuntu SMP Fri Jun 11 09:11:11 UTC 2010 x86_64 GNU/Linux
matt@libvirt01:/$ free -m
             total used free shared buffers cached
Mem: 16082 1917 14164 0 58 604
-/+ buffers/cache: 1255 14826
Swap: 1952 0 1952
matt@libvirt01:/$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.20GHz
stepping : 1
cpu MHz : 3199.916
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 6399.83
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.20GHz
stepping : 1
cpu MHz : 3199.916
cache size : 1024 KB
physical id : 3
siblings : 2
core id : 0
cpu cores : 1
apicid : 6
initial apicid : 6
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 6400.31
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 2
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.20GHz
stepping : 1
cpu MHz : 3199.916
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 6400.27
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 3
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.20GHz
stepping : 1
cpu MHz : 3199.916
cache size : 1024 KB
physical id : 3
siblings : 2
core id : 0
cpu cores : 1
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 6400.30
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:

matt@libvirt01:/$

Mathias Gug (mathiaz)
Changed in libvirt (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Rick McBride (rmcbride) wrote :

Mathias,

What information is lacking that made this "Incomplete?"

I'm seeing this exact problem with current Maverick, attempting to create a VM on a remote host via SSH.

How can I help gather information?

Changed in libvirt (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Rick McBride (rmcbride) wrote :

In my case I'm attempting to install 10.04 on the guest VM.

Revision history for this message
Rick McBride (rmcbride) wrote :

Looks as if this is related to #615077 ?

Rick McBride (rmcbride)
Changed in libvirt (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Matt Keys (mk6032) wrote :

I figured out what was wrong in my case; The 1855 chassis doesn't have the right cpu flags to operate as a fully virt hardware. Thanks for taking a look,
Matt

Matt Keys (mk6032)
Changed in libvirt (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Rohan Nigam (locaterohan) wrote :

I have the same problem. I am using virt-install and I get the following error:

root@ubuntu:~# virt-install --connect qemu:///system -n ubuntu-vm1 -r 2048 --vcpus=4 -f /root/vmimages/kvm1.qcow2 -s 12 --cpuset=4,5,6,7 -c /root/vmimages/ubuntu-10.10-server-amd64.iso --os-type linux --network bridge=virbr0 --accelerate --virt-type kvm --hvm

Starting install...
ERROR operation failed: failed to retrieve chardev info in qemu with 'info chardev'
Domain installation does not appear to have been
 successful. If it was, you can restart your domain
 by running 'virsh start ubuntu-vm1'; otherwise, please
 restart your installation.
ERROR operation failed: failed to retrieve chardev info in qemu with 'info chardev'
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 1033, in <module>
    main()
  File "/usr/bin/virt-install", line 915, in main
    start_time, guest.start_install)
  File "/usr/bin/virt-install", line 957, in do_install
    dom = install_func(conscb, progresscb, wait=(not wait))
  File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 973, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 1038, in _do_install
    "install")
  File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 1009, in _create_guest
    dom = self.conn.createLinux(start_xml, 0)
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1277, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: operation failed: failed to retrieve chardev info in qemu with 'info chardev'

I am also running these on amd 64 - 6100 series opterons. Its a Dell poweredge r715 machine.

Changed in libvirt (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Rohan Nigam (locaterohan) wrote :

Forgot to mention in mu case I have the following flags

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid amd_dcm pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr npt lbrv svm_lock nrip_save

root@ubuntu:~# kvm-ok
INFO: Your CPU supports KVM extensions
INFO: /dev/kvm exists
KVM acceleration can be used

So I do not see why I still see that error ! Here's the related bug: https://bugs.launchpad.net/nova/+bug/702741 which was fixed but I do know if has been fixed in Ubuntu server - 10.10 ! That is what I am using !

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

@Rohan,

since the original bug submitter marked this bug invalid, please open a new bug. To get the most useful information into the bug report, please go ahead and do a (failed) windows installation, and then run 'ubuntu-bug qemu-kvm'.

Changed in libvirt (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Sorry, if you believe your bug to be in libvirt, then please use 'ubuntu-bug libvirt', not 'ubuntu-bug qemu-kvm'.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.