I'm trying to configure OpenNebula to use the DHCP server that already exists on my network. Yes, I already know that OpenNebula manages virtual mac addresses rather than IP addresses, but that doesn't tell me how to get this working. ;)
My guests and hosts are both CentOS, so I would imagine all that needs to be done is configure contextualization so that BOOTPROTO=dhcp is dumped into /etc/sysconfig/network-scripts/ifcfg-eth0.
- How do I configure contextualization so that this happens? Do I just modify my template in a certain way? If so, how is that done?
- Once I configure my template with these new contextualization settings, how should I configure my virtual network in ONE?
It seems like this should be easy to do, as this should appear to be simpler than managing a bunch of static IPs for vms, and you would think that this is a common use case. However, googleing so far has turned up very little.
Thanks!!
Edit: My DHCP server successfully gives my vm an ip address if I set BOOTPROTO=dhcp and DHCP_HOSTNAME=foo manually and restart networking on my vm. Which is fine, I would like to be able to set the hostnames of the vms I spin up too.
Now it's just a matter of determining how to make ONE do these things automatically/via the web interface or CLI tools. Also ONE still lists the IP address of the original lease, rather than the IP that DHCP gave my VM. It would be nice to get that issue fixed too.