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.lezc...@free.fr>
To: "Devendra K. Modium" <dmod...@isi.edu>
Cc: lxc-users@lists.sourceforge.net, "John Paul Walters" <jwalt...@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 '>>' ?

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to