ascii image


0010101000011111101001101010000010011000
1110101110110101011011111010010010001011
0001011100011101111001010011010010111110
0000010111101001100000110011101100001000
0011000000111010001111111000100110000001
1010110110000000000001011001000110001010
0101100010101100000100000010100100010101
0001011001011101100011000101110111101110
0110010100110100111101110100110011111101
0010111100110011010010110010101111011011
0100000000001001001011000010110100101001
1101000111100000110111011100110111000010
1111110001111111101101001010000111101100
0010110000100000111011000000101100010110
0101111000011100111010000000011111101111
0010010011110010011101001000110101000101
0000000001000100001111111100111010001111

Thursday, 12 November 2015

lxd - container wont start due to fork error


# lxc start test-centos-6 

error: Error calling 'lxd forkstart test-centos-6 /var/lib/lxd/containers /var/log/lxd/test-centos-6/lxc.conf': err='exit status 1'
Try `lxc info --show-log test-centos-6` for more info
Check the logs
# lxc info --show-log test-centos-6 | egrep "ERROR"
            lxc 1447352472.614 ERROR    lxc_utils - utils.c:setproctitle:1461 - Invalid argument - setting cmdline failed
            lxc 1447352472.675 ERROR    lxc_sync - sync.c:__sync_wake:62 - sync wake failure : Broken pipe
            lxc 1447352472.675 ERROR    lxc_start - start.c:__lxc_start:1192 - failed to spawn 'test-centos-6'
Basically, i had set the max memory for the container to 4GB.
with
lxc config set test-centos-6 limits.memory 4096
Only thing it is in bytes not MB
This fixes it.
lxc config set test-centos-6 limits.memory 4096000000
Check the container once started
# lxc start test-centos-6

# lxc exec test-centos-6 /bin/bash

[root@test-centos-6 ~]# free -g
             total       used       free     shared    buffers     cached
Mem:             3          0          3          0          0          0
-/+ buffers/cache:          0          3 
Swap:            7          0          7 

No comments:

Post a comment