qemu-server/test
Fiona Ebner 9f887d3738 cfg2cmd: print drive commandline: improve format detection
For a Proxmox VE managed volume, prefer the format from the storage
layer rather than the 'format' option set on the drive. Fail if there
is a mismatch between the detected and configured format, because this
is not expected for managed volumes. Having this early hard failure
protects against undesirable issues with live migration and reboot
where the format of a drive would suddenly be different.

For a not Proxmox VE managed volume, use the same logic as before,
i.e. use the 'format' option for the drive with 'raw' as a fallback:
Only root can configure such devices.

Both also apply to the case where the 'cdrom' flag is set to avoid
autodetection by QEMU.

Reported-by: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
FG: typo fix in comment
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-12-09 09:07:08 +01:00
..
cfg2cmd cfg2cmd: print drive commandline: improve format detection 2024-12-09 09:07:08 +01:00
MigrationTest move helper to check running QEMU version out of the 'Machine' module 2024-07-30 21:19:51 +02:00
restore-config-expected test: add tests for restoring config 2021-04-18 18:10:28 +02:00
restore-config-input test: add tests for restoring config 2021-04-18 18:10:28 +02:00
snapshot-expected tests: use valid machine types for snapshot tests 2023-08-17 13:37:57 +02:00
snapshot-input tests: use valid machine types for snapshot tests 2023-08-17 13:37:57 +02:00
Makefile use OVF from Storage 2024-11-18 18:55:54 +01:00
run_config2command_tests.pl cfg2cmd tests: various typo fixes 2024-12-05 12:20:54 +01:00
run_pci_addr_checks.pl move qemu-configs to own directory 2019-09-24 18:59:35 +02:00
run_qemu_img_convert_tests.pl fix #4249: make image clone or conversion respect bandwidth limit 2023-02-23 17:09:51 +01:00
run_qemu_migrate_tests.pl tests: add migration alias check 2023-06-21 12:48:11 +02:00
run_qemu_restore_config_tests.pl test: unbreak restore_config_test 2021-06-23 12:27:54 +02:00
run_snapshot_tests.pl tests: exit with -1 in case of failures 2017-05-17 13:58:18 +02:00
snapshot-test.pm tests: use valid machine types for snapshot tests 2023-08-17 13:37:57 +02:00
test_get_replicatable_volumes.pl grammar fix: s/does not exists/does not exist/g 2019-12-13 12:20:56 +01:00
test.vmdk fix #2395: refactor qemu_img_convert to accept files as source 2019-10-17 13:57:21 +02:00