KVM virtual network interface limit?

Inlakesh

Well-Known Member
Jan 13, 2019
76
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>?
 
Sorry for late reply, many things happening now.
I attached a screenshot of the config.
 

Attachments

  • 2020-04-03_14-06-03.png
    2020-04-03_14-06-03.png
    89.9 KB · Views: 11
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