[one-users] Wrong IP Address

Antonio Carlos Salzvedel Furtado Junior acsfj08 at inf.ufpr.br
Mon May 7 10:49:46 PDT 2012


Thanks Guba,

I decided to contextualize my VMs, it's working so far. I think it is the
easiest way.

I wanted to avoid contextualization because I had problems with scripts for
CentOS in the past. I think that in CentOS you need more than just add the
script with chkconfig, the system messes up the interfaces. OpenNebula
comes with a contextualization ready to use with Debian, it was easy to
enable it, since I changed all my VMs to Debian.


Cordially,

Antonio Carlos Furtado


On Mon, May 7, 2012 at 2:24 PM, Guba Sándor <gubasanyi at gmail.com> wrote:

>  Opennebula calculate IP address from MAC address and it's show that IP
> address as leased. However the DHCP server is running by libvirt and it has
> no idea that it's need to assign IP by mac address so it's assign IP by
> other metric. You can generate host file with proper mac-ip pairs or
> contextualize vm-s or somebody know other way to keep it synchronized.
>
> 2012-05-07 18:10 keltezéssel, Antonio Carlos Salzvedel Furtado Junior
> írta:
>
> Hello,
>
>
> I'm successfully being able to deploy VMs on my cloud, but there is a
> problem with the IP addresses that OpenNebula reports to be leased.
>
> The DHCP seems to work fine with the bridge. For instance, I have a Debian
> running in a VM, which was given the IP 192.168.122.254.
> This is the output of 'ifconfig -a' ( excluding loopback ):
>
> eth0     Link encap:Ethernet  Endereço de HW 02:00:c0:a8:7a:02
>           inet end.: 192.168.122.244  Bcast:192.168.122.255
> Masc:255.255.255.0
>           endereço inet6: fe80::c0ff:fea8:7a02/64 Escopo:Link
>           UP BROADCASTRUNNING MULTICAST  MTU:1500  Métrica:1
>           RX packets:13 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
>           colisões:0 txqueuelen:1000
>           RX bytes:1198 (1.1 KiB)  TX bytes:1512 (1.4 KiB)
>           IRQ:11 Endereço de E/S:0x8000
>
> The MAC address is correct. It is the same as the output of onevm show <VM
> NUMBER>:
>
> NIC=[
>   BRIDGE=virbr0,
>   IP=192.168.122.2,
>   MAC=02:00:c0:a8:7a:02,
>   NETWORK="Private LAN",
>   NETWORK_ID=0,
>   VLAN=NO ]
>
> I just don't know where OpenNebula got that IP address 192.168.122.2,
> shown above. 'arp -i virbr0' gives me the following:
>
> Address                  HWtype  HWaddress           Flags Mask
> Iface
> 192.168.122.244          ether   02:00:c0:a8:7a:02   C
> virbr0
>
>
>
> The VM was not contextualized, but that is not necessary, right? As far as
> I'm concerned, OpenNebula only defines the MAC ADDRESS, but where does it
> take information about leases?
>
> ps.:Using KVM as hypervisor.
>
> Thanks in advance.
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opennebula.orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120507/ac4014ac/attachment-0003.htm>


More information about the Users mailing list