Assigning the name is part of the contextualization, it would depend on the version you are running, but assumign it is the last one, you can refer to this link: http://docs.opennebula.org/4.8/user/virtual_machine_setup/cong.html As you will see there, the hostname is assigned through the hostname variable on the context like this:CONTEXT = [ HOSTNAME="$name" ] Let me know if it works for you :) Cheers! > Date: Tue, 19 Aug 2014 11:51:58 +0200 > From: [email protected] > To: [email protected] > Subject: [one-users] Hostname missing from context > > Hi, > > When I create a VM with OpenNebula the VM does not get the correct > hostname. > > I can't seem to figure out why, but it is missing from my context > settings. When I look in context.sh I see: > > # Context variables generated by OpenNebula > DISK_ID='1' > ETH0_DNS='8.8.8.8 ' > ETH0_GATEWAY='192.168.3.1' > ETH0_IP='192.168.3.202' > ETH0_MAC='02:00:c0:a8:03:ca' > ETH0_MASK='255.255.255.0' > ETH0_NETWORK='192.168.3.0' > NETWORK='YES' > SSH_PUBLIC_KEY='ssh-rsa [...] sander@gallumbits > ' > TARGET='hda' > > I expected that OpenNebula would add the vm-name as hostname. Am I > wrong? > > Greets, > > Sander > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
