[one-users] Network provisioning

Javier Fontan jfontan at gmail.com
Tue Aug 24 06:56:18 PDT 2010


Hello,

The error you have is that you have not created a network called
"VNET". Check http://opennebula.org/documentation:rel1.4:vgg and
create a network with the desired name before submitting a VM.

Then there are several ways to configure the IP inside the VM, these are:

  a) DHCP server
  b) Contextualization scripts that set the IP using the MAC address:
http://opennebula.org/documentation:rel1.4:vgg
  c) Contextualization image with IP network configuration values:
http://opennebula.org/documentation:rel1.4:cong and
http://opennebula.org/documentation:rel1.4:vmg
  d) Fixed configuration inside VM image

You have to pick the one that suits your needs. For us, the most
flexible way is option "c".

Bye


On Sat, Aug 21, 2010 at 10:34 AM, Mostafa Sheikhalishahi
<mostafa.alishahi at gmail.com> wrote:
> Dear All,
>
> I want to start a Virtual Machine with network in a very simple setup. I
> have defined a network template as below and put reference to it in VM
> template, but it is not working. I have some basic questions about how's the
> procedure?
>
> Shall I setup dhcp server also or OpenNebula will take care of setting
> network?
> Shall I define contextualization for this?
>
> -------------------Network template-----------------------
> NAME = ”VNET"
> TYPE = RANGED
> BRIDGE = virbr0
> NETWORK_SIZE = 10
> NETWORK_ADDRESS = 192.168.1.0
> -----VM Template---------------------
>
> NAME = "vm-example"
>
> CPU    = 0.4
> MEMORY = 512
>
> # --- kernel & boot device ---
>
> OS = [
> boot = hd ]
>
> # --- 2 disks ---
>
> DISK = [type = disk,
>   source   = /srv/cloud/one/test/vdisk.img,
>   target = sda,
>   readonly = no]
>
> DISK = [
>   type = swap,
>   target   = sda,
>   size = 1024]
>
> NIC = [NETWORK="VNET"]
>
>
> ----------oned.log------------------------
> Sun Aug 22 00:57:02 2010 [DiM][D]: Allocating a new VM
> Sun Aug 22 00:57:02 2010 [VNM][E]: Error getting Virtual Network nid: -1
> Sun Aug 22 00:57:02 2010 [ONE][E]: Could not get network lease for VM
> Sun Aug 22 00:57:02 2010 [ReM][E]: Error inserting VM in the database, check
> oned.log
>
>
>
> Thanks and Regards
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org


More information about the Users mailing list