[one-users] Assigning fixed IP's to VM's
Tino Vazquez
tinova at fdi.ucm.es
Fri Oct 2 09:18:41 PDT 2009
Hi there,
Take a look at the vmcontext.sh script, described in the last section
of the Managing Virtual Networks [1] guide.
Regards,
-Tino
[1] http://opennebula.org/doku.php?id=documentation:rel1.4:vgg
--
Constantino Vázquez, Grid Technology Engineer/Researcher:
http://www.dsa-research.org/tinova
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
On Fri, Oct 2, 2009 at 6:04 PM, cmasmas cmasmas <cmasmas10 at gmail.com> wrote:
> 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.
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
More information about the Users
mailing list