Dear All,<br><br>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? <br>
<br>Shall I setup dhcp server also or OpenNebula will take care of setting network?<br>Shall I define contextualization for this?<br><br>-------------------Network template-----------------------<br>
NAME = ”VNET"<br>
TYPE = RANGED<br>
BRIDGE = virbr0<br>
NETWORK_SIZE = 10<br>
NETWORK_ADDRESS = 192.168.1.0<br>-----VM Template---------------------<br><br>NAME = "vm-example"<br><br>CPU = 0.4<br>MEMORY = 512<br><br># --- kernel & boot device ---<br><br>OS = [<br>boot = hd ]<br><br>
# --- 2 disks ---<br><br>DISK = [type = disk,<br> source = /srv/cloud/one/test/vdisk.img,<br> target = sda,<br> readonly = no]<br><br>DISK = [<br> type = swap,<br> target = sda,<br> size = 1024]<br><br>NIC = [NETWORK="VNET"]<br>
<br><br>----------oned.log------------------------<br>Sun Aug 22 00:57:02 2010 [DiM][D]: Allocating a new VM<br>Sun Aug 22 00:57:02 2010 [VNM][E]: Error getting Virtual Network nid: -1<br>Sun Aug 22 00:57:02 2010 [ONE][E]: Could not get network lease for VM<br>
Sun Aug 22 00:57:02 2010 [ReM][E]: Error inserting VM in the database, check oned.log<br><br><br><br>Thanks and Regards<br><br>