Bug 569372 - libvirt doesn't correctly detect machine types supported by kvm
Summary: libvirt doesn't correctly detect machine types supported by kvm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.4
Hardware: All
OS: Linux
urgent
medium
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-01 13:28 UTC by Jiri Denemark
Modified: 2010-03-30 08:08 UTC (History)
5 users (show)

Fixed In Version: libvirt-0.6.3-33.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-30 08:08:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Conflict with kvm older than 83-142 (391 bytes, patch)
2010-03-03 14:57 UTC, Jiri Denemark
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0205 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2010-03-29 12:27:37 UTC

Description Jiri Denemark 2010-03-01 13:28:27 UTC
Description of problem:

Libvirt says rhel5.4.0 machine type is supported by kvm even if it is not. As a result kvm guests which do not specify any machine type cannot be created.

Version-Release number of selected component (if applicable):

libvirt-0.6.3-32.el5
kvm-83-105.el5

How reproducible:

100%

Steps to Reproduce:
1. /usr/libexec/qemu-kvm -M ?
  Supported machines are:
  pc         Standard PC (default)

2. virsh capabilities
<capabilities>
  ...
  <guest>
    <os_type>hvm</os_type>
    <arch name='x86_64'>
      <wordsize>64</wordsize>
      <emulator>/usr/libexec/qemu-kvm</emulator>
      <machine>rhel5.4.0</machine>
      <machine>pc</machine>
      <domain type='qemu'>
      </domain>
      <domain type='kvm'>
        <emulator>/usr/libexec/qemu-kvm</emulator>
      </domain>
    </arch>
    <features>
      <acpi default='on' toggle='yes'/>
      <apic default='on' toggle='no'/>
    </features>
  </guest>

</capabilities>

  
Actual results:


Expected results:


Additional info:

After an attempt to start such guest, it's log contains:

LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin HOME=/ /usr/libexec/qemu-kvm -S -M rhel5.4.0 -m 1024 -smp 1 -name vm1 -uuid ae85fedc-a822-f488-59cb-555ff3e1320d -no-kvm-pit-reinjection -monitor pty -pidfile /var/run/libvirt/qemu//vm1.pid -no-reboot -boot d -drive file=/var/lib/libvirt/images/vm1.img,if=virtio,index=0,cache=none -drive file=/var/lib/libvirt/boot/virtinst-boot.iso.l4vju-,if=ide,media=cdrom,index=2 -net nic,macaddr=54:52:00:7e:5d:68,vlan=0,model=virtio -net tap,fd=16,script=,vlan=0,ifname=vnet0 -serial pty -parallel none -usb -vnc 127.0.0.1:0 -k en-us 
Supported machines are:
pc         Standard PC (default)

Comment 1 Jiri Denemark 2010-03-03 07:49:59 UTC
Hmm, I didn't realize we don't have machine type probing at all in RHEL-5 libvirt. So not sure what we can do about this bug...

Comment 5 Jiri Denemark 2010-03-03 14:57:38 UTC
Created attachment 397575 [details]
Conflict with kvm older than 83-142

Comment 7 Jiri Denemark 2010-03-03 16:50:54 UTC
Fix built into libvirt-0.6.3-33.el5

Comment 11 errata-xmlrpc 2010-03-30 08:08:59 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0205.html


Note You need to log in before you can comment on or make changes to this bug.