[one-users] Can't ssh to vm (no route to host)

Erico Augusto Cavalcanti Guedes eacg at cin.ufpe.br
Tue Jul 3 08:10:52 PDT 2012


Hi Bendix,

2012/7/3 Bendix Harries <br4ve_cs at web.de>

> Hi,
> I got some issues to ssh or ping to my vm. I don't really know what the
> problem is, because the vm is running.
>

Runn status, viewed by "onevm list" output, doesn't means that correct IPs
are configured on VMs. I solved this issue performing contextualization[1].
vmcontext.sh file customizes network configuration file to configure VMs
with correct IPs.

Another action that you should perform is sunstone configuration[2]. It
will really helps you with IPs troubleshooting . Insert

GRAPHICS = [
  TYPE    = "vnc",
  LISTEN  = "0.0.0.0"
]

on your VM template file, and follow instructions presented on[2], related
to access VMs through VNC.

Erico.

[1] http://www.opennebula.org/documentation:rel3.4:cong
[2]http://www.opennebula.org/documentation:rel3.4:sunstone


> Onevnet looks like:
>
> VIRTUAL NETWORK 0
> INFORMATION
> ID             : 0
> NAME           : Small network
> USER           : oneadmin
> GROUP          : oneadmin
> TYPE           : FIXED
> BRIDGE         : br0
> VLAN           : No
> USED LEASES    : 1
>
> PERMISSIONS
>
> OWNER          : um-
> GROUP          : ---
> OTHER          : ---
>
> VIRTUAL NETWORK
> TEMPLATE
>
>
> USED
> LEASES
> LEASE=[ IP=XXX.XXX.177.150, MAC=02:00:93:ac:b1:96, USED=1, VID=16 ]
>
> FREE
> LEASES
> LEASE=[ IP=XXX.XXX.177.151, MAC=02:00:93:ac:b1:97, USED=0, VID=-1 ]
>
> And my template file:
>
> NAME   = ttylinux
> CPU    = 0.1
> MEMORY = 64
>
> DISK   = [SOURCE = "/var/lib/one/images/ttylinux.img", TARGET = "hda"]
>
> NIC    = [ NETWORK = "Small network" ]
>
> FEATURES=[ acpi="no" ]
>
> #CONTEXT = [
> #    hostname    = "$NAME",
> #    ip_public   = "XXX.XXX.177.152",
> #    files      = "/var/lib/one/images/init.sh
> /var/lib/one/images/id_rsa.pub",
> #    target      = "hdc",
> #    root_pubkey = "id_rsa.pub",
> #    username    = "opennebula",
> #    user_pubkey = "id_rsa.pub"
> #]
>
> I'm not quite sure about the contextarea, whether to use it or not,
> because I thought I read it's optional.
> Further more my network interfaces look like this:
>
> auto lo
> iface lo inet loopback
>
> auto eth0
> iface eth0 inet manual
>
> auto br0
> iface br0 inet dhcp
> bridge_ports eth0
> bridge_stp off
> bridge_maxwait 0
> bridge_fd 9
> bridge_maxage 0
> bridge_hello 0
>
>
> Would be great if somebody could help me out.
>
> Best regards
>
>
> Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für
> iPhone und Android.
> *https://produkte.web.de/freemail_mobile_startseite/*<https://produkte.web.de/freemail_mobile_startseite/>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120703/16fab6b7/attachment-0003.htm>


More information about the Users mailing list