[Lxc-users] creating debian container on debian sid
Johannes Schauer
j.schauer at email.de
Mon Oct 29 09:36:07 UTC 2012
Hi,
I'm using LXC 0.8.0~rc1-13 on Debian Sid but after running:
sudo lxc-create -n myfirstcontainer -t debian -- --preseed-file /usr/share/doc/lxc/examples/lxc-debian.cfg
and then:
sudo lxc-start -n myfirstcontainer
But the login prompt never appears. Is this a problem in the preseed
file? Or a problem with the configuration script?
Find all the output after this mail.
Is above command supposed to work? If not, why and how to change it?
I found some similar problems in the debian bugtracker but they are
either closed as being fixed or only apply to the LXC version in debian
wheezy.
cheers, josch
josch at hoothoot> sudo lxc-create -n myfirstcontainer -t debian -- --preseed-file /usr/share/doc/lxc/examples/lxc-debian.cfg
Note: Usually the template option is called with a configuration
file option too, mostly to configure the network.
For more information look at lxc.conf (5)
Downloading minimal system...
P: Retrieving InRelease
W: Couldn't download InRelease!
P: Retrieving Release
P: Retrieving Release.gpg
P: Validating Release
I: Good signature from "Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmaster at debian.org>"
I: Good signature from "Squeeze Stable Release Key <debian-release at lists.debian.org>"
P: Parsing Release
P: Retrieving Packages.gz
P: Validating Packages.gz
P: Parsing Packages
P: Retrieving libc-bin
P: Validating libc-bin
P: Retrieving gcc-4.4-base
P: Validating gcc-4.4-base
P: Retrieving libgcc1
P: Validating libgcc1
P: Retrieving libc6
P: Validating libc6
P: Retrieving libstdc++6
P: Validating libstdc++6
P: Retrieving zlib1g
P: Validating zlib1g
P: Retrieving libbz2-1.0
P: Validating libbz2-1.0
P: Retrieving libselinux1
P: Validating libselinux1
P: Retrieving libattr1
P: Validating libattr1
P: Retrieving libacl1
P: Validating libacl1
P: Retrieving coreutils
P: Validating coreutils
P: Retrieving liblzma2
P: Validating liblzma2
P: Retrieving xz-utils
P: Validating xz-utils
P: Retrieving dpkg
P: Validating dpkg
P: Retrieving readline-common
P: Validating readline-common
P: Retrieving libncurses5
P: Validating libncurses5
P: Retrieving libreadline6
P: Validating libreadline6
P: Retrieving libusb-0.1-4
P: Validating libusb-0.1-4
P: Retrieving gpgv
P: Validating gpgv
P: Retrieving gnupg
P: Validating gnupg
P: Retrieving debian-archive-keyring
P: Validating debian-archive-keyring
P: Retrieving apt
P: Validating apt
P: Retrieving mawk
P: Validating mawk
P: Retrieving base-files
P: Validating base-files
P: Retrieving base-passwd
P: Validating base-passwd
P: Retrieving sensible-utils
P: Validating sensible-utils
P: Retrieving debianutils
P: Validating debianutils
P: Retrieving dash
P: Validating dash
P: Retrieving bash
P: Validating bash
P: Retrieving bsdutils
P: Validating bsdutils
P: Retrieving bzip2
P: Validating bzip2
P: Retrieving libncursesw5
P: Validating libncursesw5
P: Retrieving dialog
P: Validating dialog
P: Retrieving diffutils
P: Validating diffutils
P: Retrieving e2fslibs
P: Validating e2fslibs
P: Retrieving perl-base
P: Validating perl-base
P: Retrieving liblocale-gettext-perl
P: Validating liblocale-gettext-perl
P: Retrieving libtext-iconv-perl
P: Validating libtext-iconv-perl
P: Retrieving libtext-charwidth-perl
P: Validating libtext-charwidth-perl
P: Retrieving libtext-wrapi18n-perl
P: Validating libtext-wrapi18n-perl
P: Retrieving debconf-i18n
P: Validating debconf-i18n
P: Retrieving debconf
P: Validating debconf
P: Retrieving libpam0g
P: Validating libpam0g
P: Retrieving libdb4.8
P: Validating libdb4.8
P: Retrieving libpam-modules
P: Validating libpam-modules
P: Retrieving passwd
P: Validating passwd
P: Retrieving libuuid1
P: Validating libuuid1
P: Retrieving libblkid1
P: Validating libblkid1
P: Retrieving libcomerr2
P: Validating libcomerr2
P: Retrieving libss2
P: Validating libss2
P: Retrieving sed
P: Validating sed
P: Retrieving ncurses-bin
P: Validating ncurses-bin
P: Retrieving lsb-base
P: Validating lsb-base
P: Retrieving tzdata
P: Validating tzdata
P: Retrieving libsepol1
P: Validating libsepol1
P: Retrieving mount
P: Validating mount
P: Retrieving sysvinit-utils
P: Validating sysvinit-utils
P: Retrieving insserv
P: Validating insserv
P: Retrieving sysv-rc
P: Validating sysv-rc
P: Retrieving initscripts
P: Validating initscripts
P: Retrieving libslang2
P: Validating libslang2
P: Retrieving util-linux
P: Validating util-linux
P: Retrieving e2fsprogs
P: Validating e2fsprogs
P: Retrieving findutils
P: Validating findutils
P: Retrieving grep
P: Validating grep
P: Retrieving gzip
P: Validating gzip
P: Retrieving hostname
P: Validating hostname
P: Retrieving net-tools
P: Validating net-tools
P: Retrieving ifupdown
P: Validating ifupdown
P: Retrieving iproute
P: Validating iproute
P: Retrieving isc-dhcp-common
P: Validating isc-dhcp-common
P: Retrieving isc-dhcp-client
P: Validating isc-dhcp-client
P: Retrieving perl-modules
P: Validating perl-modules
P: Retrieving libdb4.7
P: Validating libdb4.7
P: Retrieving libgdbm3
P: Validating libgdbm3
P: Retrieving perl
P: Validating perl
P: Retrieving libui-dialog-perl
P: Validating libui-dialog-perl
P: Retrieving locales
P: Validating locales
P: Retrieving libpam-runtime
P: Validating libpam-runtime
P: Retrieving login
P: Validating login
P: Retrieving ncurses-base
P: Validating ncurses-base
P: Retrieving netbase
P: Validating netbase
P: Retrieving libkeyutils1
P: Validating libkeyutils1
P: Retrieving libkrb5support0
P: Validating libkrb5support0
P: Retrieving libk5crypto3
P: Validating libk5crypto3
P: Retrieving libkrb5-3
P: Validating libkrb5-3
P: Retrieving libgssapi-krb5-2
P: Validating libgssapi-krb5-2
P: Retrieving libssl0.9.8
P: Validating libssl0.9.8
P: Retrieving libwrap0
P: Validating libwrap0
P: Retrieving libbsd0
P: Validating libbsd0
P: Retrieving libedit2
P: Validating libedit2
P: Retrieving adduser
P: Validating adduser
P: Retrieving openssh-client
P: Validating openssh-client
P: Retrieving openssh-blacklist
P: Validating openssh-blacklist
P: Retrieving procps
P: Validating procps
P: Retrieving openssh-server
P: Validating openssh-server
P: Retrieving sysvinit
P: Validating sysvinit
P: Retrieving tar
P: Validating tar
P: Retrieving user-setup
P: Validating user-setup
P: Extracting libc-bin
P: Extracting gcc-4.4-base
P: Extracting libc6
P: Extracting libgcc1
P: Extracting libstdc++6
P: Extracting zlib1g
P: Extracting libselinux1
P: Extracting libattr1
P: Extracting libacl1
P: Extracting coreutils
P: Extracting liblzma2
P: Extracting xz-utils
P: Extracting libbz2-1.0
P: Extracting dpkg
P: Extracting libncurses5
P: Extracting mawk
P: Extracting base-files
P: Extracting base-passwd
P: Extracting sensible-utils
P: Extracting debianutils
P: Extracting dash
P: Extracting bash
P: Extracting bsdutils
P: Extracting diffutils
P: Extracting e2fslibs
P: Extracting perl-base
P: Extracting liblocale-gettext-perl
P: Extracting libtext-iconv-perl
P: Extracting libtext-charwidth-perl
P: Extracting libtext-wrapi18n-perl
P: Extracting debconf
P: Extracting debconf-i18n
P: Extracting libpam0g
P: Extracting libdb4.8
P: Extracting libpam-modules
P: Extracting passwd
P: Extracting libuuid1
P: Extracting libblkid1
P: Extracting libcomerr2
P: Extracting libss2
P: Extracting sed
P: Extracting ncurses-bin
P: Extracting lsb-base
P: Extracting tzdata
P: Extracting libsepol1
P: Extracting mount
P: Extracting sysvinit-utils
P: Extracting insserv
P: Extracting sysv-rc
P: Extracting initscripts
P: Extracting libslang2
P: Extracting util-linux
P: Extracting e2fsprogs
P: Extracting findutils
P: Extracting grep
P: Extracting gzip
P: Extracting hostname
P: Extracting libpam-runtime
P: Extracting login
P: Extracting ncurses-base
P: Extracting sysvinit
P: Extracting tar
P: Unpacking package dpkg
P: Configuring package dpkg
P: Configuring helper cdebootstrap-helper-rc.d
P: Configuring helper cdebootstrap-helper-makedev
P: Unpacking package libc-bin
P: Unpacking package gcc-4.4-base
P: Unpacking package libc6
P: Unpacking package libgcc1
P: Unpacking package libstdc++6
P: Unpacking package zlib1g
P: Unpacking package libselinux1
P: Unpacking package libattr1
P: Unpacking package libacl1
P: Unpacking package coreutils
P: Unpacking package liblzma2
P: Unpacking package xz-utils
P: Unpacking package libncurses5
P: Unpacking package mawk
P: Unpacking package base-files
P: Unpacking package base-passwd
P: Unpacking package sensible-utils
P: Unpacking package debianutils
P: Unpacking package libbz2-1.0
P: Unpacking package dash
P: Unpacking package bash
P: Unpacking package bsdutils
P: Unpacking package diffutils
P: Unpacking package e2fslibs
P: Unpacking package perl-base
P: Unpacking package liblocale-gettext-perl
P: Unpacking package libtext-iconv-perl
P: Unpacking package libtext-charwidth-perl
P: Unpacking package libtext-wrapi18n-perl
P: Unpacking package debconf
P: Unpacking package debconf-i18n
P: Unpacking package libpam0g
P: Unpacking package libdb4.8
P: Unpacking package libpam-modules
P: Unpacking package passwd
P: Unpacking package libuuid1
P: Unpacking package libblkid1
P: Unpacking package libcomerr2
P: Unpacking package libss2
P: Unpacking package sed
P: Unpacking package ncurses-bin
P: Unpacking package lsb-base
P: Unpacking package tzdata
P: Unpacking package libsepol1
P: Unpacking package mount
P: Unpacking package sysvinit-utils
P: Unpacking package insserv
P: Unpacking package sysv-rc
P: Unpacking package initscripts
P: Unpacking package libslang2
P: Unpacking package util-linux
P: Unpacking package e2fsprogs
P: Unpacking package findutils
P: Unpacking package grep
P: Unpacking package gzip
P: Unpacking package hostname
P: Unpacking package libpam-runtime
P: Unpacking package login
P: Unpacking package ncurses-base
P: Unpacking package sysvinit
P: Unpacking package tar
P: Configuring package ncurses-base
P: Configuring package sensible-utils
P: Configuring package libc-bin
P: Configuring package gcc-4.4-base
P: Configuring package libc6
P: Configuring package debianutils
P: Configuring package bsdutils
P: Configuring package perl-base
P: Configuring package libsepol1
P: Configuring package diffutils
P: Configuring package tar
P: Configuring package zlib1g
P: Configuring package libgcc1
P: Configuring package libtext-iconv-perl
P: Configuring package libncurses5
P: Configuring package libattr1
P: Configuring package e2fslibs
P: Configuring package base-passwd
P: Configuring package libcomerr2
P: Configuring package mawk
P: Configuring package libdb4.8
P: Configuring package grep
P: Configuring package hostname
P: Configuring package libacl1
P: Configuring package libslang2
P: Configuring package libss2
P: Configuring package findutils
P: Configuring package liblzma2
P: Configuring package insserv
P: Configuring package gzip
P: Configuring package liblocale-gettext-perl
P: Configuring package libbz2-1.0
P: Configuring package libselinux1
P: Configuring package libstdc++6
P: Configuring package libtext-charwidth-perl
P: Configuring package libtext-wrapi18n-perl
P: Configuring package dash
P: Configuring package coreutils
P: Configuring package ncurses-bin
P: Configuring package base-files
P: Configuring package sed
P: Configuring package debconf-i18n
P: Configuring package xz-utils
P: Configuring package sysvinit-utils
P: Configuring package bash
P: Configuring package debconf
P: Configuring package lsb-base
P: Configuring package libpam0g
P: Configuring package sysv-rc
P: Configuring package libpam-modules
P: Configuring package tzdata
P: Configuring package passwd
P: Configuring package libpam-runtime
P: Configuring package login
P: Configuring package libuuid1
P: Configuring package libblkid1
P: Configuring package mount
P: Configuring package initscripts
P: Configuring package util-linux
P: Configuring package sysvinit
P: Configuring package e2fsprogs
P: Unpacking package readline-common
P: Unpacking package libreadline6
P: Unpacking package libusb-0.1-4
P: Unpacking package gpgv
P: Unpacking package gnupg
P: Unpacking package debian-archive-keyring
P: Unpacking package apt
P: Configuring package readline-common
P: Configuring package libreadline6
P: Configuring package libusb-0.1-4
P: Configuring package gpgv
P: Configuring package gnupg
P: Configuring package debian-archive-keyring
P: Configuring package apt
P: Configuring helper cdebootstrap-helper-apt
P: Unpacking package openssh-blacklist
P: Unpacking package adduser
P: Unpacking package net-tools
P: Unpacking package ifupdown
P: Unpacking package iproute
P: Unpacking package isc-dhcp-common
P: Unpacking package isc-dhcp-client
P: Unpacking package libgdbm3
P: Unpacking package libncursesw5
P: Unpacking package libssl0.9.8
P: Unpacking package netbase
P: Unpacking package procps
P: Unpacking package libdb4.7
P: Unpacking package libbsd0
P: Unpacking package libedit2
P: Unpacking package libkeyutils1
P: Unpacking package libkrb5support0
P: Unpacking package libk5crypto3
P: Unpacking package libkrb5-3
P: Unpacking package libgssapi-krb5-2
P: Unpacking package locales
P: Unpacking package openssh-client
P: Unpacking package perl-modules
P: Unpacking package perl
P: Unpacking package bzip2
P: Unpacking package dialog
P: Unpacking package libwrap0
P: Unpacking package openssh-server
P: Unpacking package libui-dialog-perl
P: Unpacking package user-setup
P: Configuring package openssh-blacklist
P: Configuring package adduser
P: Configuring package net-tools
P: Configuring package ifupdown
P: Configuring package iproute
P: Configuring package isc-dhcp-common
P: Configuring package isc-dhcp-client
P: Configuring package libgdbm3
P: Configuring package libncursesw5
P: Configuring package libssl0.9.8
P: Configuring package netbase
P: Configuring package procps
P: Configuring package libdb4.7
P: Configuring package libbsd0
P: Configuring package libedit2
P: Configuring package libkeyutils1
P: Configuring package libkrb5support0
P: Configuring package libk5crypto3
P: Configuring package libkrb5-3
P: Configuring package libgssapi-krb5-2
P: Configuring package locales
P: Configuring package openssh-client
P: Configuring package bzip2
P: Configuring package dialog
P: Configuring package libwrap0
P: Configuring package openssh-server
P: Configuring package user-setup
P: Configuring package perl-modules
P: Configuring package perl
P: Configuring package libui-dialog-perl
P: Deconfiguring helper cdebootstrap-helper-apt
P: Deconfiguring helper cdebootstrap-helper-makedev
P: Writing apt sources.list
P: Writing hosts
P: Writing resolv.conf
(Reading database ... 8838 files and directories currently installed.)
Removing cdebootstrap-helper-rc.d ...
Download complete.
Get:1 http://ftp.ch.debian.org squeeze Release.gpg [1672 B]
Ign http://ftp.ch.debian.org/debian/ squeeze/main Translation-en
Get:2 http://ftp.ch.debian.org squeeze Release [99.8 kB]
Get:3 http://ftp.ch.debian.org squeeze/main amd64 Packages [6539 kB]
Fetched 6641 kB in 10s (639 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit http://ftp.ch.debian.org squeeze Release.gpginer/rootfs...
Ign http://ftp.ch.debian.org/debian/ squeeze/main Translation-en
Get:1 http://ftp.ch.debian.org squeeze/updates Release.gpg [836 B]
Ign http://ftp.ch.debian.org/debian-security/ squeeze/updates/main Translation-en
Get:2 http://ftp.ch.debian.org squeeze-updates Release.gpg [836 B]
Ign http://ftp.ch.debian.org/debian/ squeeze-updates/main Translation-en
Get:3 http://ftp.ch.debian.org squeeze-backports Release.gpg [836 B]
Ign http://ftp.ch.debian.org/debian-backports/ squeeze-backports/main Translation-en
Hit http://ftp.ch.debian.org squeeze Release
Get:4 http://ftp.ch.debian.org squeeze/updates Release [86.9 kB]
Get:5 http://ftp.ch.debian.org squeeze-updates Release [113 kB]
Get:6 http://ftp.ch.debian.org squeeze-backports Release [77.6 kB]
Hit http://ftp.ch.debian.org squeeze/main amd64 Packages
Get:7 http://ftp.ch.debian.org squeeze/updates/main amd64 Packages [269 kB]
Get:8 http://ftp.ch.debian.org squeeze-updates/main amd64 Packages [4661 B]
Get:9 http://ftp.ch.debian.org squeeze-backports/main amd64 Packages [474 kB]
Fetched 1028 kB in 2s (511 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
isc-dhcp-client isc-dhcp-common tzdata
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1263 kB of archives.
After this operation, 295 kB disk space will be freed.
Get:1 http://ftp.ch.debian.org/debian/ squeeze-updates/main tzdata all 2012g-0squeeze1 [642 kB]
Get:2 http://ftp.ch.debian.org/debian-security/ squeeze/updates/main isc-dhcp-client amd64 4.1.1-P1-15+squeeze8 [281 kB]
Get:3 http://ftp.ch.debian.org/debian-security/ squeeze/updates/main isc-dhcp-common amd64 4.1.1-P1-15+squeeze8 [339 kB]
Fetched 1263 kB in 1s (721 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 8837 files and directories currently installed.)
Preparing to replace tzdata 2012c-0squeeze1 (using .../tzdata_2012g-0squeeze1_all.deb) ...
Unpacking replacement tzdata ...
Setting up tzdata (2012g-0squeeze1) ...
Current default time zone: 'Etc/UTC'
Local time is now: Mon Oct 29 09:18:14 UTC 2012.
Universal Time is now: Mon Oct 29 09:18:14 UTC 2012.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
(Reading database ... 8837 files and directories currently installed.)
Preparing to replace isc-dhcp-client 4.1.1-P1-15+squeeze6 (using .../isc-dhcp-client_4.1.1-P1-15+squeeze8_amd64.deb) ...
Unpacking replacement isc-dhcp-client ...
Preparing to replace isc-dhcp-common 4.1.1-P1-15+squeeze6 (using .../isc-dhcp-common_4.1.1-P1-15+squeeze8_amd64.deb) ...
Unpacking replacement isc-dhcp-common ...
Setting up isc-dhcp-common (4.1.1-P1-15+squeeze8) ...
Setting up isc-dhcp-client (4.1.1-P1-15+squeeze8) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Use of uninitialized value in numeric ge (>=) at /usr/share/perl5/Debconf/Priority.pm line 24, <GEN1> line 5.
Use of uninitialized value in numeric ge (>=) at /usr/share/perl5/Debconf/Priority.pm line 24, <GEN1> line 8.
Current default time zone: 'Etc/UTC'
Local time is now: Mon Oct 29 09:18:22 UTC 2012.
Universal Time is now: Mon Oct 29 09:18:22 UTC 2012.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package live-debconfig
/usr/bin/env: live-debconfig: No such file or directory
/usr/bin/env: live-debconfig: No such file or directory
Shadow passwords are now on.
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
'debian' template installed
'myfirstcontainer' created
josch at hoothoot> sudo lxc-start -n myfirstcontainer
Mount failed for selinuxfs on /selinux: Operation not permitted
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
mount: permission denied
mount: permission denied
hostname: you must be root to change the host name
Setting the system clock.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Unable to set System Clock to: Mon Oct 29 09:18:54 UTC 2012 ... (warning).
Activating swap...done.
mount: permission denied
Cleaning up ifupdown....
Setting the system clock.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Unable to set System Clock to: Mon Oct 29 09:18:54 UTC 2012 ... (warning).
Setting up networking....
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
done.
Mounting local filesystems...done.
Activating swapfile swap...done.
Cleaning up temporary files....
Configuring network interfaces...done.
Cleaning up temporary files....
Setting kernel variables ...done.
startpar: service(s) returned failure: hostname.sh ... failed!
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting OpenBSD Secure Shell server: sshdCould not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
.
INIT: Id "6" respawning too fast: disabled for 5 minutes
INIT: Id "1" respawning too fast: disabled for 5 minutes
INIT: Id "5" respawning too fast: disabled for 5 minutes
INIT: Id "3" respawning too fast: disabled for 5 minutes
INIT: Id "4" respawning too fast: disabled for 5 minutes
INIT: Id "2" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel
INIT: Id "2" respawning too fast: disabled for 5 minutes
INIT: Id "5" respawning too fast: disabled for 5 minutes
INIT: Id "4" respawning too fast: disabled for 5 minutes
INIT: Id "1" respawning too fast: disabled for 5 minutes
INIT: Id "3" respawning too fast: disabled for 5 minutes
INIT: Id "6" respawning too fast: disabled for 5 minutes
More information about the lxc-users
mailing list