Hello, friends.
I was trying to create a openbsd hvm and even got succeded in doing so. But I somehow did broke its connectivity ( I was never able to access internet from this hvm). I think I set up networking in wrong way.
My method was-
I downloaded Install67.iso from official OpenBSD website.
Then I created and started an empty standalone hvm qube with this iso.
Followed Installation and completed it. I tried to manually setup network interfaces during install, but had no idea how to do it in proper way.
Openbsd is able to start and I can login and access terminal in it.
Okay, so I tried a reinstall.
Installation details-
which interface you wish to configure- xnf0 vlan0
I configured only xnf0 with following-
IPV4 address for xnf0? 10.137.0.35
Netmask? 255.255.255.0
IPV6 address? none
Default IPV4 route? 10.137.0.35
The details on basic tab of settings were
IP address- 10.137.0.35
netmask- 255.255.255.255
gateway- 10.138.7.37
Sorry as I am newbie to OpenBSD but I have given info what was asked during installation and what I provided. Gateway was not asked during install and Can these settings be modified after install. I cannot find a good documentation about it. Either way @unman can you suggest me if what should I have provided in these settings. Are those should be-
IPV4 address 10.137.0.35
netmask 255.255.255.255
IPV6 none
Default IPV4 10.137.0.35
Although I gave DNS address from basic tab itself.
Where to put gateway.
Qubes provided gateway to OpenBSD hvm is 10.138.7.37
One last thing do I have to configure xnf0 or vlan0. My understanding about it is that I have to configure only xnf0.
I understand that this is not OpenBSD forum but there is a documentation on Qubes website about installing openbsd as hvm and that really far away from how I installed it. I cannot understand that doc page. Doesn’t it need an update for current situations.
/etc/hostname.xnf0 tells inet 10.137.0.35 netmask 0*ffffff00
when I try vi /etc/mygate it shows empty file. When I tried to put 10.138.7.37 there, I was unable to do same as it was readonly even when I was logged in as root. Then I tried cat /etc/mygate it shows file not exist.
Then I tried -