I am trying to get archlinux running with bhyve using vm-bhyve. I followed a mix of the quick start guide here and NAT instructions here. Then in arch I just set a manual ip of 192.168.8.2, but not internet connection still in my gues archlinux system.
I also keep seeing this error whenever running any related to `vm` commands or `netif`
.
Any help would be appreciated.
Code:
# vm conf file:
loader="grub"
cpu=4
memory=8192M
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
grub_install0="linux /arch/boot/x86_64/vmlinuz archisobasedir=arch archisolabel=ARCH_202002 ro"
grub_install1="initrd /arch/boot/x86_64/archiso.img"
graphics="yes"
Code:
# /etc/rc.conf
vm_enable="YES"
vm_dir="zfs:zroot/vm"
gateway_enable="yes"
pf_enable="yes"
ifconfig_vm-public="DHCP" # <- I didn't add this line
Code:
# /etc/pf.conf
nat on wlan0 from {192.168.8.0/24} to any -> (wlan0)
Code:
➜ ~ sudo vm switch list
NAME TYPE IFACE ADDRESS PRIVATE MTU VLAN PORTS
public standard vm-public 192.168.8.1/24 no - - -
I also keep seeing this error whenever running any related to `vm` commands or `netif`
Code:
/etc/rc.conf: ifconfig_vm-public=DHCP: not found
Any help would be appreciated.