mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
vmx: handle shared folders formatting
This patch adds support for generating vmx files with shared folders enabled. Update test suite accordingly.
This commit is contained in:
committed by
Matthias Bolte
parent
df80282dab
commit
1f2bd1072a
18
tests/xml2vmxdata/xml2vmx-sharedfolder.vmx
Normal file
18
tests/xml2vmxdata/xml2vmx-sharedfolder.vmx
Normal file
@@ -0,0 +1,18 @@
|
||||
.encoding = "UTF-8"
|
||||
config.version = "8"
|
||||
virtualHW.version = "4"
|
||||
guestOS = "other"
|
||||
uuid.bios = "56 4d 9b ef ac d9 b4 e0-c8 f0 ae a8 b9 10 35 15"
|
||||
displayName = "sharedFolder"
|
||||
memsize = "4"
|
||||
numvcpus = "1"
|
||||
floppy0.present = "false"
|
||||
floppy1.present = "false"
|
||||
isolation.tools.hgfs.disable = "false"
|
||||
sharedFolder.maxNum = "1"
|
||||
sharedFolder0.present = "true"
|
||||
sharedFolder0.enabled = "true"
|
||||
sharedFolder0.readAccess = "true"
|
||||
sharedFolder0.writeAccess = "true"
|
||||
sharedFolder0.hostPath = "/path/to/shared"
|
||||
sharedFolder0.guestName = "shared"
|
||||
14
tests/xml2vmxdata/xml2vmx-sharedfolder.xml
Normal file
14
tests/xml2vmxdata/xml2vmx-sharedfolder.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<domain type='vmware'>
|
||||
<name>sharedFolder</name>
|
||||
<uuid>564d9bef-acd9-b4e0-c8f0-aea8b9103515</uuid>
|
||||
<memory unit='KiB'>4096</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
</os>
|
||||
<devices>
|
||||
<filesystem type='mount'>
|
||||
<source dir='/path/to/shared'/>
|
||||
<target dir='shared'/>
|
||||
</filesystem>
|
||||
</devices>
|
||||
</domain>
|
||||
Reference in New Issue
Block a user