[one-users] Can't access the running VM's from the outside network
Armando Escalante
escalantea at gmail.com
Tue Aug 20 10:51:48 PDT 2013
Hi Giovanni, below if the information you requested and a few extras that
may help!
-----------------------------------------
*This is the ifconfig on host1:*
eth0 Link encap:Ethernet HWaddr 00:1e:c9:39:09:fa
inet addr:54.135.29.195 Bcast:54.135.29.255 Mask:255.255.255.192
inet6 addr: fe80::21e:c9ff:fe39:9fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26239 errors:0 dropped:0 overruns:0 frame:0
TX packets:17824 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9118740 (9.1 MB) TX bytes:3738524 (3.7 MB)
eth2 Link encap:Ethernet HWaddr a0:36:9f:20:6e:78
inet addr:10.10.1.2 Bcast:10.10.1.255 Mask:255.255.255.0
inet6 addr: fe80::a236:9fff:fe20:6e78/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:10513 errors:0 dropped:0 overruns:0 frame:0
TX packets:6239 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1219924 (1.2 MB) TX bytes:759162 (759.1 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1624 errors:0 dropped:0 overruns:0 frame:0
TX packets:1624 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:223684 (223.6 KB) TX bytes:223684 (223.6 KB)
virbr0 Link encap:Ethernet HWaddr 2e:28:26:88:04:1b
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
----------------------------------------------
*This is the /etc/network/interface of host1:*
# The loopback network interface
auto lo eth0 eth2
iface lo inet loopback
# The primary network interfaces
# Public network
iface eth0 inet static
address 54.135.29.195
netmask 255.255.255.192
gateway 54.135.29.193
dns-nameservers 54.135.29.193
# 10GB link
iface eth2 inet static
address 10.10.1.2
netmask 255.255.255.0
broadcast 10.10.1.255
network 10.10.1.0
mtu 9000
----------------------------------------
*This is the onevnet show 0 (from the frontend):*
oneadmin at frontend:~$ onevnet show 0
VIRTUAL NETWORK 0 INFORMATION
ID : 0
NAME : cloud-net
USER : oneadmin
GROUP : oneadmin
CLUSTER : base
TYPE : RANGED
BRIDGE : virbr0
VLAN : Yes
PHYSICAL DEVICE: eth0
USED LEASES : 5
PERMISSIONS
OWNER : um-
GROUP : u--
OTHER : ---
VIRTUAL NETWORK TEMPLATE
DNS="54.135.29.193"
GATEWAY="54.135.29.193"
NETWORK="54.135.29.192"
NETWORK_MASK="255.255.255.192"
RANGE
IP_START : 54.135.29.215
IP_END : 54.135.29.254
USED LEASES
LEASE=[ MAC="02:00:40:87:1d:e8", IP="54.135.29.232",
IP6_LINK="fe80::400:40ff:fe87:1de8", USED="1", VID="111" ]
LEASE=[ MAC="02:00:40:87:1d:e9", IP="54.135.29.233",
IP6_LINK="fe80::400:40ff:fe87:1de9", USED="1", VID="112" ]
LEASE=[ MAC="02:00:40:87:1d:fa", IP="54.135.29.250",
IP6_LINK="fe80::400:40ff:fe87:1dfa", USED="1", VID="58" ]
LEASE=[ MAC="02:00:40:87:1d:fd", IP="54.135.29.253",
IP6_LINK="fe80::400:40ff:fe87:1dfd", USED="1", VID="63" ]
LEASE=[ MAC="02:00:40:87:1d:fe", IP="54.135.29.254",
IP6_LINK="fe80::400:40ff:fe87:1dfe", USED="1", VID="64" ]
VIRTUAL MACHINES
ID USER GROUP NAME STAT UCPU UMEM HOST
TIME
112 oneadmin oneadmin U-good-4 runn 0 2G host2 0d
13h33
--------------------------------------------
This is the template for one of the VM's
oneadmin at frontend:~$ onetemplate show 11
TEMPLATE 11 INFORMATION
ID : 11
NAME : U-RAW-Server
USER : oneadmin
GROUP : oneadmin
REGISTER TIME : 08/19 18:15:45
PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---
TEMPLATE CONTENTS
CONTEXT=[
DNS="54.135.29.193",
ETH0_CONTEXT_FORCE_IPV4="$NETWORK[CONTEXT_FORCE_IPV4,NETWORK_ID=\"0\"]",
ETH0_DNS="$NETWORK[DNS,NETWORK_ID=\"0\"]",
ETH0_GATEWAY="$NETWORK[GATEWAY,NETWORK_ID=\"0\"]",
ETH0_GATEWAY6="$NETWORK[GATEWAY6,NETWORK_ID=\"0\"]",
ETH0_IP="$NIC[IP,NETWORK_ID=\"0\"]",
ETH0_IPV6="$NIC[IP6_GLOBAL,NETWORK_ID=\"0\"]",
ETH0_MASK="$NETWORK[NETWORK_MASK,NETWORK_ID=\"0\"]",
ETH0_NETWORK="$NETWORK[NETWORK_ADDRESS,NETWORK_ID=\"0\"]",
NETWORK="YES",
SSH_PUBLIC_KEY="ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDdYaaEnoSz4ULDoRWh4XLMsrod/Fci4juGRDxlJz4lx04AYVyCvulgu5TC501i9ZShOb3Nl4fMvXdzt8eD+eBC6ClhAT/hQTF4H4sGeJEu4qWqRDZHSRfcAaBkXdUvL4RxSDexbWlw7ANJhiYvJ+el2Y0WWLZOWvCqKNsLHs8AGNGpGt9r0+jT9K9BGKiV/YzGwsaZx7nnI7hegvAFsrMv0jBQhm6E+jXCDHNdt5heSuCT6oblazz08bzvYnItEUSUMng4hxM/l9Qvc5JmwhVvS2WHlPfZniS7oc07ha72C3B98/9dvCBzuVFF9zBKpifCHqDcuFF
root at frontend" ]
CPU="1"
DISK=[
DRIVER="raw",
IMAGE_ID="10" ]
FEATURES=[
ACPI="yes",
PAE="yes" ]
GRAPHICS=[
LISTEN="0.0.0.0",
TYPE="VNC" ]
MEMORY="2048"
NIC=[
NETWORK_ID="0" ]
OS=[
ARCH="x86_64" ]
VCPU="4"
----------------------------------
*This is the template for the above VM*
oneadmin at frontend:~$ onevm show 112
VIRTUAL MACHINE 112 INFORMATION
ID : 112
NAME : U-good-4
USER : oneadmin
GROUP : oneadmin
STATE : ACTIVE
LCM_STATE : RUNNING
RESCHED : No
HOST : host2
START TIME : 08/20 04:01:42
END TIME : -
DEPLOY ID : one-112
VIRTUAL MACHINE MONITORING
USED MEMORY : 2G
USED CPU : 0
NET_TX : 0K
NET_RX : 1.2M
PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---
VM DISKS
ID TARGET IMAGE TYPE SAVE SAVE_AS
0 hda Ubuntu Server 12.04 (Precise Pangol file NO -
VM NICS
ID NETWORK VLAN BRIDGE IP MAC
0 cloud-net yes virbr0 54.135.29.233 02:00:40:87:1d:e9
fe80::400:40ff:fe87:1de9
VIRTUAL MACHINE HISTORY
SEQ HOST ACTION REAS START TIME
PROLOG
0 host2 stop user 08/20 04:01:47 0d 00h02m
0h00m34s
1 host2 none none 08/20 04:17:47 0d 13h27m
0h00m00s
VIRTUAL MACHINE TEMPLATE
AUTOMATIC_REQUIREMENTS="CLUSTER_ID = 100"
CONTEXT=[
DISK_ID="1",
DNS="54.135.29.193",
ETH0_DNS="54.135.29.193",
ETH0_GATEWAY="54.135.29.193",
ETH0_IP="54.135.29.233",
ETH0_MASK="255.255.255.192",
NETWORK="YES",
SSH_PUBLIC_KEY="ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDdYaaEnoSz4ULDoR4XLMsrod/Fci4juGRDxlJz4lx04AYVyCvulgu5TC501i9ZShOb3Nl4fMvXdzt8eD+eBC6ClhAT/hQTF4H4sGeJEu4qWqRDZHSRfcAaBkXdUvL4RxSDexbWlw7ANJhiYvJ+el2Y0WWLZOWvCqKNsLHs8AGNGpGt9r0+jT9K9BGKiV/YzGwsaZChxxx7nnI7hegvAFsrMv0jBQhm6E+jXCDHNdteSuCT6oblazz08bzvYnItEUSUMng4hxM/l9Qvc5JmwhVvS2WHlPfZniS7oc07ha72C3B98/9dvCBzuVFF9zBKpifCHqDcuFF
root at frontend",
TARGET="hdb" ]
CPU="1"
FEATURES=[
ACPI="yes",
PAE="yes" ]
GRAPHICS=[
LISTEN="0.0.0.0",
PORT="6012",
TYPE="VNC" ]
MEMORY="2048"
OS=[
ARCH="x86_64" ]
TEMPLATE_ID="11"
VCPU="4"
VMID="112"
------------------------------------------------------
I hope this helps! ( I changed the Public IP)
A
On Tue, Aug 20, 2013 at 11:14 AM, Giovanni Toraldo <me at gionn.net> wrote:
> Hi,
>
> On Mon, Aug 19, 2013 at 10:27 PM, Armando Escalante
> <escalantea at gmail.com> wrote:
> > I can ssh/ping other VM's running on the *same* host! But that is it. I
> had
> > a similar issue on another installation, but can't recall how I resolved
> it.
> > Had to do with the Context setting... I use the SunStone interface for
> all
> > of this.
>
> can you paste your /etc/network/interfaces and the templates of your
> virtual networks defined in OpenNebula?
>
> You should have configured a network bridge bonded to a physical
> interface on the hosts to let VMs be able to reach your physical
> network.
>
> Cheers,
> --
> Giovanni Toraldo
> http://gionn.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130820/e472c927/attachment-0002.htm>
More information about the Users
mailing list