qemu-server/test/parse-config-input/snapshots.conf
Fiona Ebner 60b9ff0fd9 test: add parse config tests
Tests for parsing and writing VM configuration files. The parsing part
is already covered by the config2command test too, but that only
focuses on the main section, not other section types and does not also
test parsing in strict mode.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Link: https://lore.proxmox.com/20250127112923.31703-4-f.ebner@proxmox.com
2025-04-07 14:13:01 +02:00

190 lines
6.0 KiB
Plaintext

boot: order=scsi1;ide2;net0;ide1
cores: 4
cpu: x86-64-v2-AES
ide0: dir:111/vm-111-disk-2.qcow2,size=1G
ide1: sani:iso/virtio-win-0.1.266.iso,media=cdrom,size=707456K
ide2: sani:iso/Win2019-evaluation.iso,media=cdrom,size=4985424K
machine: pc-i440fx-9.1
memory: 4096
meta: creation-qemu=9.1.2,ctime=1736349024
name: win-machine-ver
net0: virtio=BC:24:11:A3:DA:B1,bridge=vnet0,firewall=1
net1: e1000=BC:24:11:79:D5:65,bridge=vnet0,firewall=1
numa: 0
ostype: win10
parent: win19_5_2_plus_stuff
scsi0: dir:111/vm-111-disk-1.qcow2,iothread=1,size=1G
scsi1: lvmthinbig:vm-111-disk-0,iothread=1,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=2c4a2cda-712b-44ab-8728-51f5e734b658
sockets: 1
unused0: rbd:vm-111-disk-0
vga: qxl
virtio0: dir:111/vm-111-disk-0.qcow2,iothread=1,size=1G
vmgenid: 713da648-38a6-489e-b0b2-dd9cef419f33
[machine_version_5_1]
boot: order=ide0;ide2;net0
cores: 4
cpu: x86-64-v2-AES
ide0: lvmthinbig:vm-111-disk-0,size=32G
ide2: sani:iso/Win2016-1616-evaluation.ISO,media=cdrom,size=5198078K
memory: 4096
meta: creation-qemu=9.1.2,ctime=1736349024
name: win-machine-ver
net0: e1000=BC:24:11:A3:DA:B1,bridge=vnet0,firewall=1
numa: 0
ostype: win10
scsihw: virtio-scsi-single
smbios1: uuid=2c4a2cda-712b-44ab-8728-51f5e734b658
snaptime: 1736939109
sockets: 1
vmgenid: 1f314a76-50a3-4b92-9307-c8c6e313d3ca
[machine_version_5_1_with_virtio]
boot: order=ide0;ide2;net0;ide1
cores: 4
cpu: x86-64-v2-AES
ide0: lvmthinbig:vm-111-disk-0,size=32G
ide1: sani:iso/virtio-win-0.1.266.iso,media=cdrom,size=707456K
ide2: sani:iso/Win2016-1616-evaluation.ISO,media=cdrom,size=5198078K
memory: 4096
meta: creation-qemu=9.1.2,ctime=1736349024
name: win-machine-ver
net0: virtio=BC:24:11:A3:DA:B1,bridge=vnet0,firewall=1
numa: 0
ostype: win10
parent: machine_version_5_1
scsi0: dir:111/vm-111-disk-1.qcow2,iothread=1,size=1G
scsihw: virtio-scsi-single
smbios1: uuid=2c4a2cda-712b-44ab-8728-51f5e734b658
snaptime: 1736940462
sockets: 1
virtio0: dir:111/vm-111-disk-0.qcow2,iothread=1,size=1G
vmgenid: 4f602356-cb9c-45ad-a554-d76d95c7c0f8
[ovmf_machine_version_5_1]
bios: ovmf
boot: order=ide0;ide2;net0;ide1
cores: 4
cpu: x86-64-v2-AES
efidisk0: rbd:vm-111-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M
ide0: lvmthinbig:vm-111-disk-0,size=32G
ide1: sani:iso/virtio-win-0.1.266.iso,media=cdrom,size=707456K
ide2: sani:iso/Win2016-1616-evaluation.ISO,media=cdrom,size=5198078K
machine: pc-q35-5.1
memory: 4096
meta: creation-qemu=9.1.2,ctime=1736349024
name: win-machine-ver
net0: e1000=BC:24:11:A3:DA:B1,bridge=vnet0,firewall=1
numa: 0
ostype: win10
parent: machine_version_5_1_with_virtio
scsi0: dir:111/vm-111-disk-1.qcow2,iothread=1,size=1G
scsihw: virtio-scsi-single
smbios1: uuid=2c4a2cda-712b-44ab-8728-51f5e734b658
snaptime: 1736943308
sockets: 1
virtio0: dir:111/vm-111-disk-0.qcow2,iothread=1,size=1G
vmgenid: 4f602356-cb9c-45ad-a554-d76d95c7c0f8
[ovmf_machine_version_5_1_virtio]
bios: ovmf
boot: order=ide0;ide2;net0;ide1
cores: 4
cpu: x86-64-v2-AES
efidisk0: rbd:vm-111-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M
ide0: lvmthinbig:vm-111-disk-0,size=32G
ide1: sani:iso/virtio-win-0.1.266.iso,media=cdrom,size=707456K
ide2: sani:iso/Win2016-1616-evaluation.ISO,media=cdrom,size=5198078K
machine: pc-q35-5.1
memory: 4096
meta: creation-qemu=9.1.2,ctime=1736349024
name: win-machine-ver
net0: virtio=BC:24:11:A3:DA:B1,bridge=vnet0,firewall=1
numa: 0
ostype: win10
parent: ovmf_machine_version_5_1
scsi0: dir:111/vm-111-disk-1.qcow2,iothread=1,size=1G
scsihw: virtio-scsi-single
smbios1: uuid=2c4a2cda-712b-44ab-8728-51f5e734b658
snaptime: 1736944525
sockets: 1
virtio0: dir:111/vm-111-disk-0.qcow2,iothread=1,size=1G
vmgenid: 00b95468-4f34-4faa-b0af-b214ff5bbcdf
[static-network]
bios: ovmf
boot: order=ide0;ide2;net0;ide1
cores: 4
cpu: x86-64-v2-AES
efidisk0: rbd:vm-111-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M
ide0: lvmthinbig:vm-111-disk-0,size=32G
ide1: sani:iso/virtio-win-0.1.266.iso,media=cdrom,size=707456K
ide2: sani:iso/Win2016-1616-evaluation.ISO,media=cdrom,size=5198078K
machine: pc-q35-5.1
memory: 4096
meta: creation-qemu=9.1.2,ctime=1736349024
name: win-machine-ver
net0: virtio=BC:24:11:A3:DA:B1,bridge=vnet0,firewall=1
numa: 0
ostype: win10
parent: ovmf_machine_version_5_1_virtio
scsi0: dir:111/vm-111-disk-1.qcow2,iothread=1,size=1G
scsihw: virtio-scsi-single
smbios1: uuid=2c4a2cda-712b-44ab-8728-51f5e734b658
snaptime: 1736945713
sockets: 1
virtio0: dir:111/vm-111-disk-0.qcow2,iothread=1,size=1G
vmgenid: 5d65fc62-2cb1-4945-9641-631b37c265a5
[win19_5_2]
boot: order=scsi1;ide2;net0;ide1
cores: 4
cpu: x86-64-v2-AES
ide1: sani:iso/virtio-win-0.1.266.iso,media=cdrom,size=707456K
ide2: sani:iso/Win2019-evaluation.iso,media=cdrom,size=4985424K
machine: pc-i440fx-5.2
memory: 4096
meta: creation-qemu=9.1.2,ctime=1736349024
name: win-machine-ver
net0: virtio=BC:24:11:A3:DA:B1,bridge=vnet0,firewall=1
net1: e1000=BC:24:11:79:D5:65,bridge=vnet0,firewall=1
numa: 0
ostype: win10
parent: machine_version_5_1_with_virtio
scsi0: dir:111/vm-111-disk-1.qcow2,iothread=1,size=1G
scsi1: lvmthinbig:vm-111-disk-0,iothread=1,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=2c4a2cda-712b-44ab-8728-51f5e734b658
snaptime: 1736950690
sockets: 1
virtio0: dir:111/vm-111-disk-0.qcow2,iothread=1,size=1G
vmgenid: f259de06-fa08-4ff7-8ba9-b1233a726ac4
[win19_5_2_plus_stuff]
boot: order=scsi1;ide2;net0;ide1
cores: 4
cpu: x86-64-v2-AES
ide0: dir:111/vm-111-disk-2.qcow2,size=1G
ide1: sani:iso/virtio-win-0.1.266.iso,media=cdrom,size=707456K
ide2: sani:iso/Win2019-evaluation.iso,media=cdrom,size=4985424K
machine: pc-i440fx-5.2
memory: 4096
meta: creation-qemu=9.1.2,ctime=1736349024
name: win-machine-ver
net0: virtio=BC:24:11:A3:DA:B1,bridge=vnet0,firewall=1
net1: e1000=BC:24:11:79:D5:65,bridge=vnet0,firewall=1
numa: 0
ostype: win10
parent: win19_5_2
scsi0: dir:111/vm-111-disk-1.qcow2,iothread=1,size=1G
scsi1: lvmthinbig:vm-111-disk-0,iothread=1,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=2c4a2cda-712b-44ab-8728-51f5e734b658
snaptime: 1736951300
sockets: 1
vga: qxl
virtio0: dir:111/vm-111-disk-0.qcow2,iothread=1,size=1G
vmgenid: 713da648-38a6-489e-b0b2-dd9cef419f33