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">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">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>