[one-users] Assigning fixed IP's to VM's

cmasmas cmasmas cmasmas10 at gmail.com
Fri Oct 2 09:04:56 PDT 2009


Hi everybody,

I need some VMs to have a fixed IP (and of course, a fixed MAC) . I'm trying
to do it this way:

1) I have created a virtual net
NAME           = "private"
TYPE           = RANGED
BRIDGE         = eth0
NETWORK_SIZE   = 10
NETWORK_ADDRESS= 192.168.2.0

2) I have given the VM a defined MAC
NAME   = vm-example
MEMORY = 768
OS     = [
  kernel   = "/boot/vmlinuz-2.6.26-2-xen-686",
  initrd   = "/boot/initrd.img-2.6.26-2-xen-686",
  root     = "sda1 ro"]

DISK   = [
  source   = "/path/debian.5-0.x86.img",
  target   = "sda1",
  readonly = "no" ]

NIC    = [ mac  = "00:16:3e:58:82:3a", network = "private" ]

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.

I have checked the documentation (
http://www.opennebula.org/doku.php?id=documentation:howto_net), but don't
know how to solve it. Could anyone help me?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20091002/3e5491ed/attachment-0001.htm>


More information about the Users mailing list