Results 1 to 1 of 1

Thread: lxc-start: No such file or directory - failed to exec /sbin/init

  1. #1
    Join Date
    Oct 2009
    Location
    England
    Beans
    47
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Angry lxc-start: No such file or directory - failed to exec /sbin/init

    I cannot figure out what is wrong with this, and I have to give up and ask for help.

    I have (tried to) setup a linux container with network access where I wish to install a windows executable under Wine. Unfortunately I can't even get it to init.

    Code:
    lxc.utsname = gomez-5
    lxc.network.type = veth
    lxc.network.flags = up
    lxc.network.link = lxcbr0
    lxc.network.ipv4 = 10.0.3.5/24
    lxc.rootfs = /var/lib/lxc/gomez-5/rootfs
    lxc.mount.entry = proc  /var/lib/lxc/gomez-5/rootfs/proc        proc    nodev,nosuid,noexec     0       0
    lxc.mount.entry = /sbin /var/lib/lxc/gomez-5/rootfs/sbin        none    ro,bind                 0       0
    lxc.tty = 1
    I have created the relevant proc and sbin directories in $ROOTFS but

    lxc-start -n gomez-5 -o /tmp/log -l DEBUG
    lxc-start: No such file or directory - failed to exec /sbin/init
    lxc-start: invalid sequence number 1. expected 2
    lxc-start: failed to spawn 'gomez-5
    I cannot figure out why it cannot see /sbin/init, given that the bind mount is successful according to the log.

    Can someone PLEASE help me here? I've wasted hours on what should be an extremely easy container to set up. I've Googled everywhere but the only articles I find suggest I am doing everything correctly.

    Bind mounts work fine with chroot but I would prefer to avoid a totally separate file system if possible.

    TIA
    Attached Files Attached Files

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •