I created a clone of my Home Assistant installation on Proxmox to use as a test installation with the current database.
However, this means that the clone has the same IP address as the other installation, which needs to be changed.
In Proxmox, set the network card to “Not Connected” and change the IP address via the command line interface (CLI).
To accomplish this without accessing the Home Assistant user interface, call up the HAOS command line. Simply entering “login” will take you to a full shell. There, we can change the IP address with “nmcli.”
nmcli is a command-line tool for changing network configurations.
Use “nmcli connection show” to list your connections.
Enter “nmcli con edit ‘Your connection name'” to enter edit mode for that connection. In my case, this was “Supervisor enp0s18.”
Then, enter nmcli > set ipv4.addresses 192.168.1.10/24. Do you also want to set “ipv4.method” to “manual”? [yes]:
Set the DNS server and local gateway here as well.
nmcli> set ipv4.dns 192.168.1.254
# nmcli> set ipv4.gateway 192.168.1.254
# nmcli> save
# nmcli> quit
Next, restart the HAOS VM and enjoy the results.