<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
That did not work.<br>
<br>
I added the following line into cron for testing:<br>
@reboot lxc-autostart -P /home/mike/.local/share/lxc -o
/tmp/out<br>
<br>
/tmp/out:<br>
lxc-autostart 1408491952.652 ERROR lxc_cgmanager - call to
cgmanager_create_sync failed: invalid request<br>
lxc-autostart 1408491952.652 ERROR lxc_cgmanager - Failed to
create hugetlb:mike-ssh<br>
lxc-autostart 1408491952.652 ERROR lxc_cgmanager - Error
creating cgroup hugetlb:mike-ssh<br>
lxc-autostart 1408491952.653 ERROR lxc_start - failed creating
cgroups<br>
lxc-autostart 1408491952.654 ERROR lxc_start - failed to spawn
'mike-ssh'<br>
<br>
<div class="moz-cite-prefix">On 08/19/2014 06:02 PM, Michael H.
Warfield wrote:<br>
</div>
<blockquote
cite="mid:1408485757.11967.574.camel@canyon.ip6.wittsend.com"
type="cite">
<pre wrap="">On Tue, 2014-08-19 at 16:43 -0400, Mike Bernson wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I am running ubuntu 14.04 server.
</pre>
</blockquote>
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">I have a number of containers that are unprivileged containers for normal users
on the system. I am looking for a upstart scripts/config to start the containers on boot.
</pre>
</blockquote>
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">The container do autostart correct if the user logs into the account and does lxc-autostart.
</pre>
</blockquote>
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">It would ok to list the users or directories where the containers exists in some /etc/defaults
config files so scripts do not have to search all users on the system.
</pre>
</blockquote>
<pre wrap="">
IMHO, your best option there would be to use a user crontab.
crontab -e
@reboot lxc-autostart -P {path to user directory) -g {bootgroups}
Each user could then setup and control their own. I would not set up
something on a systemwide basis to scan the user directories. Here
there be dragons.
Regards,
Mike
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
<br>
</body>
</html>