]> git.proxmox.com Git - qemu-server.git/commit
fix #4620: cfg2cmd: drive device: correctly handle IDE for q35
authorFiona Ebner <f.ebner@proxmox.com>
Thu, 20 Jul 2023 09:45:02 +0000 (11:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Jul 2023 10:20:25 +0000 (12:20 +0200)
commitb155086bd8c408ca03673e9ae9339c32ef1f99fc
tree775a3b66c30e439368b77ce4b21a6ce6536aba10
parentd859bc0248ce3aba227fd8b49cf84c32a4e4a4ac
fix #4620: cfg2cmd: drive device: correctly handle IDE for q35

Only unit 0 for IDE is supported with machine type q35. Currently,
QEMU will fail startup with machine type q35 with an error like
> Can't create IDE unit 1, bus supports only 1 units
when ide1 or ide3 is configured.

Make sure to keep backwards compat form migration by leaving ide0 and
ide2 fixed. Since starting with ide1 or ide3 never worked, they can be
moved to a controller with a higher ID without issue.

Reported in the community forum:
https://forum.proxmox.com/threads/124615/post-543127
https://forum.proxmox.com/threads/130815/

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm
test/cfg2cmd/q35-ide.conf.cmd