Here's what I did to set up NAT and started a Win10 image.
IP addresses were set manually.
My bridge9 is 10.0.2.1 and the guest OS is 10.0.2.2
Guest OS is successfully pinging the host bridge9 but cannot reach the internet.
I guess something needs to be done on the host to pass the packets. I tried with pf disabled as well.
Any ideas?
IP addresses were set manually.
Code:
ifconfig tap9 create
sysctl net.link.tap.up_on_open=1
ifconfig bridge9 create
ifconfig bridge9 addm wlan0 addm tap9
ifconfig bridge9 up
cd /root
ifconfig bridge9 inet 10.0.0.1/24
#Above sets 10.0.0.1 on bridge9. Now inside your Guest set 10.0.0.2 or something in that segment
bhyve -c 2 -m 4G -H -w \
-s 0,hostbridge \
-s 4,ahci-hd,os_disk.img \
-s 5,virtio-net,tap0 \
-s 6,hda,play=/dev/dsp1,rec=/dev/dsp0 \
-s 29,fbuf,tcp=127.0.0.1:5900,wait \
-s 30,xhci,tablet \
-s 31,lpc \
-l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
win10
My bridge9 is 10.0.2.1 and the guest OS is 10.0.2.2
Guest OS is successfully pinging the host bridge9 but cannot reach the internet.
I guess something needs to be done on the host to pass the packets. I tried with pf disabled as well.
Any ideas?