[Lxc-users] how to troubleshoot lxc service

Rintcius Blok rintcius at gmail.com
Tue Nov 20 20:59:51 UTC 2012


Yes indeed, that version of the kernel is running.

No, I'm not on a macbook air.

It looks far more stable with the new kernel: the problem happened 
twice, but only while I was fiddling with the config file.
It looks like it can be reproduced as follows:

1. lxc-create -t ubuntu-cloud -n test.lxc -- --auth-key 
$HOME/.ssh/id_rsa.pub    --userdata /root/simpleUserdataFile
2. lxc-start -d -n test.lxc
3. note ip address of container
4. lxc-stop -n test.lxc
5. add this line to config file of test container: lxc.network.ip4 = <ip 
address of step 3>
6. lxc-start -d -n test.lxc
7. remove the added line of step 5
8. lxc-start -d -n test.lxc

Can anyone reproduce this as well?
How do I configure the test container correctly with a static IP? It 
says "lxc-start: failed to read configuration file" if I try to add 
lxc.network.ip4.
Tried both in this form 192.168.1.123/24 (as documented in the man 
pages) and using the IP address.

Rintcius

On 19/11/12 22:29, Serge Hallyn wrote:
> Quoting Rintcius Blok (rintcius at gmail.com):
>> Hmm.. I just had the same problem again.
>> I thought it was this bug:
>> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1021471
>> (fixed in 3.5.0-17.28)
>>
>> Am I having the correct version installed? :
>> 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 10:26:51 UTC 2012 x86_64
>> x86_64 x86_64 GNU/Linux
> To be sure - that's the kernel that's running right?  Yeah that
> should have the fix.
>
> You're not by chance running on a macbook air?
>
> If not, it's probably best that you file a new bug.
>
> -serge
>





More information about the lxc-users mailing list