mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
b9dfed787d
Move together sections which are conditionaly executed depending on whether -device will be used together with the -drive.
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
LC_ALL=C \
|
|
PATH=/bin \
|
|
HOME=/home/test \
|
|
USER=test \
|
|
LOGNAME=test \
|
|
QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu-system-i686 \
|
|
-name QEMUGuest1 \
|
|
-S \
|
|
-M pc \
|
|
-m 214 \
|
|
-smp 1,sockets=1,cores=1,threads=1 \
|
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
|
-nographic \
|
|
-nodefconfig \
|
|
-nodefaults \
|
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
|
server,nowait \
|
|
-mon chardev=charmonitor,id=monitor,mode=readline \
|
|
-no-acpi \
|
|
-boot c \
|
|
-usb \
|
|
-drive file=/some/block/device/unit:0:0:1,if=none,id=drive-ide0-0-1,\
|
|
media=cdrom,readonly=on \
|
|
-device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 \
|
|
-drive file=iscsi://iscsi.example.com:3260/demo-target/2,if=none,\
|
|
id=drive-ide0-0-2,media=cdrom,readonly=on \
|
|
-device ide-drive,bus=ide.0,unit=2,drive=drive-ide0-0-2,id=ide0-0-2 \
|
|
-drive file=/tmp/idedisk.img,format=raw,if=none,id=drive-ide0-0-3 \
|
|
-device ide-drive,bus=ide.0,unit=3,drive=drive-ide0-0-3,id=ide0-0-3 \
|
|
-drive file=iscsi://iscsi.example.com:3260/demo-target/3,if=none,\
|
|
id=drive-ide0-0-4,media=cdrom,readonly=on \
|
|
-device ide-drive,bus=ide.0,unit=4,drive=drive-ide0-0-4,id=ide0-0-4 \
|
|
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
|