<div dir="ltr">Hi<div><br></div><div style>The VM networking is correctly setup, as you can "ping each other". If you want to access the VMs from the outside you need a NIC attached to that network and a IP in the network. You can either create and interface alias, or a tun device with a valid ip, attach it to the bridge, and then you should be able to send packages to the vnet.</div>
<div style><br></div><div style>This configuration is not the standard one, though. You will probably want to assign a public IP or place a virtual router with a public IP to log in the VMs. </div><div style><br></div><div style>
<br></div><div style>Ruben</div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 4, 2013 at 9:11 PM, Giuliano Casale <span dir="ltr"><<a href="mailto:g.casale@imperial.ac.uk" target="_blank">g.casale@imperial.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I have a working installation of OpenNebula 3.8.3, but despite many<br>
efforts I still cannot ssh from the host into the VMs.<br>
<br>
All hosts have:<br>
- an eth0 interface listening to the internal network of my institution<br>
- an eth1 interface for a private switched LAN only between the hosts<br>
that compose the OpenNebula cloud. The hosts have IPs 10.0.0.X on this<br>
network.<br>
<br>
On all the machines I have run the following commands:<br>
<br>
brctl addbr br1<br>
brctl addif br1 eth1<br>
ifconfig eth1 down<br>
ifconfig eth1 0.0.0.0 up<br>
ifconfig br1 10.0.0.X/24 up (where X=1,2,... depending on the host).<br>
<br>
I then defined in Sunstone a virtual network as follows:<br>
=============<br>
ID : 0<br>
NAME : vn-private<br>
USER : oneadmin<br>
GROUP : oneadmin<br>
CLUSTER : cluster<br>
TYPE : RANGED<br>
BRIDGE : br1<br>
VLAN : No<br>
PHYSICAL DEVICE:<br>
VLAN ID :<br>
USED LEASES : 2<br>
<br>
PERMISSIONS<br>
OWNER : um-<br>
GROUP : ---<br>
OTHER : ---<br>
<br>
VIRTUAL NETWORK TEMPLATE<br>
<br>
<br>
RANGE<br>
IP_START : 192.168.100.1<br>
IP_END : 192.168.100.128<br>
<br>
USED LEASES<br>
LEASE=[ IP="192.168.100.13", MAC="02:00:c0:a8:64:0d", USED="1", VID="14" ]<br>
LEASE=[ IP="192.168.100.37", MAC="02:00:c0:a8:64:25", USED="1", VID="41" ]<br>
=============<br>
<br>
Now: using VNC, I see that the two VMs .13 and .37 can correctly ping<br>
each other.However, if I login to any host and do 'ssh<br>
<a href="mailto:root@192.168.100.13">root@192.168.100.13</a>' it does not connect to the VMs.<br>
<br>
I tried then 'route add -net 192.168.100.0 netmask 255.255.255.0 dev<br>
br1' and 'route' shows correctly<br>
<br>
Destination Gateway Genmask Flags Metric Ref Use Iface<br>
192.168.100.0 * 255.255.255.0 U 0 0 0 br1<br>
<br>
but still ssh does not work.<br>
<br>
Can someone help me? My ultimate goals are:<br>
1) to be able to ssh from the host into the VMs.<br>
2) if possible, give internet connectivity to the VMs through eth0.<br>
<br>
Thanks,<br>
Giuliano<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula
</div>