mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-20 14:03:50 +03:00
d4be7f31b5
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>
16 lines
409 B
Plaintext
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
|