Dear all,

I have found a solution. Apparently, the scp command that is executed in the tm_clone.sh script (using tmssh as your transfer manager), uses your local full name. This means that, for the scp program, it looks like you are doing a file transfer between two remote hosts. In concrete, this means that the scp will do a ssh to your own machine! So, besides ensuring access for the oneadmin user to the cluster nodes without asking for a password, you should also make sure that you do this to your own machine.

A second aspect to the solution is that your FULL machine name is used. For example: ssh oneadmin@frontend will differ from ssh [email protected] (it was in my case, as I have both a public network interface and a private network interface). Depending on your /etc/hosts and /etc/hostname settings, you have to make that it is the correct one you configure.

So in short, to avoid the problem, make sure that sudo -u ssh [email protected] works perfectly!

Best regards,
Pieter

Op 16/03/2011 14:35, Pieter Simoens schreef:
Dear all,

I have a problem when I want to create a virtual machine ("onevm create myvm.conf") . Studying the logs and previous posts on this list, shows me that apparently there is a problem with the ssh keys.
Nevertheless, the ssh keys for the oneadmin user are perfectly configured.

More specifically, when I do a "sudo -u oneadmin ssh clusternodename", I log in without asking for any password question nor other problem.

I am thinking that the problem may be that I am not logging in as the oneadmin user, and rather as root or user "pieter" (my regular username).  However, I have no idea how I can arrange this.

I have tried "sudo -u oneadmin onevm create myvm.conf", but apparently, this is wrong syntax.
I tried to do a sudo su oneadmin, but then it asks for a password that I have never generated.

Just to inform you: I have installed OpenNebula on a Ubuntu machine through the apt package manager. Meaning (as far as I could see) that I am running OpenNebula 1.2...
This package automatically creates the oneadmin user, but I don't think it has ever asked me for a password. So I do not know how to change to the oneadmin user...

Thank you in advance,
Pieter
-- 
Pieter Simoens, Ph.D.
Department of Information Technology
Internet Based Communication Networks and Services (IBCN)
Ghent University - IBBT
Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
T: +32 9 33 14878 ; T Secr: +32 9 33 14900
F: +32 9 33 14899
W : www.ibcn.intec.UGent.be
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

-- 
Pieter Simoens, Ph.D.
Department of Information Technology
Internet Based Communication Networks and Services (IBCN)
Ghent University - IBBT
Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
T: +32 9 33 14878 ; T Secr: +32 9 33 14900
F: +32 9 33 14899
W : www.ibcn.intec.UGent.be

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

Reply via email to