5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-07 17:17:57 +03:00
qemu-server/test
Dominik Csapak 3ab3dd55c4 fix #3352: templates: minimize config when starting templates
templates can only be started in context of a pbs backup, and there we
don't need or want to use most of the config, since they cannot be
started normally anyway.

We minimize the config by copying some specific relevant options (see
the comments for why the options were chosen) and all disk
configurations.

Since we change the qemu commandline for templates, we now have to adapt
the tests involving templates.

Without this, users can get into a situation where the template cannot
be backed up when there are some resources not available (such as cpu
cores, kvm, pci devices, etc.) even if the backup process does not need
them.

This change has some nice side effects, such as we don't need to
allocate the full amount of memory anymore for templates that have a
hostpci device configured, the configured bridges don't have to exist,
etc.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2024-07-01 10:48:27 +02:00
..
cfg2cmd fix #3352: templates: minimize config when starting templates 2024-07-01 10:48:27 +02:00
MigrationTest test: migration: mock get_current_qemu_machine 2023-11-12 18:48:01 +01:00
ovf_manifests test: add test for OVF with missing default rasd namespace 2020-04-27 13:09: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 tests: fix invoking migration tests with make 2023-05-22 15:51:58 +02:00
run_config2command_tests.pl test: add tests with multiple IDE CD-ROM drives 2023-07-20 12:20:25 +02:00
run_ovf_tests.pl test: add test for OVF with missing default rasd namespace 2020-04-27 13:09:51 +02: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