Re: VM(D) Interface Question

2022-10-01 Thread Mike Larkin
On Sat, Oct 01, 2022 at 08:32:35AM -0400, Dave Voutila wrote:
>
> Holger Glaess  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



Re: VM(D) Interface Question

2022-10-01 Thread Dave Voutila


Holger Glaess  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



Re: VM(D) Interface Question

2022-10-01 Thread Tobias Fiebig
Heho,
Ah, yeah, sorry, meant tap. Writing mails to late n stuff... :-/

With best regards,
Tobias


-Original Message-
From: Holger Glaess  
Sent: Saturday, 1 October 2022 10:30
To: Tobias Fiebig ; 'OpenBSD general usage 
list' 
Subject: Re: VM(D) Interface Question

hi


no , ony this single vm.


did you mean really tun interfaces , i think and see tap

is in use by vmd ?

for the tap interface i add allready with MAKEDEV 4 more.


Holger


On 01.10.22 02:08, Tobias Fiebig wrote:
> Heho,
> Any other VMs on the box? My first thought would be not enough tun devs, 
> default is iirc 4?
>
> To make it work, if that is the case:
>
> cd /dev ; sh ./MAKEDEV tun4 ; sh ./MAKEDEV tun5; sh ./MAKEDEV tun6
>
> With best regards,
> Tobias
>
>
> -Original Message-
> From: owner-m...@openbsd.org  On Behalf Of Holger 
> Glaess
> Sent: Saturday, 1 October 2022 01:14
> To: OpenBSD general usage list 
> Subject: VM(D) Interface Question
>
> 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".
>
> if i put in the vm section "interfaces 6" , this fails also.
>
> any veb still exists and working.
>
>
> Holger
>
>
> switch "vswitch100" {
>   # lan
>   interface veb100
>   enable
>   }
>
> switch "vswitch110" {
>   # xbl
>   interface veb110
>   enable
>   }
>
> switch "vswitch120" {
>   # dmz
>   interface veb120
>   enable
>   }
>
> switch "vswitch130" {
>   # wdmz
>   interface veb130
>   enable
>   }
>
> switch "vswitch300" {
>   # freetz
>   interface veb300
>   enable
>   }
>
> switch "vswitch5" {
>   # um
>   interface veb5
>   disable
>   }
>
> switch "vswitch7" {
>   # nc
>   interface veb7
>   disable
>   }
>
> vm "farin" {
>   # interfaces 6
>  owner _vmd
>  disk "/home/vmd/disk0.qcow2"
>   interface {
>   switch "vswitch100"
>   lladdr fe:e1:ba:d0:9b:d4
>   }
>
>   interface {
>   switch "vswitch110"
>   lladdr fe:e1:ba:d0:9b:d5
>   }
>
>   interface {
>   switch "vswitch120"
>   lladdr fe:e1:ba:d0:9b:d6
>   }
>
> #interface {
> #switch "vswitch130"
> #lladdr fe:e1:ba:d0:9b:d7 #}
>
> #interface {
> #switch "vswitch300"
> #lladdr fe:e1:ba:d0:9b:d8 #}
>
>   memory 2G
>   enable
> }
>
>
>
>



Re: VM(D) Interface Question

2022-10-01 Thread Holger Glaess

hi


no , ony this single vm.


did you mean really tun interfaces , i think and see tap

is in use by vmd ?

for the tap interface i add allready with MAKEDEV 4 more.


Holger


On 01.10.22 02:08, Tobias Fiebig wrote:

Heho,
Any other VMs on the box? My first thought would be not enough tun devs, 
default is iirc 4?

To make it work, if that is the case:

cd /dev ; sh ./MAKEDEV tun4 ; sh ./MAKEDEV tun5; sh ./MAKEDEV tun6

With best regards,
Tobias


-Original Message-
From: owner-m...@openbsd.org  On Behalf Of Holger Glaess
Sent: Saturday, 1 October 2022 01:14
To: OpenBSD general usage list 
Subject: VM(D) Interface Question

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".

if i put in the vm section "interfaces 6" , this fails also.

any veb still exists and working.


Holger


switch "vswitch100" {
  # lan
  interface veb100
  enable
  }

switch "vswitch110" {
  # xbl
  interface veb110
  enable
  }

switch "vswitch120" {
  # dmz
  interface veb120
  enable
  }

switch "vswitch130" {
  # wdmz
  interface veb130
  enable
  }

switch "vswitch300" {
  # freetz
  interface veb300
  enable
  }

switch "vswitch5" {
  # um
  interface veb5
  disable
  }

switch "vswitch7" {
  # nc
  interface veb7
  disable
  }

vm "farin" {
  # interfaces 6
 owner _vmd
 disk "/home/vmd/disk0.qcow2"
  interface {
  switch "vswitch100"
  lladdr fe:e1:ba:d0:9b:d4
  }

  interface {
  switch "vswitch110"
  lladdr fe:e1:ba:d0:9b:d5
  }

  interface {
  switch "vswitch120"
  lladdr fe:e1:ba:d0:9b:d6
  }

#interface {
#switch "vswitch130"
#lladdr fe:e1:ba:d0:9b:d7 #}

#interface {
#switch "vswitch300"
#lladdr fe:e1:ba:d0:9b:d8 #}

  memory 2G
  enable
}








Re: VM(D) Interface Question

2022-09-30 Thread Tobias Fiebig
Heho,
Any other VMs on the box? My first thought would be not enough tun devs, 
default is iirc 4?

To make it work, if that is the case: 

cd /dev ; sh ./MAKEDEV tun4 ; sh ./MAKEDEV tun5; sh ./MAKEDEV tun6

With best regards,
Tobias


-Original Message-
From: owner-m...@openbsd.org  On Behalf Of Holger Glaess
Sent: Saturday, 1 October 2022 01:14
To: OpenBSD general usage list 
Subject: VM(D) Interface Question

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".

if i put in the vm section "interfaces 6" , this fails also.

any veb still exists and working.


Holger


switch "vswitch100" {
 # lan
 interface veb100
 enable
 }

switch "vswitch110" {
 # xbl
 interface veb110
 enable
 }

switch "vswitch120" {
 # dmz
 interface veb120
 enable
 }

switch "vswitch130" {
 # wdmz
 interface veb130
 enable
 }

switch "vswitch300" {
 # freetz
 interface veb300
 enable
 }

switch "vswitch5" {
 # um
 interface veb5
 disable
 }

switch "vswitch7" {
 # nc
 interface veb7
 disable
 }

vm "farin" {
 # interfaces 6
owner _vmd
disk "/home/vmd/disk0.qcow2"
 interface {
 switch "vswitch100"
 lladdr fe:e1:ba:d0:9b:d4
 }

 interface {
 switch "vswitch110"
 lladdr fe:e1:ba:d0:9b:d5
 }

 interface {
 switch "vswitch120"
 lladdr fe:e1:ba:d0:9b:d6
 }

#interface {
#switch "vswitch130"
#lladdr fe:e1:ba:d0:9b:d7 #}

#interface {
#switch "vswitch300"
#lladdr fe:e1:ba:d0:9b:d8 #}

 memory 2G
 enable
}






VM(D) Interface Question

2022-09-30 Thread Holger Glaess

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".


if i put in the vm section "interfaces 6" , this fails also.

any veb still exists and working.


Holger


switch "vswitch100" {
    # lan
    interface veb100
    enable
    }

switch "vswitch110" {
    # xbl
    interface veb110
    enable
    }

switch "vswitch120" {
    # dmz
    interface veb120
    enable
    }

switch "vswitch130" {
    # wdmz
    interface veb130
    enable
    }

switch "vswitch300" {
    # freetz
    interface veb300
    enable
    }

switch "vswitch5" {
    # um
    interface veb5
    disable
    }

switch "vswitch7" {
    # nc
    interface veb7
    disable
    }

vm "farin" {
    # interfaces 6
   owner _vmd
   disk "/home/vmd/disk0.qcow2"
    interface {
    switch "vswitch100"
    lladdr fe:e1:ba:d0:9b:d4
    }

    interface {
    switch "vswitch110"
    lladdr fe:e1:ba:d0:9b:d5
    }

    interface {
    switch "vswitch120"
    lladdr fe:e1:ba:d0:9b:d6
    }

#    interface {
#    switch "vswitch130"
#    lladdr fe:e1:ba:d0:9b:d7
#    }

#    interface {
#    switch "vswitch300"
#    lladdr fe:e1:ba:d0:9b:d8
#    }

    memory 2G
    enable
}