Saturday, October 01, 2022

Re: VM(D) Interface Question

On Sat, Oct 01, 2022 at 08:32:35AM -0400, Dave Voutila wrote:
>
> Holger Glaess <glaess@glaessixs.de> writes:
>
> > Hi
> >
> >
> > how many Interfaces can an single VM have ?
> >
> >
> > With 3 Interface in my vm.conf the vm works, with 4 not i get "to many
> > interfaces".
> >
>
> The maximum supported per vm is currently 4. Without your config or
> invocation triggering the "too many interfaces" when you use 4, I cannot
> explain any further. Debug output would also be helpful to make sure
> it's the message coming from the config parsing as I suspect.
>
> -dv
>

4 should work (I just did this and it worked here). There is nothing special
about "4", it's just a reasonable number we picked early on. You could probably
crank that higher.

Note that there is a maximum number of devices per vm which I think is 10
(includes all virtio devices and don't forget we use one for the rnd device).
Technically we rotate the IRQ back to the start of the list at 10 devices but
the level triggered code for interrupt sharing in 8259.c probably hasn't been
tested too much and I wouldn't be surprised if something is broken there.

-ml

No comments:

Post a Comment