Hello, I have a question. I would like to run a virtual machine in bhyve HomeAssistant OS.
However, I would like this virtual machine to be on the same subnet as the LAN network (hq0).
I used the following solution, but something is not working. The DHCP server is dnsmasq (the DHCP interface is set only to hq0):
I added to the vm configuration:
Unfortunately, after restarting the VM, it does not want to retrieve an IP address from the hq0 subnet.
Has anyone done something similar and can suggest how to fix it?
Thanks
P.S.
I have manually set the addressing in the VM to use the hq0 subnet and I can ping the gateway and the internet, but I cannot ping this host from the internal hq0 network...
It seems that DHCP is not working for the virtual machine, and you are unable to retrieve an IP address.
However, I would like this virtual machine to be on the same subnet as the LAN network (hq0).
I used the following solution, but something is not working. The DHCP server is dnsmasq (the DHCP interface is set only to hq0):
Bash:
#vm switch create homebr
#vm switch add homebr hq0
#vm switch add homebr tap1 (HomeAssistant virtual machine interface)
I added to the vm configuration:
Code:
network0_type="virtio-net"
network0_switch="homebr"
Unfortunately, after restarting the VM, it does not want to retrieve an IP address from the hq0 subnet.
Has anyone done something similar and can suggest how to fix it?
Thanks
P.S.
I have manually set the addressing in the VM to use the hq0 subnet and I can ping the gateway and the internet, but I cannot ping this host from the internal hq0 network...
Code:
VM: 192.168.33.126
GW: 192.168.33.1
LAP: 192.168.33.105
ping VM > GW OK
ping GW > VM OK
ping VM > INTERNET OK
ping LAP > INTERNET OK
ping LAP > GW OK
ping VM > LAP NO RESPONSE
ping LAP > VM NO RESPONSE ;(
It seems that DHCP is not working for the virtual machine, and you are unable to retrieve an IP address.