Ubuntu Renaming a Cloned Virtual Machine

From DFWLPiki
Revision as of 12:46, 14 June 2021 by Jhorne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Commands to rename/re-id a cloned ubuntu virtual machine: (replace "newhostname" with the proper new system hostname)

sudo su -
rm /etc/machine-id
systemd-machine-id-setup
echo newhostname > /etc/hostname
reboot