Hello, I have installed OpenBSD as vm. It works perfectly. I have some problem with the virtual nic. It only works in bridge bode. I'd like to use use it in nat mode and internal network (I mean a second nic).
I set the nic with NAT I boot openbsd it seems does not work. I mean none packets goes out of the vm. If run tcpdump on freebsd I can't see any packets. I ping on OpenBSD the gateway but reply something like "host is down". If I ping google "no route to host".
The vir interface is configure as static ip (192.168.0.5) of the lan of the gateway (192.168.0.1). Freebsd ip is 192.168.0.6.
On freebsd 13.1 I installed pf, then I tried to disable it but obviously the problem persist because there isn't any traffic.
Virtualbox is installed from packages and not ports. The freebsd is upgraded. Packages are upgraded.
on /etc/rc.conf I have
on /boot/loader.conf I have
My user is in the vboxusers group.
The file /dev/vboxnetctl is 0660 and root:vboxusers and I have the same permissions on /etc/devfs.conf
Also I have an other problem if I create a virtualnet. I click on "add" button to add a new vnet.. and it works. Vbox add a vnet named vboxnet01 with class 192.168.56.1/24 but if I change the class in 192.168.1.1/24 does not work and I receive E_ACCESSDENIED (0x80070005) error. I checked the following file log ~/.config/VirtualBox/VBoxSVC.log and I found the following two lines (copied by hand):
I tried to run /usr/local/lib/virtualbox/VBoxNetAdpCtl as user and as root in the following way:
and I have a:
(even if I'm root). But it works as user or as root like this:
Well. Just to summarize the problems are two:
1) NAT does not work
2) I can't modify any virtual network, just add.
Thanks very much for any help.
I set the nic with NAT I boot openbsd it seems does not work. I mean none packets goes out of the vm. If run tcpdump on freebsd I can't see any packets. I ping on OpenBSD the gateway but reply something like "host is down". If I ping google "no route to host".
The vir interface is configure as static ip (192.168.0.5) of the lan of the gateway (192.168.0.1). Freebsd ip is 192.168.0.6.
On freebsd 13.1 I installed pf, then I tried to disable it but obviously the problem persist because there isn't any traffic.
Virtualbox is installed from packages and not ports. The freebsd is upgraded. Packages are upgraded.
on /etc/rc.conf I have
Code:
vboxnet_enable="YES"
Code:
vboxdrv_load="YES"
My user is in the vboxusers group.
The file /dev/vboxnetctl is 0660 and root:vboxusers and I have the same permissions on /etc/devfs.conf
Also I have an other problem if I create a virtualnet. I click on "add" button to add a new vnet.. and it works. Vbox add a vnet named vboxnet01 with class 192.168.56.1/24 but if I change the class in 192.168.1.1/24 does not work and I receive E_ACCESSDENIED (0x80070005) error. I checked the following file log ~/.config/VirtualBox/VBoxSVC.log and I found the following two lines (copied by hand):
Bash:
NetIfAdpCtl: failed to create process for /usr/local/lib/virtualbox/VBoxNetAdpCtl: iStats=38 enmReason=1
Failed to EnableStaticIpConfig with rc=VERR_ACCESS_DENIED
I tried to run /usr/local/lib/virtualbox/VBoxNetAdpCtl as user and as root in the following way:
Code:
# ./VBoxNetAdpCtl vboxnet8 192.168.2.1 netmask 255.255.255.0
Code:
Permission denied
Code:
#./VBoxNetAdpCtl vboxnet6 add
Well. Just to summarize the problems are two:
1) NAT does not work
2) I can't modify any virtual network, just add.
Thanks very much for any help.