[Lxc-users] Use lxc as root or not?
Stephen Eilert
spedrosa at gmail.com
Wed Jan 18 14:34:26 UTC 2012
On Tue, Jan 17, 2012 at 10:35 AM, allen <allen303allen at gmail.com> wrote:
> hi all:
> I use lxc-0.7.4.1 on Ubuntu10.10-i686, when I use as a normal user
> the simplest way:
>
> -------------------------
> allen at allen-vm:/home$ lxc-create -n hq
> This command has to be run as root
> allen at allen-vm:/home$ sudo lxc-create -n hq
> 'hq' created
> allen at allen-vm:/home$ lxc-start -n hq
> lxc-start: failed to clone(0x2c020000): Operation not permitted
> lxc-start: Operation not permitted - failed to fork into a new namespace
> lxc-start: failed to spawn 'hq'
> lxc-start: No such file or directory - failed to remove cgroup '/cgroup/hq'
> lxc-start: failed to destroy name
> -------------------------
>
> Does that mean I must user lxc as a root user? Why is this necessary?
> Or how can I use lxc as a non-root user?
>
> Thanks in advance.
>
You could try libvirt too, with libvirtd.
-- Stephen
*"Kids these days.*
*Whatever happened to hard work?"*
-- Joel Spolsky, The perils of javaschools
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120118/cdd29500/attachment.html>
More information about the lxc-users
mailing list