[Bug 913877] [NEW] lxc-create fails: cp: will not create hard link...

Robie Basak 913877 at bugs.launchpad.net
Mon Jan 9 16:43:23 UTC 2012


Public bug reported:

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.type=veth
lxc.network.link=test_network
lxc.network.flags=up
EOF
5. lxc-create -n test_container -t ubuntu -f lxc.conf -- -r oneiric

Command fails with:
Download complete
Copy /var/cache/lxc/oneiric/rootfs-amd64 to /var/lib/lxc/test_container/rootfs ... 
Copying rootfs to /var/lib/lxc/test_container/rootfs ...cp: will not create hard link `/var/lib/lxc/test_container/rootfs/run/shm' to directory `/var/lib/lxc/test_container/rootfs/dev/shm'
Failed to copy rootfs
failed to install ubuntu oneiric
failed to execute template 'ubuntu'

Oddly, note the inode numbers below:

ubuntu at precise-test2:/var/cache/lxc/oneiric/rootfs-amd64$ stat dev/shm run/shm
  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 at precise-test2:/var/cache/lxc/oneiric/rootfs-amd64$ ls -ld dev run
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 at precise-test2:/var/cache/lxc/oneiric/rootfs-amd64$ stat dev run
  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
ProcVersionSignature: User Name 3.2.0-8.14-virtual 3.2.0
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
Ec2AvailabilityZone: nova
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)

** Affects: debootstrap (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: lxc (Ubuntu)
     Importance: High
         Status: Triaged


** Tags: amd64 apport-bug ec2-images precise

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/913877

Title:
  lxc-create fails: cp: will not create hard link...

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debootstrap/+bug/913877/+subscriptions



More information about the Ubuntu-server-bugs mailing list