<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="monospace">Hi Jaime,<br>
</font><font face="monospace">thank you for the help,</font><br>
<font face="monospace">as you request this are </font><font
face="monospace">the output of <b>ifconfig -a</b> and <b>route -n</b></font>,
<font face="monospace">followed by the output of the same commands
after <b>ifup eth1</b></font><br>
<font face="monospace"><br>
deb:~# ifconfig -a<br>
eth1 Link encap:Ethernet HWaddr 00:01:83:9a:64:fc<br>
BROADCAST MULTICAST MTU:1500 Metric:1<br>
RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:1000<br>
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)<br>
<br>
lo Link encap:Local Loopback<br>
inet addr:127.0.0.1 Mask:255.0.0.0<br>
UP LOOPBACK RUNNING MTU:16436 Metric:1<br>
RX packets:38 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:0<br>
RX bytes:2636 (2.5 KiB) TX bytes:2636 (2.5 KiB)<br>
<br>
deb:~# route -n<br>
Kernel IP routing table<br>
Destination Gateway Genmask Flags Metric Ref Use
Ifacei<br>
<br>
deb:~# ifup eth1<br>
<br>
deb:~# ifconfig -a<br>
eth1 Link encap:Ethernet HWaddr 00:01:83:9a:64:fc<br>
inet addr:131.154.100.252 Bcast:131.154.100.255
Mask:255.255.255.0<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:1318 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:1000<br>
RX bytes:630208 (615.4 KiB) TX bytes:0 (0.0 B)<br>
<br>
lo Link encap:Local Loopback<br>
inet addr:127.0.0.1 Mask:255.0.0.0<br>
UP LOOPBACK RUNNING MTU:16436 Metric:1<br>
RX packets:38 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:0<br>
RX bytes:2636 (2.5 KiB) TX bytes:2636 (2.5 KiB)<br>
<br>
deb:~# route<br>
Kernel IP routing table<br>
Destination Gateway Genmask Flags Metric Ref Use
Iface<br>
131.154.100.0 * 255.255.255.0 U 0 0 0
eth1<br>
default 131.154.100.253 0.0.0.0 UG 0 0 0
eth1<br>
<br>
deb:~# route -n<br>
Kernel IP routing table<br>
Destination Gateway Genmask Flags Metric Ref Use
Iface<br>
131.154.100.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1<br>
0.0.0.0 131.154.100.253 0.0.0.0 UG 0 0 0
eth1<br>
<br>
regards,<br>
Gianni<br>
<br>
<br>
On 02/01/2010 11:14 AM, Jaime Melis </font><font face="monospace">wrote</font><font
face="monospace">:</font>
<blockquote
cite="mid:b08f20eb1002010214j5955b300vc8835a04c110797d@mail.gmail.com"
type="cite"><font face="monospace">Hi Gianni,<br>
could you please send us the output of <b>ifconfig -a</b> and <b>route
-n</b>, right after the boot of the VM?<br>
<br>
regards,<br>
Jaime<br>
<br>
</font>
<div class="gmail_quote"><font face="monospace">On Wed, Jan 27, 2010
at 8:28 PM, Gianni Dalla Torre <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:gianni.dallatorre@cnaf.infn.it">gianni.dallatorre@cnaf.infn.it</a>></span>
wrote:<br>
</font>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff"><font face="monospace">Hi
all, <br>
<br>
I configured an OpenNebula (v 1.4) front-end in my pc "solaris" (Ubuntu
9.04) and installed a cluster node "omii001" (Scientific Linux CERN SLC
release 2.6.18-164.11.1.el5 x86_64).<br>
I need to access my VM through ssh, so I used the Bridged networking
("shared physical device") following this instructions:<br>
<a moz-do-not-send="true"
href="http://www.opennebula.org/doku.php?id=documentation:rel1.4:nm"
target="_blank">http://www.opennebula.org/doku.php?id=documentation:rel1.4:nm</a><br>
<br>
I also used the Leases within the Virtual Machine, and modified the
Image of my VM which is a Debian 5, <br>
- Copying the script $ONE_LOCATION/share/scripts/vmcontext.sh into the
/etc/init.d directory in the VM root file system.<br>
- Executing the script at boot time before starting any network service.<br>
- creating a link $ ln /etc/init.d/vmcontext.sh
/etc/rc2.d/S01vmcontext.sh<br>
and modified the script in order to be compliant whit the request of my
network changing the gateway port (253) and the name of the interface
where to find the gateway (eth1 instead of eth0) which is eth1 because
I have setted only a public network.<br>
<br>
The problem:<br>
Deploying the VM I have no errors in the oned.log file, but the VM is
able only to ping the IP of the host where it is deployed, and in not
visible in the public network.<br>
<br>
Other info:<br>
At the boot of the virtual machine, only the lo interface is ON, and I
have to ifup eth1, in order to ping the host omii001.<br>
The </font><font face="monospace">bridge's </font><font
face="monospace">settings of the host omii001 should be OK, because if
I deploy a VM using virt-manager and setting manually the same IP &
gateway, that I want to assign to my VM, I have no complications.<br>
<br>
cat <a moz-do-not-send="true" href="http://pvlan.net" target="_blank">pvlan.net</a>
<br>
NAME = "PublicVLAN"<br>
TYPE = FIXED<br>
BRIDGE = br0 <br>
LEASES = [ IP="131.154.100.249"]<br>
LEASES = [ IP="131.154.100.252"]<br>
<br>
cat debian.template <br>
<br>
NAME = debian<br>
CPU = 1 <br>
MEMORY = 1024<br>
# --- kernel & boot device ---<br>
OS = [ boot = hd]<br>
# --- disks ---<br>
DISK = [<br>
source = "/srv/cloud/one/images/deb.img",<br>
target = "vda",<br>
readonly = "no" ]<br>
# --- I/O ---<br>
GRAPHICS= [<br>
type = "vnc",<br>
listen = "127.0.0.1",<br>
port = "-1"]<br>
# --- NIC ---<br>
NIC = [ <br>
network = "PublicVLAN",<br>
bridge = "br0",<br>
model = "virtio"]<br>
SAVE = yes<br>
FEATURES=[ acpi="no" ]<br>
<br>
onevm show 113<br>
VIRTUAL MACHINE 113
INFORMATION <br>
ID : 113 <br>
NAME : debian <br>
STATE : ACTIVE <br>
LCM_STATE : RUNNING <br>
START TIME : 01/27 18:36:34 <br>
END TIME : - <br>
DEPLOY ID: : one-113 <br>
<br>
VIRTUAL MACHINE
TEMPLATE <br>
CPU=1<br>
DISK=[<br>
READONLY=no,<br>
SOURCE=/srv/cloud/one/images/deb.img,<br>
TARGET=vda ]<br>
FEATURES=[<br>
ACPI=no ]<br>
GRAPHICS=[<br>
LISTEN=127.0.0.1,<br>
PORT=-1,<br>
TYPE=vnc ]<br>
MEMORY=1024<br>
NAME=debian<br>
NIC=[<br>
BRIDGE=br0,<br>
IP=131.154.100.252,<br>
MAC=00:01:83:9a:64:fc,<br>
MODEL=virtio,<br>
NETWORK=PublicVLAN,<br>
VNID=18 ]<br>
OS=[<br>
BOOT=hd ]<br>
SAVE=yes<br>
VMID=113<br>
<br>
<br>
(omii001)brctl show<br>
bridge name bridge id STP enabled interfaces<br>
br0 8000.0015c5edbf17 no vnet0<br>
eth0<br>
virbr0 8000.000000000000 yes <br>
<br>
Thank you in advance for your time.<br>
</font>
<pre><font face="monospace">Best regards,
Gianni
</font></pre>
<font face="monospace"><br>
</font>
<pre cols="72"><font face="monospace">--
Gianni Dalla Torre
Computer Science Engineering
INFN -CNAF
Via Ranzani 13/2
40127 Bologna, Italy
Phone:        +39 051 6092913
Fax:        +39 051 6092916
mail:        dallatorre&<a moz-do-not-send="true"
href="http://cnaf.infn.it" target="_blank">cnaf.infn.it</a>
</font></pre>
</div>
<font face="monospace"><br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true" href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org"
target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
</font>
</blockquote>
</div>
<font face="monospace"><br>
</font></blockquote>
<br>
</body>
</html>