mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
qemuxml2(argv|xml)test: Add network backed disk type='sd'
Add a few examples of SD cards backed with network storage to capture the current state as the formatter code is about to be refactored. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
4bdadede24
commit
829d9ed829
@ -33,6 +33,8 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-armtest/.config \
|
||||
-dtb /arm.dtb \
|
||||
-usb \
|
||||
-drive file=/arm-sd.qcow2,format=qcow2,if=sd,index=0 \
|
||||
-drive file.driver=nbd,file.server.type=inet,file.server.host=localhost,file.server.port=10809,file.export=export,format=qcow2,if=sd,index=1 \
|
||||
-drive file.driver=gluster,file.volume=Volume3,file.path=Image.qcow2,file.server.0.type=inet,file.server.0.host=example.org,file.server.0.port=6000,file.server.1.type=inet,file.server.1.host=example.org,file.server.1.port=24007,file.server.2.type=unix,file.server.2.path=/path/to/sock,file.debug=4,format=qcow2,if=sd,index=2 \
|
||||
-blockdev '{"driver":"file","filename":"/arm-virtio.qcow2","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
|
||||
-blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"qcow2","file":"libvirt-1-storage"}' \
|
||||
-device '{"driver":"virtio-blk-device","drive":"libvirt-1-format","id":"virtio-disk0"}' \
|
||||
|
@ -26,6 +26,22 @@
|
||||
<source file='/arm-sd.qcow2'/>
|
||||
<target dev='sda' bus='sd'/>
|
||||
</disk>
|
||||
<disk type='network' device='disk'>
|
||||
<driver name='qemu' type='qcow2'/>
|
||||
<source protocol='nbd' name='export'>
|
||||
<host name='localhost'/>
|
||||
</source>
|
||||
<target dev='sdb' bus='sd'/>
|
||||
</disk>
|
||||
<disk type='network' device='disk'>
|
||||
<driver name='qemu' type='qcow2'/>
|
||||
<source protocol='gluster' name='Volume3/Image.qcow2'>
|
||||
<host name='example.org' port='6000'/>
|
||||
<host name='example.org'/>
|
||||
<host transport='unix' socket='/path/to/sock'/>
|
||||
</source>
|
||||
<target dev='sdc' bus='sd'/>
|
||||
</disk>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu' type='qcow2'/>
|
||||
<source file='/arm-virtio.qcow2'/>
|
||||
|
@ -30,6 +30,22 @@
|
||||
<source file='/arm-sd.qcow2'/>
|
||||
<target dev='sda' bus='sd'/>
|
||||
</disk>
|
||||
<disk type='network' device='disk'>
|
||||
<driver name='qemu' type='qcow2'/>
|
||||
<source protocol='nbd' name='export'>
|
||||
<host name='localhost' port='10809'/>
|
||||
</source>
|
||||
<target dev='sdb' bus='sd'/>
|
||||
</disk>
|
||||
<disk type='network' device='disk'>
|
||||
<driver name='qemu' type='qcow2'/>
|
||||
<source protocol='gluster' name='Volume3/Image.qcow2'>
|
||||
<host name='example.org' port='6000'/>
|
||||
<host name='example.org' port='24007'/>
|
||||
<host transport='unix' socket='/path/to/sock'/>
|
||||
</source>
|
||||
<target dev='sdc' bus='sd'/>
|
||||
</disk>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu' type='qcow2'/>
|
||||
<source file='/arm-virtio.qcow2'/>
|
||||
|
Loading…
Reference in New Issue
Block a user