Problem with KVMRedirectionSAP records for KVM.

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@linux.vnet.ibm.com

Deepti B Kalakeri wrote:
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
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.
This looks like a libvirt bug. The UUID of a guest should be unique - each guest should have a different one. If you define an XML with the UUID of another guest, the guest should be updated. In this case, a new guest is defined, which is incorrect behavior. If you modify your XMLs so that the guest name of each is the same, then you will only see one guest. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com

Kaitlin Rupert wrote:
Deepti B Kalakeri wrote:
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
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.
This looks like a libvirt bug. The UUID of a guest should be unique - each guest should have a different one. If you define an XML with the UUID of another guest, the guest should be updated. In this case, a new guest is defined, which is incorrect behavior.
Ok ! One more thing, When we define a guest using the virsh and enumerate KVMRedirectionSAP , the lport of the ElementName/Name will contain the port value in the used in the XML file and the looks something like 5900: -1 (where 5900 is the port value used in the XML). But defining the guest using the DefineSystem() returns a value of -1 : -1 in the ElementName/Name. The DMTF - 1076 does not specify how the value of ElementName/Name filed should be. Is this expected behavior ?
If you modify your XMLs so that the guest name of each is the same, then you will only see one guest.
-- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik@linux.vnet.ibm.com

Ok ! One more thing, When we define a guest using the virsh and enumerate KVMRedirectionSAP , the lport of the ElementName/Name will contain the port value in the used in the XML file and the looks something like 5900: -1 (where 5900 is the port value used in the XML). But defining the guest using the DefineSystem() returns a value of -1 : -1 in the ElementName/Name.
Are you specifying a value of 5900 in your XML? Does it look like: <graphics type='vnc' port='5900' autoport='yes' keymap='en-us'/> When you define the guest using DefineSystem(), what are you setting the Address attribute of the GraphicsRASD to? The Address attribute is in the form of: Address="127.0.0.1:-1" The portion after the : is the port number. If a value isn't supplied for the Address, the default is to use -1. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
participants (2)
-
Deepti B Kalakeri
-
Kaitlin Rupert