Bug 827327 - virsh dumpxml machinetype shows incorrect value
virsh dumpxml machinetype shows incorrect value
Status: CLOSED NOTABUG
Product: Virtualization Tools
Classification: Community
Component: libvirt (Show other bugs)
unspecified
All Linux
unspecified Severity high
: ---
: ---
Assigned To: Libvirt Maintainers
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-01 02:40 EDT by Navin
Modified: 2012-06-01 09:55 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-01 04:27:55 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Navin 2012-06-01 02:40:53 EDT
Description of problem:
machine type field of virsh dumpxml shows incorrect values. It doesn't show the OS type of the guest . How do i get the OS type of the guest ?

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

How reproducible:


Steps to Reproduce:
1.virsh dumpxml <guestvm>
2.
3.
  
Actual results:
<domain type='kvm' id='37'>
  <name>kvm1</name>
  <uuid>8acafde8-b2b8-9eef-0e3b-010bee791cde</uuid>
  <memory>1051648</memory>
  <currentMemory>1051648</currentMemory>
  <vcpu current='4'>8</vcpu>
  <os>
    <type arch='x86_64' machine='rhel6.1.0'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <cpu>


Expected results:
The machine type field is "rhel6.1.0" . It should be of the guest OS type .


Additional info:
Comment 1 Jiri Denemark 2012-06-01 04:27:55 EDT
Machine type has nothing to do with guest OS. It's just a name for the virtual hardware presented to the guest. In case of RHEL, the machine names correspond to the RHEL release where particular machine types were first introduced. In upstream world, the machine types are called pc-1.0.
Comment 2 Dave Allan 2012-06-01 09:55:44 EDT
(In reply to comment #0)
> machine type field of virsh dumpxml shows incorrect values. It doesn't show
> the OS type of the guest . How do i get the OS type of the guest ?

Just the way a real, physical PC doesn't know what OS is running on it, neither does the virtual machine.  It would be possible to query for this information with an agent running in the guest.

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