<div dir="ltr">Hi Mark,<div><br></div><div>I think the problem is that you are not using the CONTEXT = [ NETWORK = YES ] option. If you don't, the VM will infer its IP from the MAC, converting the last 4 bytes of the MAC to decimal:</div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">MAC="54:52:00:c0:de:0a", => 00 . c0 . de . 0a => 0.192.222.10</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">If you add the CONTEXT bit from before to your template everything should work OK.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">cheers,<br>Jaime</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 21, 2013 at 4:14 PM, Mark Kusch <span dir="ltr"><<a href="mailto:mark.kusch@silpion.de" target="_blank">mark.kusch@silpion.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list!<br>
<br>
Problem solved... Still it FEELS like NetworkManager broke networking<br>
in the VMs, still not confirmed.<br>
<br>
Solution:<br>
$ sudo su -<br>
# modprobe nbd max_part=63<br>
# qemu-nbd -c /dev/nbd0 /tmp/qcowimag<br>
# install -d /mnt/centos<br>
# mount /dev/nbd0p1 /mnt/centos<br>
# chattr +i /mnt/centos/etc/sysconfig/network-scripts/ifcfg-eth0<br>
# umount /mnt/centos<br>
# ...<br>
<br>
No, that's not nice!, but setting NM_CONTROLLED="no" didn't help.<br>
Hope this may help someone sometime.<br>
<br>
# kraM<br>
<div class="HOEnZb"><div class="h5"><br>
On 15:24 Mon 21 Oct, Mark Kusch wrote:<br>
> Hi list,<br>
><br>
> feels like an issue with NetworkManager in CentOS (not confirmed yet).<br>
> ifcfg-eth0 has configured eth0 to be managed by<br>
> `NetworkManager' (NM_CONTROLLED="yes").<br>
><br>
> Current approach is to mount and modify the qcow image<br>
> and configure NM_CONTROLLED="no".<br>
><br>
> Currently no success.<br>
><br>
> # kraM<br>
><br>
><br>
> On 14:49 Mon 21 Oct, Mark Kusch wrote:<br>
> > Hi list,<br>
> ><br>
> > I've a vnet defining IP and MAC address fields (required).<br>
> > I've a working bridge configuration which should grant accecss to a<br>
> > corporate DHCP server configured for exactly these IP/MAC pairs.<br>
> > I've a CentOS qcow2 image with eth0 configuration set to DHCP.<br>
> ><br>
> > When instantiating a VM it comes up with eth0 configured with IP<br>
> > <a href="http://0.192.222.10/24" target="_blank">0.192.222.10/24</a>. MAC address is configured correctly from the vnet.<br>
> ><br>
> > onevm show $ID lists expected networking configuration.<br>
> ><br>
> > Any hint why the VMs come up with such an IP address? Could that be<br>
> > OpenNebula related? Or does this feel to you like CentOS related?<br>
> ><br>
> > In HOPE anyone has seen such an issue and can point me somewhere<br>
> > which explains it to me and hopefully results in a solution ;)<br>
> ><br>
> > Thanks!<br>
> ><br>
> > # kraM<br>
> ><br>
> ><br>
> > Some details:<br>
> > $ onevnet show $ID # perfectly fine<br>
> > USED LEASES<br>
> > LEASE=[ MAC="54:52:00:c0:de:0a", IP="192.168.198.10", IP6_LINK="fe80::5652:ff:fec0:de0a", USED="1", VID="19" ]<br>
> ><br>
> > $onevm show $ID # perfectly fine<br>
> > VM NICS<br>
> > ID NETWORK VLAN BRIDGE IP MAC<br>
> > 0 VNet yes br1 192.168.198.10 54:52:00:c0:de:0a<br>
> > fe80::5652:ff:fec0:de0a<br>
> ><br>
> > ifcfg-eth0 from qcow2 image:<br>
> > DEVICE="eth0"<br>
> > BOOTPROTO="dhcp"<br>
> > IPV6INIT="yes"<br>
> > MTU="1500"<br>
> > NM_CONTROLLED="yes"<br>
> > ONBOOT="yes"<br>
> > TYPE="Ethernet"<br>
> > UUID="708d6105-c3fe-44e9-8572-f6738042f930"<br>
> ><br>
> > ifcfg-eth0 on VM:<br>
> > DEVICE=eth0<br>
> > BOOTPROTO=none<br>
> > ONBOOT=yes<br>
> > TYPE=Ethernet<br>
> > NETMASK=255.255.255.0<br>
> > IPADDR=0.192.222.10<br>
> > GATEWAY=0.192.222.1<br>
> ><br>
> > qcow2 image source:<br>
> > - <a href="http://cloud.centos.org/i/one/c6-x86_64-20121130-1.qcow2.gz" target="_blank">http://cloud.centos.org/i/one/c6-x86_64-20121130-1.qcow2.gz</a><br>
> > - <a href="http://wiki.centos.org/Cloud/OpenNebula/QuickStart" target="_blank">http://wiki.centos.org/Cloud/OpenNebula/QuickStart</a> (found in this guide)<br>
> ><br>
> > --<br>
> > Mark Kusch<br>
> > Silpion IT-Solutions GmbH: Systems Engineer<br>
> ><br>
> > Tel.: <a href="tel:%2B49%20%2840%29%20399976-51" value="+494039997651">+49 (40) 399976-51</a><br>
> > Fax.: <a href="tel:%2B49%20%2840%29%20399976-40" value="+494039997640">+49 (40) 399976-40</a><br>
> > Mail: <a href="mailto:mark.kusch@silpion.de">mark.kusch@silpion.de</a><br>
> ><br>
> > Firmensitz: Brandshofer Deich 48, 20539 Hamburg<br>
> > Geschäftsführer: Dipl.-Ing. (FH) Patrick Postel<br>
> > Registergericht: Amtsgericht Hamburg HRB 78585<br>
> > Finanzbehörde: Hamburg<br>
> > USt.-Ident.-Nr.: DE213610768<br>
><br>
><br>
><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@lists.opennebula.org">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>
><br>
> --<br>
> Mark Kusch<br>
> Silpion IT-Solutions GmbH: Systems Engineer<br>
><br>
> Tel.: <a href="tel:%2B49%20%2840%29%20399976-51" value="+494039997651">+49 (40) 399976-51</a><br>
> Fax.: <a href="tel:%2B49%20%2840%29%20399976-40" value="+494039997640">+49 (40) 399976-40</a><br>
> Mail: <a href="mailto:mark.kusch@silpion.de">mark.kusch@silpion.de</a><br>
><br>
> Firmensitz: Brandshofer Deich 48, 20539 Hamburg<br>
> Geschäftsführer: Dipl.-Ing. (FH) Patrick Postel<br>
> Registergericht: Amtsgericht Hamburg HRB 78585<br>
> Finanzbehörde: Hamburg<br>
> USt.-Ident.-Nr.: DE213610768<br>
<br>
<br>
<br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">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>
<br>
--<br>
Mark Kusch<br>
Silpion IT-Solutions GmbH: Systems Engineer<br>
<br>
Tel.: <a href="tel:%2B49%20%2840%29%20399976-51" value="+494039997651">+49 (40) 399976-51</a><br>
Fax.: <a href="tel:%2B49%20%2840%29%20399976-40" value="+494039997640">+49 (40) 399976-40</a><br>
Mail: <a href="mailto:mark.kusch@silpion.de">mark.kusch@silpion.de</a><br>
<br>
Firmensitz: Brandshofer Deich 48, 20539 Hamburg<br>
Geschäftsführer: Dipl.-Ing. (FH) Patrick Postel<br>
Registergericht: Amtsgericht Hamburg HRB 78585<br>
Finanzbehörde: Hamburg<br>
USt.-Ident.-Nr.: DE213610768<br>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Jaime Melis<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a></div>
</div>
</div>