]> xenbits.xensource.com Git - libvirt.git/commit
vmx: Expose datacenter path in domain XML
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 11 Sep 2015 10:00:47 +0000 (12:00 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 17 Sep 2015 10:34:54 +0000 (11:34 +0100)
commit636a99058758a0447482f3baad94de8de3ab1151
tree31d7442a0fe409689fd9ea45a1c51050bcd5134a
parentb421a70811b15a2d1853ee7e47069fdef83f7f22
vmx: Expose datacenter path in domain XML

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.
src/esx/esx_driver.c
src/vmware/vmware_conf.c
src/vmware/vmware_driver.c
src/vmx/vmx.c
src/vmx/vmx.h
tests/vmx2xmldata/vmx2xml-datacenterpath.vmx [new file with mode: 0644]
tests/vmx2xmldata/vmx2xml-datacenterpath.xml [new file with mode: 0644]
tests/vmx2xmltest.c
tests/xml2vmxdata/xml2vmx-datacenterpath.vmx [new file with mode: 0644]
tests/xml2vmxdata/xml2vmx-datacenterpath.xml [new file with mode: 0644]
tests/xml2vmxtest.c