I've changed the example so it is easier to see that is a context variable. As Jon says is easier to fill this using sunstone but is also pretty easy using the CLI:
$ onetemplate create --name some_name --cpu 1 --memory 512 --disk ubuntu --ssh ~/.ssh/id_rsa.pub You can also use --dry parameter so the template is printed and not registered. On Mon, Apr 29, 2013 at 2:30 AM, Jon <[email protected]> wrote: > Hello Guilherme, > > I had the same problem. How are you creating your template? And what > version of OpenNebula are you on? > > I'm using 4.0RC (3.9.90 I believe it is called), so what follows is based on > my experience with the newest version. > > I've found it's easiest to use Sunstone to create my first template, then > use that template for future cli interaction. > > If you're creating a template in Sunstone, follow the dialogue and on the > "Context" tab there is a box for you to paste your SSH keys. just make sure > each key is on its own line, as the box is small, the key wraps making it > hard to tell sometimes. > > e.g.: > >>> ssh-rsa <ssh key> [email protected] >>> ssh-rsa <ssh key> [email protected] > > Hope that helps. > > Best Regards, > Jon A > > > On Sun, Apr 28, 2013 at 5:47 PM, Guilherme Guimaraes <[email protected]> > wrote: >> >> >> How to use the root account setup SSH_PUBLIC_KEY to login. Well I >> downloaded the Ubuntu Marketplace, created the machines virtuias but does >> not come configured login. I downloaded the package context, did not >> understand the documentation. >> >> >> I thank you !!! >> -- >> Atenciosamente, >> Guilherme B. Guimarães >> Mestrando em Ciência da Computação - PPGCC/UFPA >> Especialista em desenvovilemento para Internet - UFPA >> Bacharel em Ciência da Computação - UNAMA >> >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >> > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > -- Join us at OpenNebulaConf2013 in Berlin from the 24th to the 26th of September 2013! Javier Fontán Muiños Project Engineer OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org | [email protected] | @OpenNebula _______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
