If you find that Home Assistant can not obtain an IPv4 address after you first install it you likely need to set your DNS server.
Note: if you have access to your Home Assistant frontend website then you should set your DNS server here: Settings → System → Network → IPv4 for your adaptor → DNS Server.
If you do not have access to your HA website then connect a monitor and keyboard to your server and type the following:
login
Enter
nmcli con
Enter
You will get a reply containing something like: Supervisor enp1s0
, yours will likely be slightly different. Then type the following:
nmcli con edit "Supervisor enp1s0"
Enter making sure to use the reply you actually got from the last step.
Then if the following command:
print ivp4
Enter returns no DNS server IP addresses you need to do the following:
remove ipv4.dns
Enter
set ipv4.dns 9.9.9.9
Enter You can also use 1.1.1.1
or 8.8.8.8
or your preferred DNS server if you know it.
print ivp4
Enter should now show a DNS server set to 9.9.9.9
All you need to do now is:
save
Enter
exit
Enter
host restart
Enter
More helpful topics: The Home Assistant Cookbook - Index