mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 21:01:13 +00:00
3361cfd79e
For virStorageSource objects that contain an nbdkitProcess, start that nbdkit process to serve that network drive and then pass the nbdkit socket to qemu rather than sending the network url to qemu directly. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
46 lines
1.5 KiB
XML
46 lines
1.5 KiB
XML
<domain type='qemu'>
|
|
<name>QEMUGuest1</name>
|
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
<memory unit='KiB'>219136</memory>
|
|
<currentMemory unit='KiB'>219136</currentMemory>
|
|
<vcpu placement='static'>1</vcpu>
|
|
<os>
|
|
<type arch='x86_64' machine='pc'>hvm</type>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
|
<disk type='network' device='disk'>
|
|
<driver name='qemu' type='qcow2'/>
|
|
<source protocol='https' name='path/to/disk1.qcow2'>
|
|
<host name='https.example.org' port='8443'/>
|
|
<cookies>
|
|
<cookie name='cookie1'>cookievalue1</cookie>
|
|
<cookie name='cookie2'>cookievalue2</cookie>
|
|
</cookies>
|
|
</source>
|
|
<backingStore type='network'>
|
|
<format type='qcow2'/>
|
|
<source protocol='https' name='path/to/backing.qcow2'>
|
|
<host name='https.example2.org' port='8444'/>
|
|
<cookies>
|
|
<cookie name='cookie3'>cookievalue3</cookie>
|
|
<cookie name='cookie4'>cookievalue4</cookie>
|
|
</cookies>
|
|
</source>
|
|
</backingStore>
|
|
<target dev='vda' bus='virtio'/>
|
|
<readonly/>
|
|
</disk>
|
|
<controller type='usb' index='0'/>
|
|
<controller type='pci' index='0' model='pci-root'/>
|
|
<input type='mouse' bus='ps2'/>
|
|
<input type='keyboard' bus='ps2'/>
|
|
<memballoon model='none'/>
|
|
</devices>
|
|
</domain>
|