1

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 – Ipor Sircer Nov 21 '17 at 13:01
2

Since SLES 12 should be running systemd, use:

hostnamectl set-hostname <hostname>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.