[Lxc-users] Adding devices to device white list after starting container
Devendra K. Modium
dmodium at isi.edu
Fri Jul 29 14:53:04 UTC 2011
Thanks for the reply.
Just found out I am writing to wrong file.
Devices should be added to the file devices.allow not to
devices.list.
Anyways thanks.
Regards
Devendra
----- Original Message -----
From: "Daniel Lezcano" <daniel.lezcano at free.fr>
To: "Devendra K. Modium" <dmodium at isi.edu>
Cc: lxc-users at lists.sourceforge.net, "John Paul Walters" <jwalters at isi.edu>
Sent: Friday, July 29, 2011 10:44:10 AM
Subject: Re: [Lxc-users] Adding devices to device white list after starting container
On 07/29/2011 04:34 PM, Devendra K. Modium wrote:
> Hi All
>
> I see in couple of sources that after starting the containers,
> we can modify the cgroups resource allocation of that particular
> container.
>
> I am trying to add the specific device to the devices.list after starting the
> container only to get below error
>
> echo "c 252:1 rwm" >> /dev/cgroup/libvirt/lxc/vm2/devices.list
> -bash: echo: write error: Invalid argument
>
> The above file in which I am trying to write to exists in the above path.
>
> Please share your opinions.
Did you try with '>' instead of '>>' ?
More information about the lxc-users
mailing list