Hi,
I did use
https://gitorious.org/lxc/mainline/blobs/master/templates/lxc-maverick.in to
create a lxc for ubuntu maverick on maverick. But I changed the config
to use static ip. The root_fs/etc/interfaces/network holds only the
loopback interface. ifconfig shows correct setup of eth0. Anyway, now to
the problems: resolvconf get not started!
# service resolvconf status
* resolvconf updates are disabled
I did dpkg-reconfigure but no changes
# service resolvconf start
* Setting up resolvconf... [ OK ]
# route -n
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use
Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Ok, I havee to add the route manualy (where is a good place for this?)
# route add default gateway 192.168.1.1
# ping www.suse.de
PING turing.suse.de (195.135.220.3): 48 data bytes
...
Well, now it works. Obviously resolvconf get involved correctly ..
The next problem is on halt:
# halt
An alle Benutzer verteilte Nachricht von root@test03
(/dev/console) um 17:26 ...
Das System wird sich JETZT zum Anhalten herunterfahren!
* Asking all remaining processes to terminate...
[ OK ]
* All processes ended within 1 seconds.... [ OK ]
* Deconfiguring network interfaces... [ OK ]
* Deactivating swap... [fail]
mount: / is busy
* Will now halt
It will not get host's console - I have to lxc-stop from other console
window.
How to fix it?
Thanks
Olaf
Here are the packages inside the container:
# dpkg -l
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler:
GROSS=schlecht)
||/ Name Version Beschreibung
+++-==============-==============-============================================
ii adduser 3.112ubuntu1 add and remove users and groups
ii apt 0.8.3ubuntu7 Advanced front-end for dpkg
ii apt-utils 0.8.3ubuntu7 APT utility programs
ii base-files 5.0.0ubuntu23 Debian base system miscellaneous files
ii base-passwd 3.5.22 Debian base system master password and
group
ii bash 4.1-2ubuntu4 The GNU Bourne Again SHell
ii bsdutils 1:2.17.2-0ubun Basic utilities from 4.4BSD-Lite
ii busybox-initra 1:1.15.3-1ubun Standalone shell setup for initramfs
ii coreutils 8.5-1ubuntu3 GNU core utilities
ii cpio 2.11-4ubuntu1 GNU cpio -- a program to manage
archives of
ii dash 0.5.5.1-7ubunt POSIX-compliant shell
ii debconf 1.5.32ubuntu3 Debian configuration management system
ii debconf-i18n 1.5.32ubuntu3 full internationalization support for
debcon
ii debianutils 3.2.3 Miscellaneous utilities specific to Debian
ii dhcp3-client 3.1.3-2ubuntu6 DHCP client
ii dhcp3-common 3.1.3-2ubuntu6 common files used by all the dhcp3*
packages
ii dialog 1.1-20100428-1 Displays user-friendly dialog boxes
from she
ii diffutils 1:3.0-1 File comparison utilities
ii dpkg 1.15.8.4ubuntu Debian package management system
ii e2fslibs 1.41.12-1ubunt ext2/ext3/ext4 file system libraries
ii e2fsprogs 1.41.12-1ubunt ext2/ext3/ext4 file system utilities
ii findutils 4.4.2-1ubuntu1 utilities for finding files--find, xargs
ii gcc-4.5-base 4.5.1-7ubuntu2 The GNU Compiler Collection (base package)
ii gpgv 1.4.10-2ubuntu GNU privacy guard - signature
verification t
ii grep 2.6.3-3 GNU grep, egrep and fgrep
ii gzip 1.3.12-9ubuntu GNU compression utilities
ii hostname 3.04ubuntu1 utility to set/show the host name or
domain
ii ifupdown 0.6.10ubuntu3 high level tools to configure network
interf
ii inetutils-ping 2:1.6-3 ICMP echo tool
ii initramfs-tool 0.98.1ubuntu6 tools for generating an initramfs
ii initramfs-tool 0.98.1ubuntu6 binaries used by initramfs-tools
ii initscripts 2.87dsf-4ubunt scripts for initializing and shutting
down t
ii insserv 1.14.0-2 Tool to organize boot sequence using
LSB ini
ii iproute 20100519-2 networking and traffic control tools
ii klibc-utils 1.5.20-1 small utilities built with klibc for
early b
ii language-pack- 1:10.10+201009 translation updates for language German
ii language-pack- 1:10.10+201009 translations for language German
ii libacl1 2.2.49-3 Access control list shared library
ii libattr1 1:2.4.44-2 Extended attribute shared library
ii libblkid1 2.17.2-0ubuntu block device id library
ii libbsd0 0.2.0-1 utility functions from BSD systems -
shared
ii libbz2-1.0 1.0.5-4ubuntu1 high-quality block-sorting file
compressor l
ii libc-bin 2.12.1-0ubuntu Embedded GNU C Library: Binaries
ii libc6 2.12.1-0ubuntu Embedded GNU C Library: Shared libraries
ii libcomerr2 1.41.12-1ubunt common error description library
ii libdb4.8 4.8.30-1 Berkeley v4.8 Database Libraries [runtime]
ii libdbus-1-3 1.4.0-0ubuntu1 simple interprocess messaging system
ii libdrm-intel1 2.4.21-1ubuntu Userspace interface to intel-specific
kernel
ii libdrm-nouveau 2.4.21-1ubuntu Userspace interface to
nouveau-specific kern
ii libdrm-radeon1 2.4.21-1ubuntu Userspace interface to radeon-specific
kerne
ii libdrm2 2.4.21-1ubuntu Userspace interface to kernel DRM
services -
ii libedit2 2.11-20080614- BSD editline and history libraries
ii libexpat1 2.0.1-7ubuntu1 XML parsing C library - runtime library
ii libgcc1 1:4.5.1-7ubunt GCC support library
ii libglib2.0-0 2.26.0-0ubuntu The GLib library of C routines
ii libgssapi-krb5 1.8.1+dfsg-5 MIT Kerberos runtime libraries - krb5
GSS-AP
ii libk5crypto3 1.8.1+dfsg-5 MIT Kerberos runtime libraries -
Crypto Libr
ii libkeyutils1 1.4-1 Linux Key Management Utilities (library)
ii libklibc 1.5.20-1 minimal libc subset for use with initramfs
ii libkrb5-3 1.8.1+dfsg-5 MIT Kerberos runtime libraries
ii libkrb5support 1.8.1+dfsg-5 MIT Kerberos runtime libraries -
Support lib
ii liblocale-gett 1.05-6 Using libc functions for
internationalizatio
ii liblzma2 4.999.9beta+20 XZ-format compression library
ii libncurses5 5.7+20100626-0 shared libraries for terminal handling
ii libncursesw5 5.7+20100626-0 shared libraries for terminal handling
(wide
ii libnih-dbus1 1.0.2-1ubuntu2 NIH D-Bus Bindings Library
ii libnih1 1.0.2-1ubuntu2 NIH Utility Library
ii libpam-modules 1.1.1-4ubuntu1 Pluggable Authentication Modules for PAM
ii libpam-runtime 1.1.1-4ubuntu1 Runtime support for the PAM library
ii libpam0g 1.1.1-4ubuntu1 Pluggable Authentication Modules library
ii libpcre3 8.02-1 Perl 5 Compatible Regular Expression
Library
ii libplymouth2 0.8.2-2ubuntu5 graphical boot animation and logger -
shared
ii libpng12-0 1.2.44-1 PNG library - runtime
ii libreadline6 6.1-3 GNU readline and history libraries,
run-time
ii libselinux1 2.0.94-1 SELinux runtime shared libraries
ii libsepol1 2.0.41-1 SELinux library for manipulating
binary secu
ii libslang2 2.2.2-4ubuntu1 The S-Lang programming library -
runtime ver
ii libsqlite3-0 3.7.2-1 SQLite 3 shared library
ii libss2 1.41.12-1ubunt command-line interface parsing library
ii libssl0.9.8 0.9.8o-1ubuntu SSL shared libraries
ii libstdc++6 4.5.1-7ubuntu2 The GNU Standard C++ Library v3
ii libtext-charwi 0.04-6 get display widths of characters on
the term
ii libtext-iconv- 1.7-2 converts between character sets in Perl
ii libtext-wrapi1 0.06-7 internationalized substitute of Text::Wrap
ii libudev0 162-2 udev library
ii libusb-0.1-4 2:0.1.12-15ubu userspace USB programming library
ii libuuid1 2.17.2-0ubuntu Universally Unique ID library
ii libwrap0 7.6.q-19 Wietse Venema's TCP wrappers library
ii locales 2.13+git201008 common files for locale support
ii login 1:4.1.4.2-1ubu system login tools
ii lsb-base 4.0-0ubuntu8 Linux Standard Base 4.0 init script
function
ii lsb-release 4.0-0ubuntu8 Linux Standard Base version reporting
utilit
ii makedev 2.3.1-89ubuntu creates device files in /dev
ii mawk 1.3.3-15ubuntu a pattern scanning and text processing
langu
ii mime-support 3.48-1ubuntu2 MIME files 'mime.types' & 'mailcap',
and sup
ii module-init-to 3.12-1ubuntu2 tools for managing Linux kernel modules
ii mount 2.17.2-0ubuntu Tools for mounting and manipulating
filesyst
ii mountall 2.19 filesystem mounting tool
ii nano 2.2.4-1 small, friendly text editor inspired
by Pico
ii ncurses-base 5.7+20100626-0 basic terminal type definitions
ii ncurses-bin 5.7+20100626-0 terminal-related programs and man pages
ii net-tools 1.60-23ubuntu3 The NET-3 networking toolkit
ii netbase 4.35ubuntu3 Basic TCP/IP networking system
ii openssh-client 1:5.5p1-4ubunt secure shell (SSH) client, for secure
access
ii openssh-server 1:5.5p1-4ubunt secure shell (SSH) server, for secure
access
ii passwd 1:4.1.4.2-1ubu change and administer password and
group dat
ii perl-base 5.10.1-12ubunt minimal Perl system
ii plymouth 0.8.2-2ubuntu5 graphical boot animation and logger -
main p
ii procps 1:3.2.8-9ubunt /proc file system utilities
ii python 2.6.6-2ubuntu1 interactive high-level object-oriented
langu
ii python-central 0.6.15ubuntu2 register and build utility for Python
packag
ii python-minimal 2.6.6-2ubuntu1 minimal subset of the Python language
(defau
ii python2.6 2.6.6-5ubuntu1 An interactive high-level
object-oriented la
ii python2.6-mini 2.6.6-5ubuntu1 A minimal subset of the Python
language (ver
ii readline-commo 6.1-3 GNU readline and history libraries,
common f
ii resolvconf 1.46ubuntu1 name server information handler
ii sed 4.2.1-7 The GNU sed stream editor
ii sensible-utils 0.0.4ubuntu1 Utilities for sensible alternative
selection
ii ssh 1:5.5p1-4ubunt secure shell client and server
(metapackage)
ii sysv-rc 2.87dsf-4ubunt System-V-like runlevel change mechanism
ii sysvinit-utils 2.87dsf-4ubunt System-V-like utilities
ii tar 1.23-2 GNU version of the tar archiving utility
ii tzdata 2010l-1 time zone and daylight-saving time data
ii udev 162-2 rule-based device node and kernel
event mana
ii upstart 0.6.6-3 event-based init daemon
ii util-linux 2.17.2-0ubuntu Miscellaneous system utilities
ii xz-utils 4.999.9beta+20 XZ-format compression utilities
ii zlib1g 1:1.2.3.4.dfsg compression library - runtime
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.ipv4 = 192.168.1.23/24
lxc.network.hwaddr = 0E:08:39:85:25:BC
lxc.network.mtu = 1500
lxc.utsname = test03
lxc.tty = 4
lxc.pts = 1024
lxc.rootfs = /var/lib/lxc/test03/rootfs
lxc.mount = /var/lib/lxc/test03/fstab
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
# /dev/pts*
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users