mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 22:53:08 +00:00
cfg2cmd: add test for efidisk rbd cache handling
I don't think this is something which will get broken by accident but still nice to "document" this behavior in a regression test Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
26d717252a
commit
9da0feb5e5
11
test/cfg2cmd/efidisk-on-rbd.conf
Normal file
11
test/cfg2cmd/efidisk-on-rbd.conf
Normal file
@ -0,0 +1,11 @@
|
||||
# TEST: Config with efi disk on RBD is very slow without cache - #3329
|
||||
bios: ovmf
|
||||
bootdisk: scsi0
|
||||
cores: 1
|
||||
efidisk0: rbd-store:vm-100-disk-1,size=128K
|
||||
memory: 512
|
||||
net0: virtio=2E:01:68:F9:9C:87,bridge=vmbr0
|
||||
numa: 1
|
||||
ostype: l26
|
||||
smbios1: uuid=3dd750ce-d910-44d0-9493-525c0be4e688
|
||||
vmgenid: 54d1c06c-8f5b-440f-b5b2-6eab1380e13a
|
32
test/cfg2cmd/efidisk-on-rbd.conf.cmd
Normal file
32
test/cfg2cmd/efidisk-on-rbd.conf.cmd
Normal file
@ -0,0 +1,32 @@
|
||||
/usr/bin/kvm \
|
||||
-id 8006 \
|
||||
-name vm8006 \
|
||||
-no-shutdown \
|
||||
-chardev 'socket,id=qmp,path=/var/run/qemu-server/8006.qmp,server=on,wait=off' \
|
||||
-mon 'chardev=qmp,mode=control' \
|
||||
-chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' \
|
||||
-mon 'chardev=qmp-event,mode=control' \
|
||||
-pidfile /var/run/qemu-server/8006.pid \
|
||||
-daemonize \
|
||||
-smbios 'type=1,uuid=3dd750ce-d910-44d0-9493-525c0be4e688' \
|
||||
-drive 'if=pflash,unit=0,format=raw,readonly=on,file=/usr/share/pve-edk2-firmware//OVMF_CODE.fd' \
|
||||
-drive 'if=pflash,unit=1,cache=writeback,format=raw,id=drive-efidisk0,size=131072,file=rbd:cpool/vm-100-disk-1:mon_host=127.0.0.42;127.0.0.21;[\:\:1]:auth_supported=none' \
|
||||
-smp '1,sockets=1,cores=1,maxcpus=1' \
|
||||
-nodefaults \
|
||||
-boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' \
|
||||
-vnc 'unix:/var/run/qemu-server/8006.vnc,password=on' \
|
||||
-cpu kvm64,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+lahf_lm,+sep \
|
||||
-m 512 \
|
||||
-object 'memory-backend-ram,id=ram-node0,size=512M' \
|
||||
-numa 'node,nodeid=0,cpus=0,memdev=ram-node0' \
|
||||
-device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' \
|
||||
-device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' \
|
||||
-device 'vmgenid,guid=54d1c06c-8f5b-440f-b5b2-6eab1380e13a' \
|
||||
-device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' \
|
||||
-device 'usb-tablet,id=tablet,bus=uhci.0,port=1' \
|
||||
-device 'VGA,id=vga,bus=pci.0,addr=0x2' \
|
||||
-device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' \
|
||||
-iscsi 'initiator-name=iqn.1993-08.org.debian:01:aabbccddeeff' \
|
||||
-netdev 'type=tap,id=net0,ifname=tap8006i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
|
||||
-device 'virtio-net-pci,mac=2E:01:68:F9:9C:87,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' \
|
||||
-machine 'type=pc+pve0'
|
Loading…
Reference in New Issue
Block a user