mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 08:05:24 +00:00
c3068d4d23
Prefer bootindex=N option for -device over the old way -boot ORDER possibly accompanied with boot=on option for -drive. This gives us full control over which device will actually be used for booting guest OS. Moreover, if qemu doesn't support boot=on, this is the only way to boot of certain disks in some configurations (such as virtio disks when used together IDE disks) without transforming domain XML to use per device boot elements.
14 lines
401 B
Plaintext
14 lines
401 B
Plaintext
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu \
|
|
-S \
|
|
-M pc \
|
|
-m 214 \
|
|
-smp 1 \
|
|
-nographic \
|
|
-nodefaults \
|
|
-monitor unix:/tmp/test-monitor,server,nowait \
|
|
-no-acpi \
|
|
-drive file=/dev/cdrom,if=none,media=cdrom,id=drive-ide0-1-0 \
|
|
-device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1 \
|
|
-usb \
|
|
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
|