Templates don't launch. Multi-arch problem?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Actually, it's not just the templates. Seems the LXC environment isn't setup correctly and I suspect multi-arch.
Raring 13.04 using kernel 3.8.0-26-generic.
lxc-version 0.9.0 from the daily-builds PPA, but, please note:
I had the same problem under the standard raring edition. I added the daily PPA in the hope that it would help. It didn't!
I purged ia32-libs and ia32-libs-multiarch to no avail.
Does the installation look right?
ybg@bgxtr:
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
Following are two clean-slate scenarios following a fresh install of lxc and cgroup-lite, after purge of ia32-libs, but again, it behaved the same prior to the ia32-libs purge.
First, ubuntu from template:
sudo lxc-create -n ub -t ubuntu -l DEBUG -o ub.log -- -b ybg
[ log file name should have been ./ub.log instead of ub.log. My fault. Don't know why locale is en_AU ]
( skipping lengthy output....)
Ign http://
Fetched 5,327 kB in 13s (386 kB/s)
.
. etc...
Calculating upgrade... Done
The following packages will be upgraded:
isc-dhcp-client isc-dhcp-common libdbus-1-3 libdrm2 libplymouth2 libssl1.0.0 libudev1 plymouth rsyslog
9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,539 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
Get:1 http://
.
. etc...
Get:9 http://
Fetched 3,539 kB in 7s (493 kB/s)
Preconfiguring packages ...
Can not write log, openpty() failed (/dev/pts not mounted?)
.
.
Preparing to replace isc-dhcp-common 4.2.4-5ubuntu2 (using .../isc-
.
. etc...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libssl1.0.0:amd64 (1.0.1c-4ubuntu8.1) ...
Setting up libdbus-1-3:amd64 (1.6.8-1ubuntu6.1) ...
telinit: Failed to connect to socket /var/run/
Setting up libdrm2:amd64 (2.4.43-0ubuntu1.1) ...
.
. etc...
Processing triggers for initramfs-tools ...
Download complete
Copy /var/cache/
Copying rootfs to /usr/lib/
Generating locales...
en_AU.UTF-8... up-to-date
Generation complete.
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
##
# Log in as user ybg
##
Starting:
ybg@bgxtr:
lxc-start: No such file or directory - failed to exec -b
lxc-start: invalid sequence number 1. expected 4
lxc-start: failed to spawn 'ub'
lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/
lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/
lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/
lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/
lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/
lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/
log file, ub.log attached
Scenario from the second standard template (sshd). Log file attached: ~/Media/ Mininetry$ sudo lxc-create -n sshd -t sshd -l DEBUG -o ./sshd.log x86_64- linux-gnu/ lxc/etc/ ssh/ssh_ host_rsa_ key. x86_64- linux-gnu/ lxc/etc/ ssh/ssh_ host_rsa_ key.pub. f9:3a:bd: fa:f1:1c: 3c:52:33: d5:3b:44: c7 root@bgxtr x86_64- linux-gnu/ lxc/etc/ ssh/ssh_ host_dsa_ key. x86_64- linux-gnu/ lxc/etc/ ssh/ssh_ host_dsa_ key.pub. 9a:b5:f5: 6e:cc:b1: 05:f0:c8: ee:ae:bd: d2 root@bgxtr ~/Media/ Mininetry$ sudo lxc-start -n sshd -l DEBUG -o ./sshd.log x86_64- linux-gnu/ lxc/dev/ kmsg
ybg@bgxtr:
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /usr/lib/
Your public key has been saved in /usr/lib/
The key fingerprint is:
c3:09:18:
The key's randomart image is:
+--[ RSA 2048]----+
| .. ... |
| .o o .E |
| ... . o |
| .o o . . |
| o S o |
| o .o + . |
| .o.+ |
| .= o |
| .o. o |
+-----------------+
Generating public/private dsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /usr/lib/
Your public key has been saved in /usr/lib/
The key fingerprint is:
71:42:71:
The key's randomart image is:
+--[ DSA 1024]----+
| o.o o.. |
| . = + + . |
| = o o + .|
| + . + + |
| S . * |
| . . |
| .. |
| .oE |
| .o+. |
+-----------------+
ybg@bgxtr:
lxc-start: Read-only file system - error unlinking /usr/lib/
lxc-start: failed to setup kmsg for 'sshd' 26767/root/ dev//console)
/bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
lxc-start: No such file or directory - stat(/proc/