Can you login into your vms via vnc and investigate, i.e. if ssh daemon
is running and if ssh keys are correctly inserted into your login-user's
authorized_keys?

The ping problem  may be a routing problem on your host. Check if the
host has ip_forwarding enabled such that the host forwards packages
between "eth0" and "br0", that is between the bridge and your host's
physical nic. If this does not help, investigate your routing tables and
try to track your ping's package flow with tcpdump.



Jens
-- gpg --keyserver pgp.mit.edu --recv-keys 0xDB1CAFB5


On 12/18/2013 07:52 PM, Alexander Sibetheros wrote:
> I would like to note that when I added tty-linux - kvm from the
> marketplace, created a simple template(same as the centOS), and run
> it, I was able to login and use the vm. So I know the host works, and
> my problem most likely is in the way ssh works from the controller to
> vm's...
>
> Also noteworthy, I cannot ping the vm's from the controller...only
> from the host. Im not sure this is correct or not.
>  
>
>
> On Wed, Dec 18, 2013 at 4:48 PM, Alexander Sibetheros
> <[email protected] <mailto:[email protected]>> wrote:
>
>     I am following this tutorial, as closely as possible:
>     http://www.opennebula.org/documentation:rel4.4:qs_ubuntu_kvm
>
>     TEMPLATE 0
>     INFORMATION                                                         
>     ID             : 0                  
>     NAME           : CentOS-6.4         
>     USER           : oneadmin           
>     GROUP          : oneadmin           
>     REGISTER TIME  : 12/16 13:44:54     
>
>     PERMISSIONS                                                               
>      
>
>     OWNER          : um-                
>     GROUP          : ---                
>     OTHER          : ---                
>
>     TEMPLATE
>     CONTENTS                                                              
>
>     CONTEXT=[
>       SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ]
>     CPU="1.0"
>     DISK=[
>       IMAGE="CentOS-6.4_x86_64" ]
>     GRAPHICS=[
>       LISTEN="0.0.0.0",
>       TYPE="vnc" ]
>     MEMORY="512"
>     NIC=[
>       NETWORK="private" ]
>     OS=[
>       ARCH="x86_64" ]
>     VCPU="1"
>
>
>
>     On Wed, Dec 18, 2013 at 4:35 PM, Carlos Martín Sánchez
>     <[email protected] <mailto:[email protected]>> wrote:
>
>         Hi Alexander,
>
>         On Wed, Dec 18, 2013 at 3:28 PM, Alexander
>         Sibetheros <[email protected]
>         <mailto:[email protected]>> wrote:
>
>             I'll give the docs you sent a look but my configurations
>             where the default in the tutorial:
>
>             $ oneimage create --name "CentOS-6.4_x86_64" \
>                 --path 
> "http://us.cloud.centos.org/i/one/c6-x86_64-20130910-1.qcow2.bz2"; \
>                 --driver qcow2 \
>                 --datastore default
>
>             $ onetemplate create --name "CentOS-6.4" --cpu 1 --vcpu 1 
> --memory 512 \
>                 --arch x86_64 --disk "CentOS-6.4_x86_64" --nic "private" 
> --vnc \
>                 --ssh
>
>             Before creating the vm I added the ssh parameters to the user:
>             """$ EDITOR=vi oneuser update oneadmin Add a new line like
>             the following to the template: SSH_PUBLIC_KEY="ssh-dss
>             AAAAB3NzaC1kc3MAAACBANBWTQmm4Gt..." Substitute the value
>             above with the output of cat ~/.ssh/id_dsa.pub."""
>
>             $ onetemplate instantiate "CentOS-6.4" --name "My Scratch VM"
>
>
>         Which tutorial are you following?
>         And could you paste the output of onetemplate show <id>?
>
>         Regards
>         --
>         Carlos Martín, MSc
>         Project Engineer
>         OpenNebula - Flexible Enterprise Cloud Made Simple
>         www.OpenNebula.org <http://www.OpenNebula.org> |
>         [email protected] <mailto:[email protected]> |
>         @OpenNebula <http://twitter.com/opennebula>
>
>
>         On Wed, Dec 18, 2013 at 3:28 PM, Alexander Sibetheros
>         <[email protected] <mailto:[email protected]>> wrote:
>
>             I'll give the docs you sent a look but my configurations
>             where the default in the tutorial:
>
>             $ oneimage create --name "CentOS-6.4_x86_64" \
>                 --path 
> "http://us.cloud.centos.org/i/one/c6-x86_64-20130910-1.qcow2.bz2"; \
>                 --driver qcow2 \
>                 --datastore default
>
>             $ onetemplate create --name "CentOS-6.4" --cpu 1 --vcpu 1 
> --memory 512 \
>                 --arch x86_64 --disk "CentOS-6.4_x86_64" --nic "private" 
> --vnc \
>                 --ssh
>
>             Before creating the vm I added the ssh parameters to the user:
>             """$ EDITOR=vi oneuser update oneadmin Add a new line like
>             the following to the template: SSH_PUBLIC_KEY="ssh-dss
>             AAAAB3NzaC1kc3MAAACBANBWTQmm4Gt..." Substitute the value
>             above with the output of cat ~/.ssh/id_dsa.pub."""
>
>             $ onetemplate instantiate "CentOS-6.4" --name "My Scratch VM"
>
>
>
>
>             On Wed, Dec 18, 2013 at 2:05 PM, Carlos Martín Sánchez
>             <[email protected] <mailto:[email protected]>>
>             wrote:
>
>                 Hi,
>
>                 On Wed, Dec 18, 2013 at 12:03 PM, Alexander
>                 Sibetheros <[email protected]
>                 <mailto:[email protected]>> wrote:
>
>                     I checked the marketplace.. all vms for xen/vmware
>                     bases have default username/passwords.
>                     KVM on the otherhand writes: Add `SSH_PUBLIC_KEY`
>                     to contextualization to set root credentials. 
>
>
>                 I assume you are using this image from the marketplace:
>                 
> http://docs.opennebula.org/stable/administration/references/schg.html#configuration
>
>                 Maybe the problem is a wrong syntax in the VM
>                 template. Can you paste its contents?
>                 It should follow the syntax described here:
>                 
> http://docs.opennebula.org/stable/user/references/template.html?highlight=context#context-section
>
>                 You can read more about the contextualization
>                 mechanism here:
>                 
> http://docs.opennebula.org/stable/user/virtual_machine_setup/context_overview.html
>
>                 Regards
>
>                 --
>                 Carlos Martín, MSc
>                 Project Engineer
>                 OpenNebula - Flexible Enterprise Cloud Made Simple
>                 www.OpenNebula.org <http://www.OpenNebula.org> |
>                 [email protected] <mailto:[email protected]>
>                 | @OpenNebula <http://twitter.com/opennebula>
>
>
>                 On Wed, Dec 18, 2013 at 12:03 PM, Alexander Sibetheros
>                 <[email protected] <mailto:[email protected]>>
>                 wrote:
>
>                     Unfortunately no..
>                     I checked the marketplace.. all vms for xen/vmware
>                     bases have default username/passwords.
>                     KVM on the otherhand writes: Add `SSH_PUBLIC_KEY`
>                     to contextualization to set root credentials.
>
>
>
>
>                     On Wed, Dec 18, 2013 at 12:47 PM, Jens Hoffmann
>                     <[email protected]
>                     <mailto:[email protected]>> wrote:
>
>                         Does this link provide correct credentials for
>                         your image:
>                         
> http://opennebula.org/cloud:sandbox:kvm#what_are_the_users_and_the_passwords?
>
>
>                         Jens
>
>                         --
>                         gpg --keyserver pgp.mit.edu
>                         <http://pgp.mit.edu> --recv-keys 0xDB1CAFB5
>
>
>
>
>                         On 12/18/2013 11:31 AM, Alexander Sibetheros
>                         wrote:
>                         > I recently set up a simple 2 node
>                         opennebula(ubuntu/kvm) (using vmware
>                         > vm's), following the tutorial.
>                         >
>                         > I got a centOS vm to run, but cannot log in.
>                         > I read on other sites that login in is done
>                         via ssh and not vnc, but
>                         > whenever I ssh [email protected]_ip... I get
>                         prompted for password which I
>                         > dont have.
>                         >
>                         >
>                         > I followed this step from the
>                         tutorial(before running I ran ssh-keygen
>                         > -t dsa, because the id_dsa.pub file did not
>                         exist):
>                         >
>                         > """In order to dynamically add ssh keys to
>                         Virtual Machines we must
>                         > add our ssh key to the user template, by
>                         editing the user template:
>                         >
>                         > $ EDITOR=vi oneuser update oneadmin
>                         >
>                         > Add a new line like the following to the
>                         template:
>                         >
>                         > SSH_PUBLIC_KEY="ssh-dss
>                         AAAAB3NzaC1kc3MAAACBANBWTQmm4Gt..."
>                         >
>                         > Substitute the value above with the output
>                         of |cat ~/.ssh/id_dsa.pub|."""
>                         >
>                         >
>                         >
>                         > --
>                         > Alexander Sibetheros
>                         >
>                         >
>                         > _______________________________________________
>                         > Users mailing list
>                         > [email protected]
>                         <mailto:[email protected]>
>                         >
>                         
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>                         _______________________________________________
>                         Users mailing list
>                         [email protected]
>                         <mailto:[email protected]>
>                         
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
>
>                     -- 
>                     Alexander Sibetheros
>
>                     _______________________________________________
>                     Users mailing list
>                     [email protected]
>                     <mailto:[email protected]>
>                     
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
>
>
>             -- 
>             Alexander Sibetheros
>
>
>
>
>
>     -- 
>     Alexander Sibetheros
>
>
>
>
> -- 
> Alexander Sibetheros
> Student at University of Athens,
> Department of Informatics and Telecommunications


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to