LXC container failed to start on 12.04
Haitao Jiang
jianghaitao at gmail.com
Wed May 9 16:53:10 UTC 2012
I think I tried. Tried again:
$ sudo lxc-list
[sudo] password for haitaoj:
RUNNING
ls: cannot access haitaoj-local-mysql-0: No such file or directory
haitaoj-local-mysql-0
STOPPED
ls: cannot access haitaoj-local-mysql-0: No such file or directory
haitaoj-local-0-template
my-container
$ ls -l /var/lib/lxc/
total 12
drwx------ 3 root root 4096 May 8 16:36 haitaoj-local-0-template
drwx------ 3 root root 4096 May 8 16:38 haitaoj-local-mysql-0
drwxr-xr-x 3 root root 4096 May 8 16:51 my-container
my-container is what I created manually with lxc and it works (can be started)
$ sudo ls -l /var/lib/lxc/*
/var/lib/lxc/haitaoj-local-0-template:
total 12
-rw------- 1 root root 1285 May 8 16:36 config
-rw------- 1 root root 110 May 8 16:36 fstab
drwxr-xr-x 22 root root 4096 May 7 10:53 rootfs
/var/lib/lxc/haitaoj-local-mysql-0:
total 12
-rw------- 1 root root 1274 May 8 16:38 config
-rw------- 1 root root 110 May 8 16:38 fstab
drwxr-xr-x 22 root root 4096 May 7 10:53 rootfs
-rw------- 1 root root 0 May 8 16:38 rootfs.hold
/var/lib/lxc/my-container:
total 12
-rw-r--r-- 1 root root 1249 May 8 16:19 config
-rw-r--r-- 1 root root 110 May 8 16:19 fstab
drwxr-xr-x 22 root root 4096 May 7 10:53 rootfs
-rw------- 1 root root 0 May 8 16:51 rootfs.hold
Anything else I should be looking at?
Thanks a lot
On Wed, May 9, 2012 at 9:39 AM, Serge E. Hallyn <serge at hallyn.com> wrote:
> Quoting Haitao Jiang (jianghaitao at gmail.com):
>> Furthermore,
>>
>> $ lxc-list
>> RUNNING
>> ls: cannot access haitaoj-local-mysql-0: No such file or directory
>>
>> STOPPED
>> ls: cannot access haitaoj-local-mysql-0: No such file or directory
>> haitaoj-local-0-template
>> my-container
>>
>> Is it still a LXC issue or Juju issue that was mentioned in
>> https://bugs.launchpad.net/ubuntu/+source/juju/+bug/930430
>
> Right so to work around it can you sudo lxc-list? Then if
> haitaoj-local-mysql-0 is not running, sudo lxc-start haitaoj-local-mysql-0
> and see if it starts up ok.
>
> -serge
More information about the Juju
mailing list