]> xenbits.xensource.com Git - libvirt.git/commit
VMX: Add support for 'auto detect' fileNames
authorDoug Goldstein <cardoe@cardoe.com>
Tue, 13 Aug 2013 15:56:01 +0000 (10:56 -0500)
committerDoug Goldstein <cardoe@cardoe.com>
Tue, 17 Sep 2013 19:10:40 +0000 (14:10 -0500)
commit834aebcc2fc935f54732220011a0b87b242ccf68
treeba88c880f396e6c579586ec1cc0366683054c823
parent4b5652d0dcb2d53fd4240f589a63aaa434650fe0
VMX: Add support for 'auto detect' fileNames

VMWare Fusion 5 can set the CD-ROM's device name to be 'auto detect' when
using the physical drive via 'cdrom-raw' device type. VMWare will then
connect to first available host CD-ROM to the virtual machine upon start
up according to VMWare documentation. If no device is available, it
appears that the device will remain disconnected.

To better model this a CD-ROM that is marked as "auto detect" when in
the off state would be modeled as the following with this patch:
  <disk type='block' device='lun'>
    <source startupPolicy='optional'/>
    <target dev='hda' bus='ide'/>
    <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  </disk>

Once the domain transitions to the powered on state, libvirt can
populate the remaining source data with what is connected, if anything.
However future power cycles, the domain may not always start with that
device attached.
src/vmx/vmx.c
tests/vmx2xmldata/vmx2xml-cdrom-ide-raw-auto-detect.vmx [new file with mode: 0644]
tests/vmx2xmldata/vmx2xml-cdrom-ide-raw-auto-detect.xml [new file with mode: 0644]
tests/vmx2xmldata/vmx2xml-cdrom-scsi-raw-auto-detect.vmx [new file with mode: 0644]
tests/vmx2xmldata/vmx2xml-cdrom-scsi-raw-auto-detect.xml [new file with mode: 0644]
tests/vmx2xmltest.c
tests/xml2vmxdata/xml2vmx-cdrom-ide-raw-auto-detect.vmx [new file with mode: 0644]
tests/xml2vmxdata/xml2vmx-cdrom-ide-raw-auto-detect.xml [new file with mode: 0644]
tests/xml2vmxdata/xml2vmx-cdrom-scsi-raw-auto-detect.vmx [new file with mode: 0644]
tests/xml2vmxdata/xml2vmx-cdrom-scsi-raw-auto-detect.xml [new file with mode: 0644]
tests/xml2vmxtest.c