KVM virtual network interface limit?

Inlakesh

Well-Known Member
Jan 13, 2019
75
4
48
Hello

I am in a situation where I have a KVM with Ubuntu 18.04 installed, and need to have 10 virtio network interface's attached to the VM, when setting this up many of the virtio interfaces does not respond when sending ping request to them, and when restarting the VM the interface's who responded to ping suddenly does not respond, and some interface who didn't respond suddenly respond to ping.

I wonder what can I do to fix this issue, and Is there a limitation on how many virtio interfaces I can attach to a KVM?
 
How does the vm config look like, qm config <vmid>?
 
Does it work without the cloud-init? So, by manually configuring the interfaces inside the VM.
 
Why do you assign IP's in config and not within the VM?

I would assign the IP-Addresses within the /etc/network/interfaces of the VM.
This way it's declared which network port/ MAC belongs to an specific IP Address.
 
Why do you assign IP's in config and not within the VM?

I would assign the IP-Addresses within the /etc/network/interfaces of the VM.
This way it's declared which network port/ MAC belongs to an specific IP Address.
This is how it is configured within the whmcs and proxmox_whmcs addon, don't know if I can get cloud-init to work in another way.
 
You can try to use udev (if linux) and match the MACs to interface names.
 
  • Like
Reactions: Inlakesh

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!