Hi all,<div><br></div><div>Trying to run OpenNebula for the first time, apologies for basic questions in this mail.</div><div>I spent all the day looking at this problem without any success... I think I have a problem in my network interface configuration but I am not sure...</div>
<div>So, I try to run the ttylinux example without any success. I am able to create the new VM but I can not ping nor SSH it.</div><div>Can someone help me solving this issue?</div><div>Thanks a lot!</div><div><br></div><div>
Here are all the details:</div><div><br></div><div>My environment : libvirt/KVM on Debian 5 (In fact the Debian Node runs on top of virtual box, I hope that it is not a problem).</div><div>The front is running on 192.168.2.60, I only have one node on 192.168.2.61.</div>
<div>On 192.168.2.61, I manually configured a bridge in /etc/network/interfaces like this (I removed all the eth0 related parts...)</div><div><div>auto br0</div><div>iface br0 inet static</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>address 192.168.2.61</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>netmask 255.255.255.0</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>network 192.68.2.0</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>broadcast 192.168.2.255</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>gateway 192.168.2.1</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>bridge_ports eth0</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>bridge_stp off</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>#bridge_maxwait 0</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>bridge_fd 9</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>bridge_maxage 12</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>bridge_hello 2</div></div><div><br></div><div>Here are my TTYLinux configuration files, I put the bridge value to the one defined just before :</div><div><br>
</div><div><div>debian-01:~/one-templates$ more <a href="http://small_network.net">small_network.net</a> </div><div>NAME = "Small network"</div><div>TYPE = FIXED</div><div><br></div><div>#Now we'll use the cluster private network (physical)</div>
<div>BRIDGE = br0</div><div>LEASES = [ IP="192.168.2.71"]</div><div>#LEASES = [ IP="192.168.0.6"]</div><div>#LEASES = [ IP="192.168.0.7"]</div></div><div><br></div><div>#######</div><div><br>
</div><div><div>debian-01:~/one-templates$ more ttylinux.one </div><div>NAME = ttylinux</div><div>CPU = 0.1</div><div>MEMORY = 64</div><div><br></div><div>DISK = [</div><div> source = "/srv/cloud/one/one-templates/ttylinux.img",</div>
<div> target = "hda",</div><div> readonly = "no" ]</div><div><br></div><div>NIC = [ NETWORK = "Small network" ]</div><div><br></div><div>FEATURES=[ acpi="no" ]</div></div><div>
<br></div><div>##########</div><div><br></div><div><br></div><div><br></div><div>##############################</div><div>THE ONE* COMMANDS RESULTS</div><div><meta charset="utf-8"><div>##############################</div>
</div><div><br></div><div><div><div>debian-01:~/one-templates$ onevm show 9</div><div>VIRTUAL MACHINE 9 INFORMATION </div><div>ID : 9 </div><div>
NAME : ttylinux </div><div>STATE : ACTIVE </div><div>LCM_STATE : RUNNING </div><div>START TIME : 12/14 18:47:11 </div><div>END TIME : - </div>
<div>DEPLOY ID: : one-9 </div><div><br></div><div>VIRTUAL MACHINE MONITORING </div><div>NET_TX : 0 </div><div>NET_RX : 0 </div>
<div>USED MEMORY : 0 </div><div>USED CPU : 0 </div><div><br></div><div>VIRTUAL MACHINE TEMPLATE </div><div>CPU=0.1</div><div>
DISK=[</div><div> DISK_ID=0,</div><div> READONLY=no,</div><div> SOURCE=/srv/cloud/one/one-templates/ttylinux.img,</div><div> TARGET=hda ]</div><div>FEATURES=[</div><div> ACPI=no ]</div><div>MEMORY=64</div><div>NAME=ttylinux</div>
<div>NIC=[</div><div> BRIDGE=br0,</div><div> IP=192.168.2.71,</div><div> MAC=02:00:c0:a8:02:47,</div><div> NETWORK=Small network,</div><div> NETWORK_ID=1 ]</div><div>VMID=9</div></div></div><div><br></div><div>#######</div>
<div><br></div><div><div>debian-01:~/one-templates$ onehost list</div><div> ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT</div><div> 0 192.168.2.61 default 1 100 99 90 377.2M 349.1M on</div>
<div><br></div><div>##</div><div>debian-01:~/one-templates$ onehost show 0</div><div>HOST 0 INFORMATION </div><div>ID : 0 </div>
<div>NAME : 192.168.2.61 </div><div>CLUSTER : default </div><div>STATE : MONITORED </div><div>IM_MAD : im_kvm </div><div>
VM_MAD : vmm_kvm </div><div>TM_MAD : tm_nfs </div><div><br></div><div>HOST SHARES </div><div>MAX MEM : 386252 </div>
<div>USED MEM (REAL) : 62020 </div><div>USED MEM (ALLOCATED) : 65536 </div><div>MAX CPU : 100 </div><div>USED CPU (REAL) : 1 </div><div>
USED CPU (ALLOCATED) : 10 </div><div>RUNNING VMS : 1 </div><div><br></div><div>MONITORING INFORMATION </div><div>ARCH=i686</div>
<div>CPUSPEED=2984</div><div>FREECPU=98.3</div><div>FREEMEMORY=357524</div><div>HOSTNAME=debian-node01</div><div>HYPERVISOR=kvm</div><div>MODELNAME=Intel(R) Pentium(R) 4 CPU 3.00GHz</div><div>NETRX=0</div><div>NETTX=0</div>
<div>TOTALCPU=100</div><div>TOTALMEMORY=386252</div><div>USEDCPU=1.7</div><div>USEDMEMORY=62020</div></div><div><br></div><div>#########</div><div><br></div><div><div>debian-01:~/one-templates$ onevnet list</div><div> ID USER NAME TYPE BRIDGE P #LEASES</div>
<div> 1 username Small network Fixed br0 N 1</div><div>##</div><div>debian-01:~/one-templates$ onevnet show 1</div><div>VIRTUAL NETWORK 1 INFORMATION </div><div>
ID: : 1 </div><div>UID: : 0 </div><div>PUBLIC : N </div><div><br></div><div>VIRTUAL NETWORK TEMPLATE </div>
<div>BRIDGE=br0</div><div>LEASES=[ IP=192.168.2.71 ]</div><div>NAME=Small network</div><div>TYPE=FIXED</div><div><br></div><div>LEASES INFORMATION </div><div>LEASE=[ IP=192.168.2.71, MAC=02:00:c0:a8:02:47, USED=1, VID=9 ]</div>
</div><div><br></div><div>#######################</div><div>THE DEPLOYMENT FILE:</div><div><meta charset="utf-8"><div>#######################</div></div><div><br></div><div><div>debian-node01:/srv/cloud/one/var/9# more deployment.0 </div>
<div><domain type='kvm'></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><name>one-9</name></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><memory>65536</memory></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><os></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><type arch='i686'>hvm</type></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><boot dev='hd'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span></os></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><devices></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><emulator>/usr/bin/kvm</emulator></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><disk type='file' device='disk'></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><source file='/srv/cloud/one/var//9/images/disk.0'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><target dev='hda'/></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><driver name='qemu' type='raw'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span></disk></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><interface type='bridge'></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><source bridge='br0'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><mac address='02:00:c0:a8:02:47'/></div><div><span class="Apple-tab-span" style="white-space:pre"> </span></interface></div><div><span class="Apple-tab-span" style="white-space:pre"> </span></devices></div>
<div></domain></div></div><div><br></div><div><meta charset="utf-8"><div>#######################</div><div>THE VM LOG FILE</div><div><div>#######################</div></div></div><div><br></div><div><div>deployment.0 images transfer.0.prolog vm.log</div>
<div>debian-node01:/srv/cloud/one/var/9# more vm.log </div><div>Tue Dec 14 18:47:14 2010 [DiM][I]: New VM state is ACTIVE.</div><div>Tue Dec 14 18:47:14 2010 [LCM][I]: New VM state is PROLOG.</div><div>Tue Dec 14 18:47:14 2010 [VM][I]: Virtual Machine has no context</div>
<div>Tue Dec 14 18:47:17 2010 [TM][I]: tm_clone.sh: debian-01:/srv/cloud/one/one-templates/ttylinux.img 192.1</div><div>68.2.61:/srv/cloud/one/var//9/images/disk.0</div><div>Tue Dec 14 18:47:17 2010 [TM][I]: tm_clone.sh: DST: /srv/cloud/one/var//9/images/disk.0</div>
<div>Tue Dec 14 18:47:17 2010 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one/var//9/images</div><div>Tue Dec 14 18:47:17 2010 [TM][I]: tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//9/images".</div>
<div>Tue Dec 14 18:47:17 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//9/images".</div><div>Tue Dec 14 18:47:17 2010 [TM][I]: tm_clone.sh: Cloning /srv/cloud/one/one-templates/ttylinux.img</div>
<div>Tue Dec 14 18:47:17 2010 [TM][I]: tm_clone.sh: Executed "cp -r /srv/cloud/one/one-templates/ttylinux.img</div><div> /srv/cloud/one/var//9/images/disk.0".</div><div>Tue Dec 14 18:47:17 2010 [TM][I]: tm_clone.sh: Executed "chmod a+rw /srv/cloud/one/var//9/images/disk.0"</div>
<div>.</div><div>Tue Dec 14 18:47:17 2010 [LCM][I]: New VM state is BOOT</div><div>Tue Dec 14 18:47:17 2010 [VMM][I]: Generating deployment file: /srv/cloud/one/var/9/deployment.0</div><div>Tue Dec 14 18:47:19 2010 [LCM][I]: New VM state is RUNNING</div>
<div>Tue Dec 14 18:57:29 2010 [VMM][D]: Monitor Information:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>CPU : -1</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Memory: 65536</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>Net_TX: -1</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Net_RX: -1</div></div><div><br></div><div><br clear="all"><br>-- <br><span style="font-family:Helvetica;font-size:12px"><div>
Christophe Hamerling </div><div>R&D Engineer & Project Leader</div><div>Petals Link - SOA open-source company</div><div>OW2 PEtALS SOA Suite Comitter</div><div>Skype : christophe.hamerling</div><div>Jabber : <a href="mailto:chamerling@jabber.org" target="_blank">chamerling@jabber.org</a></div>
<div>Blog : <a href="http://chamerling.org" target="_blank">http://chamerling.org</a></div></span><br>
</div>