Thanks for the reply Javier. 

I was able to create a VM by specifying only network interface name in the NIC 
section. I left MAC address assignment over to the hypervisor (KVM) which 
assigns MAC address to a VM if it's not specified in the VM definition file. So 
in this case OpenNebula didn't have any knowledge of the MAC and IP address 
assigned to this VM. I am not sure whether this will impact OpenNebula's VM 
management functionality though. Any thoughts? 

Following is an example VM definition. OpenNebula version: 3.0.  

{{{
# Capacity section 
NAME = ttylinux-01
MEMORY = 128
CPU = 1

# OS and Boot section
OS = [ 
  ARCH = i686,
  BOOT = hd ]

FEATURES = [ acpi = "no" ]

# Graphics I/O   
GRAPHICS = [
  TYPE = "vnc",
  PORT = "-1",
  keymap = "en-us" ]

# Disk devices   
DISK = [ 
  IMAGE_ID = "0" ]

# Network interface
NIC = [
   BRIDGE = br0 ]
}}}


--
Shantanu

On Jan 16, 2012, at 5:05 AM, Javier Fontan wrote:

> Hello,
> 
> Even if the VM's wont get the IP's form OpenNebula the MAC address
> must be generated. Internally MAC addresses are tied to Virtual
> Network leases so a place in a Virtual Network is needed. Just add a
> class B or C network and everything should work ok.
> 
> You can also manually generate the mac addresses and you wont need the
> Virtual Network, in VM template:
> 
> NIC=[MAC="00:02:01:23:45:67", IP="10.0.0.1", BRIDGE="br0"]
> 
> But this is more cumbersome as you will need to manually generate
> different mac addresses for every interface.
> 
> Bye
> 
> On Mon, Jan 16, 2012 at 1:50 AM, Shantanu Pavgi <[email protected]> wrote:
>> 
>> I am not following how OpenNebula handles network configuration for the VMs. 
>> I am trying to create a virtual network using network config file as follows:
>> {{{
>> NAME = "Test Network"
>> TYPE = RANGED
>> BRIDGE = br0
>> PUBLIC=" yes"
>> }}}
>> 
>> In my test setup I have a DHCP server for IP address assignment. So I did 
>> not put NETWORK_ADDRESS and NETWORK_SIZE values, thinking OpenNebula doesn't 
>> need to know about it. However I got following error upon 'onvnet create' 
>> command.
>> 
>> {{{
>> [VirtualNetworkAllocate] Error allocating a new virtual network. No 
>> NETWORK_ADDRESS in template for Virtual Network.
>> }}}
>> 
>> I am not sure what values should I provide in a network definition file if 
>> IP address and MAC address assignment is not going to be handled by 
>> OpenNebula. How does OpenNebula use NETWORK_ADDRESS and NETWORK_SIZE values 
>> during VM deployment?
>> 
>> --
>> Thanks,
>> Shantanu
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> 
> 
> 
> -- 
> Javier Fontán Muiños
> Project Engineer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org | [email protected] | @OpenNebula
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to