mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
c836887a02
The source tag sets the rootdir property of the device, which is the directory exposed to the guest via the MTP device. The target tag sets the desc property. This device supports read-only mode as well. Like virtiofs, it does not support additional access modes. Signed-off-by: Rayhan Faizel <rayhan.faizel@gmail.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
28 lines
797 B
XML
28 lines
797 B
XML
<domain type='qemu'>
|
|
<name>QEMUGuest1</name>
|
|
<uuid>2d4d4b20-b19b-4713-af0a-bf1cab8b455b</uuid>
|
|
<memory unit='KiB'>4194304</memory>
|
|
<currentMemory unit='KiB'>4194304</currentMemory>
|
|
<vcpu placement='static'>1</vcpu>
|
|
<os>
|
|
<type arch='x86_64' machine='pc'>hvm</type>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
|
<controller type='usb' index='0' model='piix3-uhci'/>
|
|
<filesystem type='mount'>
|
|
<driver type='mtp'/>
|
|
<source dir='/tmp/testdir1'/>
|
|
<target dir='readwrite-fs'/>
|
|
</filesystem>
|
|
<filesystem type='mount'>
|
|
<driver type='mtp'/>
|
|
<source dir='/tmp/testdir2'/>
|
|
<target dir='readonly-fs'/>
|
|
<readonly/>
|
|
</filesystem>
|
|
<memballoon model='virtio'/>
|
|
</devices>
|
|
</domain>
|