[Libvirt-cim] [PATCH 3 of 6] Add VirtualSystemMigrationService
Dan Smith
danms at us.ibm.com
Tue Dec 4 16:13:49 UTC 2007
KR> Could you also include instructions on testing migration? It
KR> seems difficult to do via wbemcli - I haven't tested a method
KR> provider before.
I use the following xml with wbemcat or wbemexec to make the method
call:
<?xml version="1.0" encoding="UTF-8"?>
<CIM CIMVERSION="2.0" DTDVERSION="2.0">
<MESSAGE ID="5" PROTOCOLVERSION="1.0">
<SIMPLEREQ>
<METHODCALL NAME="MigrateVirtualSystemToHost">
<LOCALINSTANCEPATH>
<LOCALNAMESPACEPATH>
<NAMESPACE NAME="root"/><NAMESPACE NAME="virt"/>
</LOCALNAMESPACEPATH>
<INSTANCENAME CLASSNAME="Xen_VirtualSystemMigrationService">
<KEYBINDING NAME="CreationClassName">
<KEYVALUE VALUETYPE="string">Xen_VirtualSystemMigrationService</KEYVALUE>
</KEYBINDING>
<KEYBINDING NAME="SystemName">
<KEYVALUE VALUETYPE="string">foo.bar.com</KEYVALUE>
</KEYBINDING>
</INSTANCENAME>
</LOCALINSTANCEPATH>
<PARAMVALUE NAME="ComputerSystem">
<VALUE.REFERENCE>
<INSTANCENAME CLASSNAME="Xen_ComputerSystem">
<KEYBINDING NAME="CreationClassName">
<KEYVALUE VALUETYPE="string">Xen_ComputerSystem</KEYVALUE>
</KEYBINDING>
<KEYBINDING NAME="Name">
<KEYVALUE VALUETYPE="string">pv0</KEYVALUE>
</KEYBINDING>
</INSTANCENAME>
</VALUE.REFERENCE>
</PARAMVALUE>
<PARAMVALUE NAME="DestinationHost" PARAMTYPE="string">
<VALUE>
localhost
</VALUE>
</PARAMVALUE>
</METHODCALL>
</SIMPLEREQ>
</MESSAGE>
</CIM>
You'll need to change "pv0" to the name of a valid domain, and the
"localhost" to a valid destination host (or leave it as localhost to
test on loopback).
Note that unless you have a key setup, you'll need to type root's
password on the CIMOM's stdin.
You should be able to tweak the above to test the IsMigratable flavor
as well.
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20071204/af04d276/attachment.sig>
More information about the Libvirt-cim
mailing list