[lxc-users] memory limits(lxd forkstart) in LXD

Luis M. Ibarra michael.ibarra at gmail.com
Fri Aug 7 19:41:08 UTC 2015


Hi everyone,

According to the configuration specs for memory limits I only have to add:
lxc profile set [profile] [key] [value]

well, I have a container inside a kvm vm with 1gb RAM,  I want to limit the
container memory to 250MB. So I did:

$lxc profile set default limits.memory 250
$lxc profile apply lab1 default

however, when I ran the container I got:

$ lxc start lab1 --debug
2015/08/07 14:38:50 fingering the daemon
2015/08/07 14:38:50 raw response:
{"type":"sync","status":"Success","status_code":200,"metadata":{"api_compat":1,"auth":"trusted","config":{},"environment":{"backing_fs":"ext4","driver":"lxc","kernel_version":"3.19.0-25-generic","lxc_version":"1.1.2","lxd_version":"0.13"}}}
2015/08/07 14:38:50 pong received
2015/08/07 14:38:50 putting {"action":"start","force":false,"timeout":-1}
 to http://unix.socket/1.0/containers/lab1/state
2015/08/07 14:38:50 raw response:
{"type":"async","status":"OK","status_code":100,"operation":"/1.0/operations/30c96f4c-a114-4a9d-8598-43714fcbee90","resources":null,"metadata":null}
2015/08/07 14:38:50 1.0/operations/30c96f4c-a114-4a9d-8598-43714fcbee90/wait
2015/08/07 14:38:55 raw response:
{"type":"sync","status":"Success","status_code":200,"metadata":{"created_at":"2015-08-07T14:38:50.066285022-05:00","updated_at":"2015-08-07T14:38:55.144230833-05:00","status":"Failure","status_code":400,"resources":null,"metadata":"Error
calling 'lxd forkstart': exit status 1","may_cancel":false}}
2015/08/07 14:38:55 Error caught in main: *errors.errorString
error: Error calling 'lxd forkstart': exit status 1


So any ideas about lxd forkstart?


-- 
Luis M. Ibarra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150807/2fcdb650/attachment.html>


More information about the lxc-users mailing list