mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
636a990587
Tool such as libguestfs need the datacenter path to get access to disk images. The ESX driver knows the correct datacenter path, but this information cannot be accessed using libvirt API yet. Also, it cannot be deduced from the connection URI in a robust way. Expose the datacenter path in the domain XML as <vmware:datacenterpath> node similar to the way the <qemu:commandline> node works. The new node is ignored while parsing the domain XML. In contrast to <qemu:commandline> it is output only.
10 lines
323 B
XML
10 lines
323 B
XML
<domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'>
|
|
<name>datacenterpath</name>
|
|
<uuid>564d9bef-acd9-b4e0-c8f0-aea8b9103515</uuid>
|
|
<memory unit='KiB'>4096</memory>
|
|
<os>
|
|
<type>hvm</type>
|
|
</os>
|
|
<vmware:datacenterpath>folder1/folder2/datacenter1</vmware:datacenterpath>
|
|
</domain>
|