]> git.proxmox.com Git - qemu-server.git/commit
fix #3010: add 'bootorder' parameter for better control of boot devices
authorStefan Reiter <s.reiter@proxmox.com>
Tue, 6 Oct 2020 13:32:15 +0000 (15:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Oct 2020 10:30:50 +0000 (12:30 +0200)
commit2141a802b843475be82e04d8c351d6f7cd1a339a
tree57cd807b9c031417530f5a16da81a9a3eba8d7f1
parent5cfa9f5f7374c95c077e6f45b3943ca6388a7c53
fix #3010: add 'bootorder' parameter for better control of boot devices

(also fixes #3011)

Deprecates the old-style 'boot' and 'bootdisk' options by adding a new
'order=' subproperty to 'boot'.

This allows a user to specify more than one disk in the boot order,
helping with newer versions of SeaBIOS/OVMF where disks without a
bootindex won't be initialized at all (breaks soft-raid and some LVM
setups).

This also allows specifying a bootindex for USB and hostpci devices,
which was not possible before. Floppy boot support is not supported in
the new model, but I doubt that will be a problem (AFAICT we can't even
attach floppy disks to a VM?).

Default behaviour is intended to stay the same, i.e. while new VMs will
receive the new 'order' property, it will be set so the VM starts the
same as before (using get_default_bootorder).

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/API2/Qemu.pm
PVE/CLI/qm.pm
PVE/QemuServer.pm
PVE/QemuServer/Drive.pm
PVE/QemuServer/PCI.pm
PVE/QemuServer/USB.pm