<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-15">
</head>
<body 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 href="http://www.opennebula.org/doku.php?id=documentation:rel1.4:nm">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 pvlan.net <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>
<br>
<pre class="moz-signature" cols="72">-- 
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&cnaf.infn.it

</pre>
</body>
</html>