mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
Add test for transient disk support in VMX files
--001a11c3e84c4130bc04f03cda95 Content-Type: text/plain; charset=ISO-8859-1 From: Wout Mertens <Wout.Mertens@gmail.com> Adds test for transient disk translation in vmx files
This commit is contained in:
parent
881c6c0047
commit
4fbfac851e
6
tests/vmx2xmldata/vmx2xml-harddisk-transient.vmx
Normal file
6
tests/vmx2xmldata/vmx2xml-harddisk-transient.vmx
Normal file
@ -0,0 +1,6 @@
|
||||
config.version = "8"
|
||||
virtualHW.version = "4"
|
||||
ide0:0.present = "true"
|
||||
ide0:0.deviceType = "ata-hardDisk"
|
||||
ide0:0.fileName = "harddisk.vmdk"
|
||||
ide0:0.mode = "independent-nonpersistent"
|
25
tests/vmx2xmldata/vmx2xml-harddisk-transient.xml
Normal file
25
tests/vmx2xmldata/vmx2xml-harddisk-transient.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<domain type='vmware'>
|
||||
<uuid>00000000-0000-0000-0000-000000000000</uuid>
|
||||
<memory unit='KiB'>32768</memory>
|
||||
<currentMemory unit='KiB'>32768</currentMemory>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type arch='i686'>hvm</type>
|
||||
</os>
|
||||
<clock offset='utc'/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>destroy</on_crash>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<source file='[datastore] directory/harddisk.vmdk'/>
|
||||
<target dev='hda' bus='ide'/>
|
||||
<transient/>
|
||||
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
||||
</disk>
|
||||
<controller type='ide' index='0'/>
|
||||
<video>
|
||||
<model type='vmvga' vram='4096'/>
|
||||
</video>
|
||||
</devices>
|
||||
</domain>
|
@ -226,6 +226,7 @@ mymain(void)
|
||||
|
||||
DO_TEST("harddisk-scsi-file", "harddisk-scsi-file");
|
||||
DO_TEST("harddisk-ide-file", "harddisk-ide-file");
|
||||
DO_TEST("harddisk-transient", "harddisk-transient");
|
||||
|
||||
DO_TEST("cdrom-scsi-file", "cdrom-scsi-file");
|
||||
DO_TEST("cdrom-scsi-device", "cdrom-scsi-device");
|
||||
|
Loading…
x
Reference in New Issue
Block a user