diff options
author | Doug Goldstein <cardoe@cardoe.com> | 2013-08-12 20:55:57 -0500 |
---|---|---|
committer | Doug Goldstein <cardoe@cardoe.com> | 2013-09-02 17:41:30 -0500 |
commit | f8456e5a18671544cea341ec8a3e82a7a21035d8 (patch) | |
tree | fe35377a1a3fdc3bc2d152e33b5c5512bf2f33b8 /tests/xml2vmxtest.c | |
parent | dba04e7fa070a79415ea16141ad2e2ebd4f23033 (diff) | |
download | libvirt-f8456e5a18671544cea341ec8a3e82a7a21035d8.tar.gz |
VMX: Add cdrom-raw dev type from VMWare Fusion
According to VMWare's documentation 'cdrom-raw' is an acceptable value
for deviceType for a CD-ROM drive. The documentation states that the VMX
configuration for a CD-ROM deviceType is as follows:
ide|scsi(n):(n).deviceType = "cdrom-raw|atapi-cdrom|cdrom-image"
From the documentation it appears the following is true:
- cdrom-image = Provides the ISO to the VM
- atapi-cdrom = Provides a NEC emulated ATAPI CD-ROM on top of the host
CD-ROM
- cdrom-raw = Passthru for a host CD-ROM drive. Allows CD-R burning from
within the guest.
A CD-ROM prior to this patch would always provide an 'atapi-cdrom' is
modeled as:
<disk type='block' device='cdrom'>
<source dev='/dev/scd0'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
This patch allows the 'device' attribute to be set to 'lun' for a raw
acccess CD-ROM such as:
<disk type='block' device='lun'>
<source dev='/dev/scd0'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
Diffstat (limited to 'tests/xml2vmxtest.c')
-rw-r--r-- | tests/xml2vmxtest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/xml2vmxtest.c b/tests/xml2vmxtest.c index 0dffebd38b..cb1c29c46d 100644 --- a/tests/xml2vmxtest.c +++ b/tests/xml2vmxtest.c @@ -253,8 +253,10 @@ mymain(void) DO_TEST("cdrom-scsi-file", "cdrom-scsi-file", 4); DO_TEST("cdrom-scsi-device", "cdrom-scsi-device", 4); + DO_TEST("cdrom-scsi-raw-device", "cdrom-scsi-raw-device", 4); DO_TEST("cdrom-ide-file", "cdrom-ide-file", 4); DO_TEST("cdrom-ide-device", "cdrom-ide-device", 4); + DO_TEST("cdrom-ide-raw-device", "cdrom-ide-raw-device", 4); DO_TEST("floppy-file", "floppy-file", 4); DO_TEST("floppy-device", "floppy-device", 4); |