mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-05 09:17:55 +03:00
2ea5fb7ecf
...into: * PVE::QemuServer::Helpers::min_version: check a major.minor version string with a given major/minor version (this is equivalent to calling the old qemu_machine_feature_enabled with only $kvmver) * PVE::QemuServer::Machine::extract_version: get major.minor version string from arbitrary machine type (e.g. pc-q35-4.0, ...) * PVE::QemuServer::Machine::machine_version: helper to call extract_version automatically before min_version Includes a cfg2cmd test case with pinned machine version. Signed-off-by: Stefan Reiter <s.reiter@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 lines
430 B
Plaintext
16 lines
430 B
Plaintext
# TEST: Simple test for a basic configuration with pinned QEMU machine version
|
|
bootdisk: scsi0
|
|
cores: 3
|
|
ide2: none,media=cdrom
|
|
machine: pc-q35-3.1
|
|
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
|