Monthly Archives: October 2011

A Note on Installing FreeBSD on KVM + DHCP

If you install FreeBSD on KVM, you encounter a problem where you are able to install it over the network, but not be able to get it to obtain an IP address after the initial reboot.

The solution is to add the following in /etc/rc.conf:

synchronous_dhclient=“YES”

And restart the network with:

/etc/rc.d/netif restart

Restart your machine to ensure that it is able to obtain an IP address after boot.

Explanation: By default, the dhcpclient will start in the background concurrently with init startup. With this option, the remaining startup options will wait until the client is able to obtain an IP address successfully:

Source