5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-20 14:03:50 +03:00
qemu-server/test/cfg2cmd/pinned-version-pxe.conf
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

16 lines
409 B
Plaintext

# TEST: for a basic configuration with a .pxe machine
bootdisk: scsi0
cores: 3
ide2: none,media=cdrom
machine: pc-q35-5.1.pxe
memory: 1024
name: pinned
net0: virtio=A2:C0:43:77:08:A1,bridge=vmbr0
numa: 0
ostype: l26
scsi0: local:8006/vm-8006-disk-0.raw,discard=on,size=104858K
scsihw: virtio-scsi-pci
smbios1: uuid=c7fdd046-fefc-11e9-832e-770e1d5636a0
sockets: 1
vmgenid: bdd46b98-fefc-11e9-97b4-d72c378e0f96