[Libvirt-cim] [PATCH 5 of 7] [TEST] Added KVM support to 32_start_reboot.py of CS

Deepti B Kalakeri deeptik at linux.vnet.ibm.com
Tue Aug 5 12:41:01 UTC 2008



Kaitlin Rupert wrote:
>> @@ -41,72 +42,63 @@
>> from VirtLib import utils
>> from CimTest.Globals import do_main, logger
>> from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC
>> -from XenKvmLib.test_doms import undefine_test_domain
>> -from XenKvmLib.common_util import get_cs_instance
>> +from XenKvmLib.test_doms import destroy_and_undefine_domain
>> from XenKvmLib.common_util import create_using_definesystem
>> from XenKvmLib.common_util import call_request_state_change
>> +from XenKvmLib.common_util import poll_for_state_change
>> +from XenKvmLib.common_util import create_netpool_conf, destroy_netpool
>>
>> -sup_types = ['Xen', 'XenFV']
>> +sup_types = ['Xen', 'XenFV', 'KVM']
>>
>> +bug_req_state = "00002"
>
> Is this still an issue? Dan submitted a patch that should fix this.
>
For a KVM guest the RequestedStateChange() fails to reboot the VS.
Here is the error which occurs when we try to reboot a KVM guest.
libvir: error : this function is not supported by the hypervisor: 
virDomainReboot
error: Failed to reboot domain cs_test_domain

Here is the XML config file which I used to create the guest.

<domain type='kvm'>
<uuid>a980e2f5-48a6-48d9-a71b-e90939849c7a</uuid>
<name>cs_test_domain</name>
<on_poweroff>destroy</on_poweroff>
<on_crash>destroy</on_crash>
<os>
<type>hvm</type>
<boot dev='hd'/>
</os>
<currentMemory>524288</currentMemory>
<memory>524288</memory>
<vcpu>1</vcpu>
<devices>
<interface type='network'>
<mac address='11:22:33:aa:bb:cc'/>
<source network='default-net14'/>
</interface>
<disk type='file' device='disk'>
<source file='/tmp/default-kvm-dimage'/>
<target dev='hda'/>
</disk>
<graphics type='vnc' port='-1'/>
</devices>
</domain>

I had already informed about this particular problem in the previous 
mail "Need CS state transition related info."

Thanks and Regards,
Deepti.




More information about the Libvirt-cim mailing list