[one-users] BOOTPROTO, DHCP_HOSTNAME, and vm IPs in Sunstone

kerryhall . kerryhall at gmail.com
Fri Sep 5 15:23:57 PDT 2014


Hi folks,

I have a small ONE cluster that I am currently setting up on 4.8. I have a
ethernet network model, and I have added the following line to my template:

SET_HOSTNAME="$NAME.mydomain.int"

So far so good, but I need to be able to do the following three things:
1. set "BOOTPROTO=dhcp" in /etc/sysconfig/network-scripts/ifcfg-eth0 on new
vms
2. set "DHCP_HOSTNAME="$NAME.mydomain.int" on new vms
3. set the "IP" field in sunstone to vm's IP address provided by DHCP

How do I accomplish these items? I was thinking run a bash script on vm
startup for items 1 and 2, unless there is a builtin ONE way to do this,
but what about item 3? Is there just a straight up DHCP networking model I
can use to make this easier? Does anyone currently use ONE with DHCP?

Thanks!!
Kerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140905/b0d774f9/attachment.htm>


More information about the Users mailing list