Your message dated Thu, 21 Mar 2013 09:01:01 +0100
with message-id <[email protected]>
and subject line Re: lxc: Bind mount still not working
has caused the Debian Bug report #703192,
regarding lxc: Bind mount still not working
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
703192: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703192
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lxc
Version: 0.9.0~alpha3-2
Severity: minor
Dear Maintainer,
lxc-start -n gdf -l info -o debug -d
gives the error messages below when trying to bind mount host's resolv.conf
file to the container.
Method is taken from:
http://lxc.sourceforge.net/man/lxc.html
"
More information can be added to the container to facilitate the configuration.
For example, make accessible from the container the resolv.conf file belonging
to the host.
/etc/resolv.conf /home/root/debian/rootfs/etc/resolv.conf none bind 0 0
"
# cat /etc/default/lxc
# /etc/default/lxc
LXC_AUTO="true"
LXC_DIRECTORY="/var/lib/lxc"
LXC_DEBCONFIG_WITH_LIVE_DEBCONFIG="true"
# cat /etc/lxc/lxc.conf
lxcpath=/var/lib/lxc
# ls -l /var/lib/lxc
lrwxrwxrwx 1 root root 7 Mar 12 10:56 /var/lib/lxc -> /vz/lxc
# grep mount /vz/lxc/gdf/config
lxc.mount = /var/lib/lxc/gdf/fstab
# cat /vz/lxc/gdf/fstab
proc /var/lib/lxc/gdf/rootfs/proc proc ro,nodev,noexec,nosuid 0 0
sysfs /var/lib/lxc/gdf/rootfs/sys sysfs ro 0 0
/etc/resolv.conf /var/lib/lxc/gdf/rootfs/etc/resolv.conf none bind 0 0
# [ -f /etc/resolv.conf ] && echo "File exists" || echo "File does not exists"
File exists
lxc-start 1363449994.928 INFO lxc_conf - now p is . /vz.
lxc-start 1363449994.928 INFO lxc_utils - returning /var/lib/lxc
lxc-start 1363449994.928 INFO lxc_utils - returning /var/lib/lxc
lxc-start 1363449994.929 INFO lxc_utils - returning /var/lib/lxc
lxc-start 1363449994.929 ERROR lxc_conf - No such file or directory -
failed to mount '/etc/resolv.conf' on
'/usr/lib/x86_64-linux-gnu/lxc//etc/resolv.conf'
lxc-start 1363449994.929 ERROR lxc_conf - failed to setup the mounts
for 'gdf'
lxc-start 1363449994.929 ERROR lxc_start - failed to setup the
container
lxc-start 1363449994.929 ERROR lxc_sync - invalid sequence number 1.
expected 2
lxc-start 1363449994.929 WARN lxc_conf - failed to remove interface
'eth0'
lxc-start 1363449994.929 WARN lxc_conf - failed to remove interface
'eth1'
lxc-start 1363449994.929 ERROR lxc_start - failed to spawn 'gdf'
Mount target specified relative to the container's rootfs: same thing, except
only one slash after "/usr/lib/x86_64-linux-gnu/lxc".
# grep resolv.conf /vz/lxc/gdf/fstab
/etc/resolv.conf etc/resolv.conf none bind 0 0
lxc-start 1363450698.998 INFO lxc_conf - now p is . /vz.
lxc-start 1363450698.998 INFO lxc_utils - returning /var/lib/lxc
lxc-start 1363450698.998 INFO lxc_utils - returning /var/lib/lxc
lxc-start 1363450698.999 ERROR lxc_conf - No such file or directory -
failed to mount '/etc/resolv.conf' on
'/usr/lib/x86_64-linux-gnu/lxc/etc/resolv.conf'
lxc-start 1363450698.999 ERROR lxc_conf - failed to setup the mounts
for 'gdf'
lxc-start 1363450698.999 ERROR lxc_start - failed to setup the
container
lxc-start 1363450698.999 ERROR lxc_sync - invalid sequence number 1.
expected 2
lxc-start 1363450698.999 WARN lxc_conf - failed to remove interface
'eth0'
lxc-start 1363450698.999 WARN lxc_conf - failed to remove interface
'eth1'
lxc-start 1363450698.999 ERROR lxc_start - failed to spawn 'gdf'
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lxc depends on:
ii debconf [debconf-2.0] 1.5.49
ii libapparmor1 2.7.103-4
ii libc6 2.13-37
ii libcap2 1:2.22-1.2
ii multiarch-support 2.13-37
Versions of packages lxc recommends:
ii debootstrap 1.0.42
ii libcap2-bin 1:2.22-1.2
Versions of packages lxc suggests:
pn debian-keyring <none>
ii gpgv 1.4.12-6
pn live-debconfig-doc <none>
ii rsync 3.0.9-4
-- Configuration Files:
/etc/lxc/lxc.conf changed [not included]
-- debconf information:
lxc/directory: /var/lib/lxc
lxc/auto: true
lxc/title:
--- End Message ---
--- Begin Message ---
ok, closing then.
--
Address: Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email: [email protected]
Internet: http://people.progress-technologies.net/~daniel.baumann/
--- End Message ---