Configuring Networking in OpenBSD HVM

just noticed your gw/netvm is 10.138.7.37 and your qube ip is 10.137.0.35…you are using a disposable qube for netvm?

you will need additional routing to make it work since qube+netvm/gw subnets are diff but they are ‘directly’ connected.

use this in /etc/hostname.xnf0:

inet 10.137.0.35 255.255.255.0
!route add -iface -cloning 10.138.7.37 10.137.0.35

and in /etc/mygate:

10.138.7.37

the !route in hostname.xnf0 makes sure bsd knows how to reach the default gw since its separate subnet

2 Likes