qemu-server/PVE/QemuServer
Stefan Reiter d4be7f31b5 cfg2cmd: fix +pveN machine types with pxe
Pinned machine versions like "pc-i440fx-4.2+pve2.pxe" would otherwise
get a second "+pve0" suffix, which is incorrect.

Also deal with non-pve pinned versions correctly, i.e.
"pc-i440fx-5.2.pxe" becomes "pc-i440fx-5.2+pve0.pxe".

Handle .pxe suffixes in Machine.pm as well, and add two test cases.

Co-developed-by: Luca Berneking <luca@berneking.net>
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2021-04-18 17:58:56 +02:00
..
Agent.pm tree wide cleanup of s/return undef/return/ 2020-10-16 16:20:05 +02:00
CGroup.pm add PVE::QemuServer::Cgroup 2020-11-24 12:00:33 +01:00
Cloudinit.pm fix #2670: cloudinit enable SLAAC 2021-03-30 18:25:06 +02:00
CPUConfig.pm anchor CPU flag regex to avoid arbitrary flag suffixes 2021-01-26 19:27:05 +01:00
Drive.pm drive: volume in-use check: fix fallback path comparison 2021-04-18 17:26:05 +02:00
Helpers.pm tree wide cleanup of s/return undef/return/ 2020-10-16 16:20:05 +02:00
ImportDisk.pm qm importdisk: tell user to what VM disk we actually imported 2019-10-29 19:11:21 +01:00
Machine.pm cfg2cmd: fix +pveN machine types with pxe 2021-04-18 17:58:56 +02:00
Makefile add PVE::QemuServer::Cgroup 2020-11-24 12:00:33 +01:00
Memory.pm tree wide cleanups 2020-10-16 18:03:32 +02:00
Monitor.pm mon_cmd: add explicit return 2019-11-30 17:24:55 +01:00
OVF.pm tree wide cleanup of s/return undef/return/ 2020-10-16 16:20:05 +02:00
PCI.pm PCI: use warnings/strict and fix setting $vga from config2command 2020-10-16 18:03:32 +02:00
USB.pm tree wide cleanup of s/return undef/return/ 2020-10-16 16:20:05 +02:00