[one-users] *no go*, using Linux br0 to contact ONE VMs -- (was) RE: VM networking configuration CentOS

Mark Biggers mbiggers at ine.com
Thu Nov 7 07:33:36 PST 2013


Yet another Mark, here:

This is perhaps a related question.   I completely missed the  CONTEXT = [ NETWORK = YES ]  in my ONE templates, and thereby was screwed.  Fixed, thanks for this
( this needs to be **better documented**, please... )

However, I still can't get the ebtables / brN (Linux bridging) to work, for ping / ssh / VNC going , to my VM network 192.168.122.0.   Notes below.  Need the ONE
team's help, thank you.

Here's how I configured the "br0" bridge, on openSUSE 12.3 Linux :

sudo  ifdown br0 || echo "no way to down bridge br0 :)"
sudo  brctl delbr br0 || echo "no bridge br0 :)"

sudo  ifconfig eth0 promisc up
sudo  brctl show

sudo  brctl addbr br0
sudo  brctl show

sudo  ifconfig eth0 0.0.0.0 up
sudo  brctl addif br0 eth0
sudo  brctl show

sudo  ifconfig br0 192.168.1.250   # "previous" addr of eth0

sudo route add default gw 192.168.1.1
sudo route add -net 192.168.122.0  gw 192.168.1.250 netmask 255.255.255.0

======================== supporting info =============================

root at sealion.ine.corp:~ # ip addr | dpaste
 < http://dpaste.de/csGz >
 
oneadmin at sealion:~ > onevnet show -x 4 | dpaste
 < http://dpaste.de/594n >

oneadmin at sealion:~ > onetemplate show 18 -x | dpaste
 < http://dpaste.de/OIya >
 
oneadmin at sealion:~ > onevm show 20 -x | dpaste
 < http://dpaste.de/pXEZ >

root at sealion.ine.corp:~ # cat typescript | dpaste  ## pinging, netstats
 < http://dpaste.de/9OwD >


----mark


________________________________________
From: users-bounces at lists.opennebula.org [users-bounces at lists.opennebula.org] On Behalf Of Jaime Melis [jmelis at opennebula.org]
Sent: Wednesday, November 06, 2013 10:50 AM
To: Mark Kusch
Cc: Users OpenNebula
Subject: Re: [one-users] VM networking configuration CentOS

Hi Mark,

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:

MAC="54:52:00:c0:de:0a", => 00 . c0 . de . 0a => 0.192.222.10

If you add the CONTEXT bit from before to your template everything should work OK.

cheers,
Jaime




On Mon, Oct 21, 2013 at 4:14 PM, Mark Kusch <mark.kusch at silpion.de<mailto:mark.kusch at silpion.de>> wrote:
Hi list!

Problem solved... Still it FEELS like NetworkManager broke networking
in the VMs, still not confirmed.




More information about the Users mailing list