Hi,<div><br></div><div>The network interfaces are defined with the NIC attribute, not NETWORK [1].</div><div><br></div><div>Regards</div><div><br></div><div>[1] <a href="http://opennebula.org/documentation:rel3.4:template#network_section">http://opennebula.org/documentation:rel3.4:template#network_section</a><br clear="all">
--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
<br>
<br><br><div class="gmail_quote">On Thu, Jun 14, 2012 at 9:46 PM, Ronaldo Pinheiro <span dir="ltr"><<a href="mailto:ronaldopg010@gmail.com" target="_blank">ronaldopg010@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span></span>Here is the VM template im using:<br>NAME = "VM"<br>CPU = 1<br>MEMORY = 1024<br><br>OS = [<br> boot = hd,<br> arch = x86_64 ]<br><br>DISK = [<br> image_id = 0,<br> bus = virtio ]<br>
<br>NETWORK = [<br> network = "LAN",<br> bridge = "br0",<br> model = virtio ]<br><br>GRAPHICS = [<br> type = "vnc",<br> listen = "0.0.0.0"]<br><br>
Here is the command onevm show output:<br>$ onevm show 34<br>VIRTUAL MACHINE 34 INFORMATION <br>ID : 34 <br>NAME : VM <br>
STATE : ACTIVE <br>LCM_STATE : RUNNING <br>START TIME : 06/14 16:38:20 <br>END TIME : - <br>DEPLOY ID: : one-34 <br><br>VIRTUAL MACHINE MONITORING <br>
NET_TX : 0 <br>USED MEMORY : 0 <br>USED CPU : 0 <br>NET_RX : 0 <br><br>VIRTUAL MACHINE TEMPLATE <br>
CPU=1<br>DISK=[<br> BUS=virtio,<br> CLONE=YES,<br> DISK_ID=0,<br> DRIVER=qcow2,<br> IMAGE=Planeswalker,<br> IMAGE_ID=5,<br> READONLY=NO,<br> SAVE=NO,<br> SOURCE=/var/lib/one//images/b355510b41157fcc886246ac3c3e46993278e0c3,<br>
TARGET=hda,<br> TYPE=DISK ]<br>GRAPHICS=[<br> LISTEN=0.0.0.0,<br> PORT=5934,<br> TYPE=vnc ]<br>MEMORY=1024<br>NAME=VM<br>NETWORK=[<br> BRIDGE=br0,<br> MODEL=virtio,<br> NETWORK=LAN ]<br>OS=[<br> ARCH=x86_64,<br>
BOOT=hd ]<br>VMID=34<div class="HOEnZb"><div class="h5"><br><br><br><div class="gmail_quote">On Thu, Jun 14, 2012 at 1:16 PM, Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>Can you paste your VM template, and the output of onevm show?</div><div>By the way, OpenNebula has come a long way since 2.2, the latest version is 3.4</div>
<div><br></div><div>Regards<br clear="all">
--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
<br>
<br><br><div class="gmail_quote"><div><div>On Thu, Jun 14, 2012 at 4:08 PM, Ronaldo Pinheiro <span dir="ltr"><<a href="mailto:ronaldopg010@gmail.com" target="_blank">ronaldopg010@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<span>Hello,</span><div><br></div><div>I am running opennebula 2.2 in ubuntu server 11.10, which was installed through apt-get.</div><div>Everything works fine, except one thing. When i execute onevm submit, the VM goes to the host and starts normally, but as soon as it boots, there are no network interfaces. If i execute ifconfig, it shows "loopback" and "virbr0".</div>
<div>The host machine uses KVM.</div><div><br></div><div>If i use virt-manager to submit the same VM, it starts, shows an additional interface "eth0", and gets an IP address from the dhcp server.</div>
<div><br></div><div>I suppose there is an error in my opennebula configuration.</div><div>I have set oned.conf to work with kvm and i cant see any errors in the template files.</div><div>The virtual network used is set to ranged. The bridge is "br0".</div>
<div><br></div><div>I cant think of anything else. Am i missing something? </div><div>All help is greatly appreciated.</div><div>Thanks in advance,</div><div><br></div><div>Ronaldo.</div>
<br>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Ronaldo Pinheiro Gonçalves Junior<br>Mestrando - Programa de Pós-Graduação em Informática Aplicada<div>Universidade de Fortaleza - UNIFOR</div>
<div>(85) 8885-7991 / (85) 81425627 / (85) 3224-7991</div>
<br>
</font></span></blockquote></div><br></div>