[Libvirt-cim] Problem with KVMRedirectionSAP records for KVM.

Deepti B Kalakeri deeptik at linux.vnet.ibm.com
Tue Jan 13 10:20:41 UTC 2009


Hi,

I have the following domains on my machine, each of them have the 
graphics tags in them:

virsh list --all
 Id Name                 State
----------------------------------
  - graphics_domain2     shut off
  - testdom1             shut off

Here is the xml files that I used to create the guests. The only common 
thing in them is the uuid.

SAP1.xml :

<domain type='kvm'>
  <name>testdom1</name>
  <uuid>6fa1cd59-0c71-483d-bd63-7a6a3f53d180</uuid>
  <memory>131072</memory>
  <currentMemory>131072</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='i686' machine='pc'>hvm</type>
    <boot dev='hd'/>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
   <emulator>/usr/bin/qemu</emulator>
    <disk type='file' device='disk'>
      <source file='/tmp/myimage'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <interface type='network'>
      <mac address='11:22:33:aa:bb:cc'/>
      <source network='test_default'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5901'  keymap='en-us'/>
  </devices>
</domain>

SAP2.xml :

<domain type='kvm'>
  <name>graphics_domain2</name>
  <uuid>6fa1cd59-0c71-483d-bd63-7a6a3f53d180</uuid>
  <memory>131072</memory>
  <currentMemory>131072</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='i686' machine='pc'>hvm</type>
    <boot dev='hd'/>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
   <emulator>/usr/bin/qemu</emulator>
    <disk type='file' device='disk'>
      <source file='/tmp/default-kvm-dimage'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <interface type='network'>
      <mac address='11:22:33:aa:bb:aa'/>
      <source network='default'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5999' keymap='en-us'/>
  </devices>
</domain>


wbemcli ein 
'http://root:passwd@localhost/root/virt:KVM_KVMRedirectionSAP' -nl
localhost:5988/root/virt:KVM_KVMRedirectionSAP.CreationClassName="KVM_KVMRedirectionSAP",Name="5901:-1",SystemCreationClassName="KVM_ComputerSystem",SystemName="testdom1"
localhost:5988/root/virt:KVM_KVMRedirectionSAP.CreationClassName="KVM_KVMRedirectionSAP",Name="5901:-1",SystemCreationClassName="KVM_ComputerSystem",SystemName="testdom1"


But the EnumerateInstance of the ComputerSystem will give the correct 
results:

wbemcli ein 'http://root:passwd@localhost/root/virt:KVM_ComputerSystem' -nl
localhost:5988/root/virt:KVM_ComputerSystem.CreationClassName="KVM_ComputerSystem",Name="testdom1"
localhost:5988/root/virt:KVM_ComputerSystem.CreationClassName="KVM_ComputerSystem",Name="graphics_domain2"


This symptoms is not seen with Xen, where the xml contains the same UUID.
I want to know why is this kind of difference in the behaviour and 
whether this is expected.

-- 
Thanks and Regards,
Deepti B. Kalakeri
IBM Linux Technology Center
deeptik at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list