Hi,<br><br>Is your VM contextualized? You can find more about the IP configuration here [1]<br><br>Regards.<br><br>[1] <a href="http://opennebula.org/documentation:rel2.2:cong">http://opennebula.org/documentation:rel2.2:cong</a><br>

<br clear="all"><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>

<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>


<br><br><div class="gmail_quote">On Wed, Jun 1, 2011 at 12:23 PM, Adnan Pasic <span dir="ltr"><<a href="mailto:pasic@informatik.uni-wuerzburg.de">pasic@informatik.uni-wuerzburg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi guys,<br>
I have built a little cloud with a front-end and two nodes. Everything is working well, even my own debian-VM is running and working without any flaws. I only have one problem - the VM doesn't get the IP it leased. That's why I can't normally ssh into the VM, but first have to enter it via VNC, perform a ifconfig to see what IP it got, and then I can ssh with this IP address. Here are my settings:<br>


<br>
Network template<br>
------------------------<br>
NAME = "Small network"<br>
TYPE = FIXED<br>
<br>
#Now we'll use the cluster private network (physical)<br>
BRIDGE = virbr0<br>
LEASES = [IP = 192.168.0.5]<br>
LEASES = [IP = 192.168.0.6]<br>
LEASES = [IP = 192.168.0.7]<br>
LEASES = [IP = 192.168.0.8]<br>
LEASES = [IP = 192.168.0.9]<br>
LEASES = [IP = 192.168.0.10]<br>
LEASES = [IP = 192.168.0.11]<br>
LEASES = [IP = 192.168.0.12]<br>
<br>
GATEWAY = 192.168.0.1<br>
<br>
<br>
ifconfig on the cluster where the VM is running<br>
--------------------------------------------------<br>
eth0      Link encap:Ethernet  Hardware Adresse 00:19:99:03:b0:3e<br>
          inet Adresse:192.168.0.3  Bcast:192.168.0.255  Maske:255.255.255.0<br>
          inet6-Adresse: fe80::219:99ff:fe03:b03e/64 Gültigkeitsbereich:Verbindung<br>
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1<br>
          RX packets:1310926 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:926659 errors:0 dropped:0 overruns:0 carrier:0<br>
          Kollisionen:0 Sendewarteschlangenlänge:1000<br>
          RX bytes:915804031 (915.8 MB)  TX bytes:875825917 (875.8 MB)<br>
          Interrupt:17<br>
<br>
lo        Link encap:Lokale Schleife<br>
          inet Adresse:127.0.0.1  Maske:255.0.0.0<br>
          inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine<br>
          UP LOOPBACK RUNNING  MTU:16436  Metrik:1<br>
          RX packets:39350 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:39350 errors:0 dropped:0 overruns:0 carrier:0<br>
          Kollisionen:0 Sendewarteschlangenlänge:0<br>
          RX bytes:312585500 (312.5 MB)  TX bytes:312585500 (312.5 MB)<br>
<br>
virbr0    Link encap:Ethernet  Hardware Adresse fe:00:c0:a8:00:0b<br>
          inet Adresse:192.168.122.1  Bcast:192.168.122.255  Maske:255.255.255.0<br>
          inet6-Adresse: fe80::6c73:a7ff:fe18:82c2/64 Gültigkeitsbereich:Verbindung<br>
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1<br>
          RX packets:9741 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:21749 errors:0 dropped:0 overruns:0 carrier:0<br>
          Kollisionen:0 Sendewarteschlangenlänge:0<br>
          RX bytes:663908 (663.9 KB)  TX bytes:27641431 (27.6 MB)<br>
<br>
vnet0     Link encap:Ethernet  Hardware Adresse fe:00:c0:a8:00:0b<br>
          inet6-Adresse: fe80::fc00:c0ff:fea8:b/64 Gültigkeitsbereich:Verbindung<br>
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1<br>
          RX packets:8886 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:22354 errors:0 dropped:0 overruns:0 carrier:0<br>
          Kollisionen:0 Sendewarteschlangenlänge:500<br>
          RX bytes:716296 (716.2 KB)  TX bytes:27628111 (27.6 MB)<br>
<br>
<br>
ifconfig of the VM<br>
-------------------------<br>
eth0      Link encap:Ethernet  HWaddr 02:00:c0:a8:00:0b<br>
          inet addr:192.168.122.44  Bcast:192.168.122.255  Mask:255.255.255.0<br>
          inet6 addr: fe80::c0ff:fea8:b/64 Scope:Link<br>
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>
          RX packets:20877 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:8890 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:1000<br>
          RX bytes:27551697 (26.2 MiB)  TX bytes:717022 (700.2 KiB)<br>
          Interrupt:11 Base address:0xc100<br>
<br>
lo        Link encap:Local Loopback<br>
          inet addr:127.0.0.1  Mask:255.0.0.0<br>
          inet6 addr: ::1/128 Scope:Host<br>
          UP LOOPBACK RUNNING  MTU:16436  Metric:1<br>
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:0<br>
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)<br>
<br>
<br>
<br>
As you can see, the cluster somehow assigned a 192.168.122.* IP-address to the virtual interface, although I don't know why. Also, the VM received a correct MAC-address (corresponding to IP 192.168.0.11), but still it got an IP address from the .122.* interval! Anyone an idea why this virtual interface behaves like that?<br>


Cheers<br>
<br>
_______________________________________________<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>
</blockquote></div><br>