Hey everyone! I am trying to set up a Linux VM using bhyve for the purpose of running docker on my FreeBSD laptop (which is essential to have due to my development workflow). However when setting up a Linux VM using either Debian or Alpine images, I am unable to get the network working properly.
I am following the setup instructions for vm-bhyve on GitHub.
I create a network switch and attach the wlan device of my laptop to it like so:
Then I am using the default template for creating a debian vm, so nothing should be going wrong there.
Checking with
clearly shows that the VM is attached to the switch (at least I presume it shows that):
However I am unable to obtain a dhcp lease or ping anywhere to the outside world from the linux guest inside the vm. Even though packages are clearly going in and out, also during the attempt to get a dhcp lease.
Since I have no idea what could be going wrong here, any help would be very much appreciated!
I am following the setup instructions for vm-bhyve on GitHub.
I create a network switch and attach the wlan device of my laptop to it like so:
Code:
vm switch create public
vm switch add public wlan0
Then I am using the default template for creating a debian vm, so nothing should be going wrong there.
Checking with
Code:
vm switch info public
Code:
local: _netgraph,: bad variable name
------------------------
Virtual Switch: public
------------------------
type: standard
ident: vm-public
vlan: -
physical-ports: wlan0
bytes-in: 705640 (689.101K)
bytes-out: 10106678 (9.638M)
virtual-port
device: tap0
vm: debian-docker
However I am unable to obtain a dhcp lease or ping anywhere to the outside world from the linux guest inside the vm. Even though packages are clearly going in and out, also during the attempt to get a dhcp lease.
Since I have no idea what could be going wrong here, any help would be very much appreciated!