For the record, this is the broken-out shell script which should factorize init.d/unit/upstart job.
I tried to run " sudo mount --make-rprivate /" to work around that AA issue. Now "sudo ./lxc-net start" fails with
$ sudo lxc-start -n debci
lxc-start: Device or resource busy - failed to set memory.use_hierarchy to 1; continuing
lxc-start: Device or resource busy - failed to set memory.use_hierarchy to 1; continuing
lxc-start: Input/output error - error 5 creating /usr/lib/x86_64-linux-gnu/lxc/dev/lxc/console
lxc-start: failed to setup the console for 'debci'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'debci'
There is no /usr/lib/x86_64-linux-gnu/lxc/dev/, and no dmesg error any more. strace:
25459 mkdir("/usr/lib/x86_64-linux-gnu/lxc/dev/lxc", 0755) = -1 EEXIST (File exists)
25459 unlink("/usr/lib/x86_64-linux-gnu/lxc/dev/console") = -1 ENOENT (No such file or directory)
25459 creat("/usr/lib/x86_64-linux-gnu/lxc/dev/lxc/console", 0660) = -1 EIO (Input/output error)
Apparently /usr/lib/x86_64-linux-gnu/lxc/dev/ is a private mount within LXC?
For the record, this is the broken-out shell script which should factorize init.d/unit/upstart job.
I tried to run " sudo mount --make-rprivate /" to work around that AA issue. Now "sudo ./lxc-net start" fails with
$ sudo lxc-start -n debci use_hierarchy to 1; continuing use_hierarchy to 1; continuing x86_64- linux-gnu/ lxc/dev/ lxc/console
lxc-start: Device or resource busy - failed to set memory.
lxc-start: Device or resource busy - failed to set memory.
lxc-start: Input/output error - error 5 creating /usr/lib/
lxc-start: failed to setup the console for 'debci'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'debci'
There is no /usr/lib/ x86_64- linux-gnu/ lxc/dev/ , and no dmesg error any more. strace:
25459 mkdir(" /usr/lib/ x86_64- linux-gnu/ lxc/dev/ lxc", 0755) = -1 EEXIST (File exists) "/usr/lib/ x86_64- linux-gnu/ lxc/dev/ console" ) = -1 ENOENT (No such file or directory) /usr/lib/ x86_64- linux-gnu/ lxc/dev/ lxc/console" , 0660) = -1 EIO (Input/output error)
25459 unlink(
25459 creat("
Apparently /usr/lib/ x86_64- linux-gnu/ lxc/dev/ is a private mount within LXC?