When I specify a save file that exists or does not yet exist, it fails.
Code: Select all
rw-sandbox-lxc.sh /mnt/sda1/sandbox-00
mount: /mnt/sb/sandbox: failed to setup loop device for sandbox-00.
unable to mount rw image: sandbox-00
If I do not specify a save file then I am prompted to create or or to select one, and that works.
Code: Select all
rw-sandbox-lxc.sh
*Not* using user namespaces, dropping capabilities
Starting sandbox (id: sb-lxc) now.
lxc-console -q -e g -n "$LXC_ID" -t 1
Connected to tty 1
Type <Ctrl+g q> to exit the console, <Ctrl+g Ctrl+g> to enter Ctrl+g itself
can't run '/etc/rc.d/rc.sysinit.lxc': Exec format error
Leave sandbox by typing 'poweroff', do not use Ctrl-G as above.
If you accidentally use Ctrl-G connect back with 'lxc-console -n sandbox-id'
getty: tty1: can't execute '/bin/autologin'
Unfortunately, If I select only the first two layers, pup_init and kernel-modules then the sandbox is unusable and it prints unto infinity:
Code: Select all
getty: tty1: can't execute '/bin/autologin'
I can stop it by using another terminal:
Code: Select all
lxc-stop --name sb-lxc
The first terminal then returns the following:
Code: Select all
can't run '/etc/rc.d/rc.shutdown.lxc': Exec format error
Leaving sandbox
How can I get this working?