Daily output empty

2022-10-01 Thread Steven Shockley
I noticed that for the past couple of days I haven't been getting the 
{daily, weekly, monthly} output from my 8 OpenBSD machines.  I am 
getting emails for other cron jobs.


If I run /bin/sh /etc/daily, I get no output (or email).  If I run 
/bin/sh -x /etc/daily, I get what looks like expected output (commands 
plus their output) on console and via email.  The contents of 
/var/log/*.out are zero bytes.  I have plenty of disk space on all 
partitions.


Running /usr/libexec/security seems to work as expected when there are 
changes.


If I add an echo to daily.local it emails the sysctl, uptime, and 
daily.local parts.


Am I going nuts here, or should I still be getting daily outputs?



Re: Wireless interface iwn0 becomes detached

2022-10-01 Thread Muhammad Muntaza
On Fri, 30 Sep 2022 at 13.29  wrote:

> I am seeing a periodic and unexplained loss of wireless connection on my
> Thinkpad.
>
> According to ifconfig iwn0, after a period (roughly 30 mins) the
> DHCP-obtained
> IP is lost (status: no network, nwid ""), requiring a sh /etc/netstart
> iwn0 to
> get a new lease, or less frequently the interface simply disappears
> altogether.
>
> Ping your gateway every minute,  add to your cron:

*  *  *  *  *  /usr/bin/ping -c 3  192.0.2.1

>
>


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
}