以下示例显示了 ldm migrate-domain 命令的 <data> 段中包含的内容。
第一个 <Content> 节点(不含 <ldom_info> 段)是要迁移的源域。
第二个 <Content> 节点(含有 <ldom_info> 段)是要迁移到的目标域。源域和目标域的名称可以相同。
目标域的 <ldom_info> 段描述要迁移到的计算机以及迁移到该计算机所需的详细信息:
target-host 是要迁移到的目标计算机。
user-name 是目标计算机的登录用户名,该用户名必须采用 SASL 64 位编码。
password 是目标计算机的登录密码,该密码必须采用 SASL 64 位编码。
<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" ovf:id="ldg1"/> <Content xsi:type="ovf:VirtualSystem_Type" ovf:id="ldg1"/> <Section xsi:type="ovf:ResourceAllocationSection_Type"> <Item> <rasd:OtherResourceType>ldom_info</rasd:OtherResourceType> <gprop:GenericProperty key="target">target-host</gprop:GenericProperty> <gprop:GenericProperty key="username">user-name</gprop:GenericProperty> <gprop:GenericProperty key="password">password</gprop:GenericProperty> <Item> </Section> </Content> </Envelope>