You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Yordan Kostov <Yo...@NSOGROUP.COM> on 2021/09/20 14:02:46 UTC

lower case VM hostname

Dear all,

                Is it possible to force Linux VMs hostnames to be lower case no matter of how the user named the VM in Cloudstack GUI?
                Is there such custom option in Cloudstack and if that is not the case, is there a way to achieve that with cloud-init set-hostname module?

Best regards,
Jordan

RE: lower case VM hostname

Posted by Piotr Pisz <pi...@piszki.pl>.
Hello!

A very good question, the answer is no (but such an option in CS would be
useful).
You can disable cloud-init hostname setting and override this mechanism with
your own script.
Just get hostname from UserData, and use hostnamectl to set the correct
name.

Piotr



-----Original Message-----
From: Yordan Kostov <Yo...@NSOGROUP.COM> 
Sent: Monday, September 20, 2021 4:03 PM
To: users@cloudstack.apache.org
Subject: lower case VM hostname

Dear all,

                Is it possible to force Linux VMs hostnames to be lower case
no matter of how the user named the VM in Cloudstack GUI?
                Is there such custom option in Cloudstack and if that is not
the case, is there a way to achieve that with cloud-init set-hostname
module?

Best regards,
Jordan