[Lxc-users] Failed to setup networking within container

Vedran Furač vedran.furac at gmail.com
Thu Jan 5 04:05:41 UTC 2012


On 04.01.2012 00:11, Daniel Baumann wrote:

> On 01/03/2012 11:58 PM, Vedran Furač wrote:
>> Host (Debian testing, lxc 0.7.5)
> 
> it's strongly recommended to upgrade to lxc 0.7.5-17 (from sid), as it
> has some important bug fixes over wheezy (0.7.5-9).
> 
>> Container (Debian stable)
> 
> did you create the container with lxc-debian? if so (and after upgrading
> to sids lxc), consider recreating it as the newer lxc-debconf template
> (which you use when invoking lxc-debian on debian) fixes another bunch
> of stuff. note that since you're building a squeeze container, you'll
> need to put the linux-container deb (1-4 from sid, preferably) into
> /usr/share/lxc so that lxc-debconf can pick it up (as linux-container is
> not directly included in squeeze).

Thanks for maintaining the package. I've upgraded LXC to sid, I had the
following issues with sid version (should probably report it to
bugs.debian.org, but still):

In template ${_PARENT_AREA} was always empty (thus getting invalid
sources.lost) no matter what I selected so I had to replace it with
"main contrib non-free" Same goes for ${_PARENT_ARCHIVE_AREAS}.

and also at the end:

Shadow passwords are now on.
adduser: Only one or two names allowed.
chpasswd: (user ) pam_chauthtok() failed, error:
Authentication token manipulation error
chpasswd: (line 1, user ) password not changed


31696 execve("/usr/sbin/adduser", ["adduser", "--disabled-password",
"--gecos", "", ""], [/* 11 vars */]) = 0
31699 execve("/usr/sbin/chpasswd", ["chpasswd"], [/* 11 vars */]) = 0

I had to chroot and then manually set password, but I still get when
"booting":

hostname: you must be root to change the host name
mount: permission denied
mount: permission denied
mount: permission denied
Mount point '/dev/console' does not exist. Skipping mount. ... (warning).
Mount point '/dev/tty1' does not exist. Skipping mount. ... (warning).
...
startpar: service(s) returned failure: hostname.sh ... failed!
Starting OpenBSD Secure Shell server: sshdCould not load host key:
/etc/ssh/ssh_host_ecdsa_key

Regards,
Vedran






More information about the lxc-users mailing list