[Lxc-users] Adding devices to device white list after starting container

Daniel Lezcano daniel.lezcano at free.fr
Fri Jul 29 14:44:10 UTC 2011


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