This may be related to running 18.04 LTS as a virtual machine (Host is Win 2016 DC) but I can't figure it out how. I have tried every method of I know of to change the hostname but it always reverts to the hostname I entered when I built the machine on reboot. I have tried the following: hostnamectl set-hostname xxx. Editing hostname directly. Adding --static to hostnamectl. Editing hosts file and