mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 23:10:08 +00:00
d7db33bfe9
Just recently, qemu forbade specifying format for sourceless disks (qemu commit 39c4ae941ed992a3bb5). It kind of makes sense. If there's no file to open, why specify its format. Anyway, I have a domain like this: <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <target dev='hda' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> and obviously I am unable to start it. Therefore, a fix on our side is needed too. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
29 lines
749 B
Plaintext
29 lines
749 B
Plaintext
LC_ALL=C \
|
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin \
|
|
HOME=/root \
|
|
USER=root \
|
|
LOGNAME=root \
|
|
/usr/bin/qemu \
|
|
-name encryptdisk \
|
|
-S \
|
|
-M pc-0.13 \
|
|
-m 1024 \
|
|
-smp 1,sockets=1,cores=1,threads=1 \
|
|
-uuid 496898a6-e6ff-f7c8-5dc2-3cf410945ee9 \
|
|
-uuid 496898a6-e6ff-f7c8-5dc2-3cf410945ee9 \
|
|
-nographic \
|
|
-nodefconfig \
|
|
-nodefaults \
|
|
-chardev socket,id=monitor,path=//var/lib/libvirt/qemu/encryptdisk.monitor,\
|
|
server,nowait \
|
|
-mon chardev=monitor,mode=readline \
|
|
-rtc base=utc \
|
|
-no-acpi \
|
|
-boot c \
|
|
-usb \
|
|
-drive file=/storage/guest_disks/encryptdisk,format=raw,if=none,\
|
|
id=drive-virtio-disk0,\,boot=on \
|
|
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
|
|
id=virtio-disk0 \
|
|
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
|