[one-users] Trouble setting VM's hostname
biro lehel
lehel.biro at yahoo.com
Tue Apr 17 01:56:10 PDT 2012
Hello again,
I currently have an init script which I copy to the newly instantiated VM using the template's contextualization (FILES=.../init.sh). This script contains (among others) the following section:
if [ -n "$HOSTNAME" ]; then
hostname $HOSTNAME
HOSTNAME is also a contextualized parameter, as I set HOSTNAME=MyHostName also in the contextualization section of my VM's template.
I would expect this to set my hostname as MyHostName on the instantiated VM. However, the hostname remains the same (meaning it still remains the same hostname as it is in my image that the respective template uses).
I'm using openSUSE 11.4 and OpenNebula 3.2.0.
What are the other ways to try to set the hostname in my VM's? Since more VM's will use the same image, I cannot simply set it in my image. Is anything need to be done regarding the hostname in the respective image?
Thanks,
Lehel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120417/ef454e8e/attachment.htm>
More information about the Users
mailing list