[Bug 1396536] Re: lxc_start - Exec format error - failed to exec /sbin/init

2020-03-25 Thread Stéphane Graber via ubuntu-bugs
We've not seen any other issue like this in the past 5 years, users
usually know to pick something that they can actually run or know that
they'll need to setup emulation.

The error reported as weird as it is, is the expected behavior from the
kernel when asked to run a foreign architecture binary, so no obvious
bug to fix here nor really a way for LXC to distinguish that case from
an actual permission issue.

** Changed in: lxc (Ubuntu)
   Status: Triaged => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1396536

Title:
  lxc_start - Exec format error - failed to exec /sbin/init

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1396536] Re: lxc_start - Exec format error - failed to exec /sbin/init

2014-11-26 Thread Stéphane Graber
I agree it'd be nice for the download template to be clever and filter
its output. However the fact that it's very very difficult to know what
your CPU is actually capable of running (especially for arm64, armel,
armhf and powerpc, powerpc64 and ppc64el) and the name for the
architectures changes between distributions too.

So for now, we expect our users to know what architecture their CPU is
capable of running and then select something which has a chance to work.

Marking bug report as low priority wishlist.

** Changed in: lxc (Ubuntu)
   Importance: Undecided => Wishlist

** Changed in: lxc (Ubuntu)
   Status: Incomplete => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1396536

Title:
  lxc_start - Exec format error - failed to exec /sbin/init

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1396536] Re: lxc_start - Exec format error - failed to exec /sbin/init

2014-11-26 Thread windowsguy
No my arch is amd64, that's why I specified "-a armhf". 
I know about qemu (I wasn't sure whether to use static or binfmt), but errors 
should be meaningful, instead it seems as if lxc is working fine, but in fact 
it's not. Obviously it's not a matter of permissions, so the error is wrong.

The image I used is downloaded from debian.org, so I didn't prepare it myself.  
Either non-armhf hosts shouldn't list armhf images or should warn (maybe in 
documentation, if not in code) that those aren't usable without additional 
packages.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1396536

Title:
  lxc_start - Exec format error - failed to exec /sbin/init

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1396536] Re: lxc_start - Exec format error - failed to exec /sbin/init

2014-11-26 Thread windowsguy
$ sudo file /var/lib/lxc/u1/rootfs/sbin/upstart
/var/lib/lxc/u1/rootfs/sbin/upstart: ELF 32-bit LSB  shared object, ARM, EABI5 
version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, 
BuildID[sha1]=401fd3761e2edac12fc6081bebbfd834a985e11b, stripped

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1396536

Title:
  lxc_start - Exec format error - failed to exec /sbin/init

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1396536] Re: lxc_start - Exec format error - failed to exec /sbin/init

2014-11-26 Thread windowsguy
$ sudo ls -lisa /var/lib/lxc/u1/rootfs/sbin/init
541928 0 lrwxrwxrwx 1 root root 7 Nov 19 23:17 /var/lib/lxc/u1/rootfs/sbin/init 
-> upstart
$ sudo ls -lisa /var/lib/lxc/u1/rootfs/sbin/upstart
541969 220 -rwxr-xr-x 1 root root 223596 Nov 19 23:17 
/var/lib/lxc/u1/rootfs/sbin/upstart

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1396536

Title:
  lxc_start - Exec format error - failed to exec /sbin/init

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1396536] Re: lxc_start - Exec format error - failed to exec /sbin/init

2014-11-26 Thread windowsguy
In case it wasn't clear I followed instructions for "basic privileged
usage". not user namespaces.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1396536

Title:
  lxc_start - Exec format error - failed to exec /sbin/init

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs