Timeout adding 9th virtio network interface

zoltan@cw

New Member
Jan 8, 2025
2
0
1
Hey there,

I need to add ablout 15-20 Network interfaces to my vm. As this is a migration scenario, the need for Interfaces is hard to circumvent.
Adding 8 Networks is no problem but I I try to add the 9th Interface I get a timeout starting the machine.

I've had a look in
Code:
vi /usr/share/perl5/PVE/QemuServer.pm
and found $MAX_NETS to be 32 by default, so I don't understand why I can't add more than 8.

I interpreted this to be the maximum amount of networks assignable to a single vm.
Please kindly korrect me if I misunderstood this and point me to the right spot.

Thanks in advance,
Zoltan
 
Last edited:
... seams to be a problem in the webui only,

I copied the failed task and threw it in the commandline:
Code:
/usr/bin/kvm \
 -id 100 \
 -name 'Dophos-XG,debug-threads=on' \
 -no-shutdown \
 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.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/100.pid \
 -daemonize \
 -smbios 'type=1,uuid=e8975c02-fe6d-465c-9ea1-45d222068405' \
 -smp '2,sockets=1,cores=2,maxcpus=2' \
 -nodefaults \
 -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' \
 -vnc 'unix:/var/run/qemu-server/100.vnc,password=on' \
 -cpu qemu64,+aes,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+pni,+popcnt,+sse4.1,+sse4.2,+ssse3 \
 -m 2048 \
 -object 'iothread,id=iothread-virtioscsi0' \
 -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 'pci-bridge,id=pci.3,chassis_nr=3,bus=pci.0,addr=0x5' \
 -device 'vmgenid,guid=59805b18-b59f-4fb7-8e75-7edb6ee4be78' \
 -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,free-page-reporting=on' \
 -iscsi 'initiator-name=iqn.1993-08.org.debian:01:1cecc1c92571' \
 -drive 'file=/var/lib/vz/template/iso/SW-17.5.12_MR-12-664.iso,if=none,id=drive-ide2,media=cdrom,aio=io_uring' \
 -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=101' \
 -device 'virtio-scsi-pci,id=virtioscsi0,bus=pci.3,addr=0x1,iothread=iothread-virtioscsi0' \
 -drive 'file=/dev/pve/vm-100-disk-0,if=none,id=drive-scsi0,format=raw,cache=none,aio=io_uring,detect-zeroes=on' \
 -device 'scsi-hd,bus=virtioscsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,bootindex=100' \
 -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:C7:7A:51,netdev=net0,bus=pci.0,addr=0x12,id=net0,rx_queue_size=1024,tx_queue_size=256,bootindex=102' \
 -netdev 'type=tap,id=net1,ifname=tap100i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:A9:92:4C,netdev=net1,bus=pci.0,addr=0x13,id=net1,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net2,ifname=tap100i2,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:1C:10:7A,netdev=net2,bus=pci.0,addr=0x14,id=net2,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net3,ifname=tap100i3,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:91:CB:07,netdev=net3,bus=pci.0,addr=0x15,id=net3,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net4,ifname=tap100i4,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:31:FE:09,netdev=net4,bus=pci.0,addr=0x16,id=net4,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net5,ifname=tap100i5,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:E8:CA:67,netdev=net5,bus=pci.0,addr=0x17,id=net5,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net6,ifname=tap100i6,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:16:70:8E,netdev=net6,bus=pci.1,addr=0x1,id=net6,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net7,ifname=tap100i7,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:5B:69:E5,netdev=net7,bus=pci.1,addr=0x2,id=net7,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net8,ifname=tap100i8,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:98:7D:1F,netdev=net8,bus=pci.1,addr=0x3,id=net8,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net9,ifname=tap100i9,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:38:74:15,netdev=net9,bus=pci.1,addr=0x4,id=net9,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net10,ifname=tap100i10,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:C7:6E:E2,netdev=net10,bus=pci.1,addr=0x5,id=net10,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net11,ifname=tap100i11,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:F7:62:E0,netdev=net11,bus=pci.1,addr=0x6,id=net11,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net12,ifname=tap100i12,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:49:1F:FC,netdev=net12,bus=pci.1,addr=0x7,id=net12,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net13,ifname=tap100i13,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:29:81:96,netdev=net13,bus=pci.1,addr=0x8,id=net13,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net14,ifname=tap100i14,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:CC:90:AF,netdev=net14,bus=pci.1,addr=0x9,id=net14,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net15,ifname=tap100i15,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:EE:E6:CA,netdev=net15,bus=pci.1,addr=0xa,id=net15,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net16,ifname=tap100i16,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:3C:B2:14,netdev=net16,bus=pci.1,addr=0xb,id=net16,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net17,ifname=tap100i17,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:C1:77:C3,netdev=net17,bus=pci.1,addr=0xc,id=net17,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net18,ifname=tap100i18,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:8D:35:57,netdev=net18,bus=pci.1,addr=0xd,id=net18,rx_queue_size=1024,tx_queue_size=256' \
 -netdev 'type=tap,id=net19,ifname=tap100i19,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
 -device 'virtio-net-pci,mac=BC:24:11:DC:E5:84,netdev=net19,bus=pci.1,addr=0xe,id=net19,rx_queue_size=1024,tx_queue_size=256'

this didn't timeout but don't know if this works because I seam to have omitted something:
[...]
-machine 'type=pc+pve0'' failed: got timeout
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!