Hi everybody,<br><br>I need some VMs to have a fixed IP (and of course, a fixed MAC) . I'm trying to do it this way:<br><br>1) I have created a virtual net<br>NAME = "private"<br>TYPE = RANGED<br>
BRIDGE = eth0<br>NETWORK_SIZE = 10<br>NETWORK_ADDRESS= 192.168.2.0<br><br>2) I have given the VM a defined MAC<br>NAME = vm-example<br>MEMORY = 768<br>OS = [<br> kernel = "/boot/vmlinuz-2.6.26-2-xen-686",<br>
initrd = "/boot/initrd.img-2.6.26-2-xen-686",<br> root = "sda1 ro"]<br><br>DISK = [<br> source = "/path/debian.5-0.x86.img",<br> target = "sda1",<br> readonly = "no" ]<br>
<br>NIC = [ mac = "00:16:3e:58:82:3a", network = "private" ]<br><br>The VM gets the MAC correctly, but NOT the IP, which is assigned by the DHCP server at University. I have thought about installing my own DHCP server with the IP-MAC pairs needed, but there could be some conflicts between the new server and the one @University.<br>
<br>I have checked the documentation (<a href="http://www.opennebula.org/doku.php?id=documentation:howto_net">http://www.opennebula.org/doku.php?id=documentation:howto_net</a>), but don't know how to solve it. Could anyone help me?<br>
<br>Thanks in advance.<br>