You could start your ephemeral container in the background and then
connect to it through SSH when it's ready. At least that's what we do.
Works fine, although sometimes there are connection issues which we
simply solve by retrying a couple of times. We use this at least
several hundred times a day and it works for us.
We only have one LXC container per EC2 instance so we set the ip of
the lxc-container to a fixed value.

best,
Flo

On Thu, Aug 23, 2012 at 11:18 PM, Dan Kegel <d...@kegel.com> wrote:
> On Thu, Aug 23, 2012 at 2:10 PM, Serge Hallyn
> <serge.hal...@canonical.com> wrote:
>> right, so do '-u <yourusername>' and it'll ssh into the container as you
>> instead.
>
> But that prompts me for a password, too.  This needs to be unattended.
> I'm getting the feeling that some assembly is required, and I
> should copy /usr/lib/lxc/templates/lxc-ubuntu
> and modify the copy to drop the appropriate files into
> the user's .ssh directory on startup, then use that type
> when creating the container.
>
> Thanks,
> Dan
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Lxc-users mailing list
> Lxc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to