lxc-create fails: cp: will not create hard link...
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debootstrap (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
lxc (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Steps to reproduce:
1. Start with a machine running a fresh Precise cloud image
2. apt-get update && apt-get dist-upgrade
3. apt-get install lxc
4. cat > lxc.conf <<EOF
lxc.network.
lxc.network.
lxc.network.
EOF
5. lxc-create -n test_container -t ubuntu -f lxc.conf -- -r oneiric
Command fails with:
Download complete
Copy /var/cache/
Copying rootfs to /var/lib/
Failed to copy rootfs
failed to install ubuntu oneiric
failed to execute template 'ubuntu'
Oddly, note the inode numbers below:
ubuntu@
File: `dev/shm'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd01h/64769d Inode: 136776 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-01-09 16:24:07.142185754 +0000
Modify: 2012-01-09 16:23:29.494185766 +0000
Change: 2012-01-09 16:23:29.494185766 +0000
Birth: -
File: `run/shm'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd01h/64769d Inode: 136776 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-01-09 16:24:07.142185754 +0000
Modify: 2012-01-09 16:23:29.494185766 +0000
Change: 2012-01-09 16:23:29.494185766 +0000
Birth: -
dev and run appear to be independent directories:
ubuntu@
drwxr-xr-x 4 root root 4096 Jan 9 16:23 dev
drwxr-xr-x 5 root root 4096 Jan 9 16:24 run
ubuntu@
File: `dev'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd01h/64769d Inode: 131566 Links: 4
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-01-09 16:23:48.418185766 +0000
Modify: 2012-01-09 16:23:29.494185766 +0000
Change: 2012-01-09 16:23:29.494185766 +0000
Birth: -
File: `run'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd01h/64769d Inode: 131572 Links: 5
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-01-09 16:24:08.302185766 +0000
Modify: 2012-01-09 16:24:04.106185766 +0000
Change: 2012-01-09 16:24:04.106185766 +0000
Birth: -
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu4
ProcVersionSign
Uname: Linux 3.2.0-8-virtual x86_64
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
Date: Mon Jan 9 16:38:10 2012
Ec2AMI: ami-00000129
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
LC_COLLATE=C
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
It looks like debootstrap is leaving bind mounts around.