disk 资源始终包含在 <Content> 段中。它必须含有带有以下项的 <gprop:GenericProperty> 标记:
vdisk_name-虚拟磁盘的名称
service_name-此虚拟磁盘要绑定到的虚拟磁盘服务器的名称
vol_name-此虚拟磁盘要关联到的虚拟磁盘服务设备
(可选)disk 资源还可以具有 timeout 属性,它是在虚拟磁盘客户机 (vdc) 与虚拟磁盘服务器 (vds) 之间建立连接时的超时值(秒)。如果具有多个虚拟磁盘 (vdisk) 路径,则 vdc 可以尝试连接到其他 vds。超时设置可以确保在指定时间段内与任何 vds 建立连接。
示例 22-14 disk XML 示例<Envelope> <References/> <Content xsi:type="ovf:VirtualSystem_Type" id="ldg1"> <Section xsi:type="ovf:VirtualHardwareSection_Type"> <Item> <rasd:OtherResourceType>disk</rasd:OtherResourceType> <gprop:GenericProperty key="vdisk_name">vdisk0</gprop:GenericProperty> <gprop:GenericProperty key="service_name">primary-vds0</gprop:GenericProperty> <gprop:GenericProperty key="vol_name">vdsdev0</gprop:GenericProperty> <gprop:GenericProperty key="timeout">60</gprop:GenericProperty> </Item> </Section> </Content> </Envelope>