I want to change the hostname for a VM, but struggle to do it permanently. Already changed it via /etc/hosts and /etc/hostname, but did't work out. Does anyone have an advice? Thanks in advance.

  • 1
    do a reboot, then try again Nov 21, 2017 at 13:01

1 Answer 1


Since SLES 12 should be running systemd, use:

hostnamectl set-hostname <hostname>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .