[one-users] Problem Login/ssh into vm

Carlos Martín Sánchez cmartin at opennebula.org
Wed Dec 18 06:35:07 PST 2013


Hi Alexander,

On Wed, Dec 18, 2013 at 3:28 PM, Alexander Sibetheros <alexsibeth at gmail.com>
 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 | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>


On Wed, Dec 18, 2013 at 3:28 PM, Alexander Sibetheros
<alexsibeth at gmail.com>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 <
> cmartin at opennebula.org> wrote:
>
>> Hi,
>>
>> On Wed, Dec 18, 2013 at 12:03 PM, Alexander Sibetheros <
>> alexsibeth at gmail.com> 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 | cmartin at opennebula.org | @OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
>>
>>
>> On Wed, Dec 18, 2013 at 12:03 PM, Alexander Sibetheros <
>> alexsibeth at gmail.com> 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 <
>>> jens.hoffmann at cuesoft.eu> 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 --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 root at ..vm_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
>>>> > Users at lists.opennebula.org
>>>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opennebula.org
>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>
>>>
>>>
>>>
>>> --
>>> Alexander Sibetheros
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>
>
> --
> Alexander Sibetheros
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131218/cf6b195f/attachment-0002.htm>


More information about the Users mailing list