Hi,<div><br></div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Can you execute CLI commands with those "oneadmin:onead" credentials? Try any command, like 'oneuser show' or 'onevm list'</div>

--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>

<br>
<br><br><div class="gmail_quote">On Wed, Oct 31, 2012 at 5:28 AM, rajesh kannan <span dir="ltr"><<a href="mailto:asrajeshkannan@gmail.com" target="_blank">asrajeshkannan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

sorry for asking once again because i dont have choice to ask any one so pls help me ....i had this problem past one month.... i try out all possibility ....i refer all your passed question on [one_users] ...they are said about only ONE_AUTH file but am specified correctly .....<div>


<br></div><div>i dont know what was the problem pls help..............</div><div><br></div><div>//this java program given in opennebula websites<br></div><div><br></div><div>// i made only changes on this only </div><div>


<br></div><div>//passing the parameter username:password and XML-RPC</div><div><br></div><div>//then change the vmTemplate Variable </div><div><br></div><div><br></div><div><div>Client oneClient = new Client("oneadmin:onead","<a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a>");</div>


<div> </div><div>    String vmTemplate =</div><div>          "NAME     = vm_from_java    CPU = 0.1    MEMORY = 64\n"</div><div>        + "DISK     = [\n"</div><div>        + "\tsource   = \"/var/lib/images/ttylinux.img\",\n"</div>


<div>        + "\ttarget   = \"hda\",\n"</div><div>        +"\thostname    = \"$NAME\",\n"</div><div>        +"\tip_public   = \"PUBLIC_IP\",\n"</div><div>        +"\t root_pubkey = \"id_rsa\",\n"</div>


<div>        +"\tfiles      = \"/var/lib/one/init.sh ~/.ssh/id_rsa\",\n"</div><div>        +"\tusername    = \"opennebula\",\n"</div><div>        +"\tuser_pubkey = \"id_rsa\",\n"</div>


<div>        + "\treadonly = \"no\" ]\n"</div><div>        + "FEATURES = [ acpi=\"no\" ]";</div><div><br></div><div>oneadmin@SONY-VAIO:~/lib/java$ javac vmcre.java <br></div><div> </div>


</div><div><div>oneadmin@SONY-VAIO:~/lib/java$ java vmcre </div></div><div><br></div><div>ERRR</div><div><div>[VirtualMachineAllocate] User couldn't be authenticated, aborting call.</div></div><div><br></div><div><br>


</div><div>when i try to install opennebula i did this kind of ssh operation </div><div><div><br></div><div><br></div><div>su -l oneadmin</div><div>ssh-keygen</div><div>{Note - all defaults, and no passphrase.}</div><div>


cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys</div><div>nano ~/.ssh/config</div><div>[add below two lines to SSH config file]</div><div>Host *</div></div><div><div>StrictHostKeyCheckingno</div></div><div><br></div><div>


<br></div><div>Is there any problem on this????????</div><div><br></div><div><br></div><div>Env  variable </div><div><br></div><div><div>oneadmin@SONY-VAIO:~/lib/java$ cat ~/.bash_profile </div><div><br></div><div><br></div>


<div>export ONE_LOCATION=/var/lib/one</div><div>export ONE_AUTH=$ONE_LOCATION/.one/one_auth</div><div>export ONE_XMLRPC=<a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a></div><div>export PATH=$ONE_LOCATION/bin:/usr/local/bin:/var/lib/gems/1.8/bin/:/var/lib/gems/1.8/:$PATH</div>


<div><br></div></div><div><br></div><div>Username:password ONE_AUTH file</div><div><br></div><div><div>oneadmin@SONY-VAIO:~/lib/java$ cat ~/.one/one_auth </div><div><br></div><div>oneadmin:onead         </div><div><br></div>


<div>//(Username:password)</div></div><div><br></div><div><br></div><div><div>oneadmin@SONY-VAIO:~/lib/java$ cat ~/etc/oned.conf </div></div><div><br></div><div><div>AUTH_MAD = [</div><div>    executable = "one_auth_mad",</div>


<div>arguments  = "--authn ssh,x509,ldap,server_cipher,server_x509" ]<br></div><div><br></div></div><div>uncomment this line also <br></div><div><br></div><div><br></div><div><br></div><div>i dont know what else suppose to do to recover this problem </div>


<div><br></div><div>sorry for distrub </div><div><br></div><div>i need to finish the project on this month pls help me</div><div><br></div><div>if u know something else do on this pls mail me</div><div><br></div><div>................if know please help...................</div>


<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>