Skip to content

Instructions don't work for Ubuntu 16.04 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
scott-eddy opened this issue Mar 28, 2018 · 2 comments
Open

Instructions don't work for Ubuntu 16.04 #3

scott-eddy opened this issue Mar 28, 2018 · 2 comments

Comments

@scott-eddy
Copy link

Thanks for putting these instructions together, I know this really isn't your burden to bear but I thought I would note some problems I'm having using Ubuntu 16.04

#Description of setup

$ uname -a
Linux virtualbox 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ systemctl status systemd-binfmt
● systemd-binfmt.service - Set Up Additional Binary Formats
   Loaded: loaded (/lib/systemd/system/systemd-binfmt.service; static; vendor preset: enabled)
   Active: inactive (dead) since Wed 2018-03-28 12:22:33 EDT; 7s ago
Condition: start condition failed at Wed 2018-03-28 12:22:33 EDT; 7s ago
           none of the trigger conditions were met
     Docs: man:systemd-binfmt.service(8)
           man:binfmt.d(5)
           https://www.kernel.org/doc/Documentation/binfmt_misc.txt
  Process: 4926 ExecStart=/lib/systemd/systemd-binfmt (code=exited, status=0/SUCCESS)
 Main PID: 4926 (code=exited, status=0/SUCCESS)

Mar 28 12:05:19 virtualbox systemd[1]: Starting Set Up Additional Binary Formats...
Mar 28 12:05:19 virtualbox systemd[1]: Started Set Up Additional Binary Formats.
Mar 28 12:22:33 virtualbox systemd[1]: Stopped Set Up Additional Binary Formats.
Mar 28 12:22:33 virtualbox systemd[1]: Stopping Set Up Additional Binary Formats...

#Install steps

$ git clone https://github.com/computermouth/qemu-static-conf.git
$ sudo mkdir -p /lib/binfmt.d
$ sudo cp qemu-static-conf/*.conf /lib/binfmt.d/
$ sudo systemctl restart systemd-binfmt.service
Job for systemd-binfmt.service failed because the control process exited with error code. See "systemctl status systemd-binfmt.service" and "journalctl -xe" for details.

#Post-install systemd info

$ systemctl status systemd-binfmt
● systemd-binfmt.service - Set Up Additional Binary Formats
   Loaded: loaded (/lib/systemd/system/systemd-binfmt.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2018-03-28 12:27:29 EDT; 2s ago
     Docs: man:systemd-binfmt.service(8)
           man:binfmt.d(5)
           https://www.kernel.org/doc/Documentation/binfmt_misc.txt
  Process: 7562 ExecStart=/lib/systemd/systemd-binfmt (code=exited, status=1/FAILURE)
 Main PID: 7562 (code=exited, status=1/FAILURE)

Mar 28 12:27:29 virtualbox systemd[1]: Starting Set Up Additional Binary Formats...
Mar 28 12:27:29 virtualbox systemd-binfmt[7562]: Failed to add binary format: Invalid argument
Mar 28 12:27:29 virtualbox systemd-binfmt[7562]: Failed to add binary format: Invalid argument
Mar 28 12:27:29 virtualbox systemd-binfmt[7562]: Failed to add binary format: Invalid argument
Mar 28 12:27:29 virtualbox systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
Mar 28 12:27:29 virtualbox systemd[1]: Failed to start Set Up Additional Binary Formats.
Mar 28 12:27:29 virtualbox systemd[1]: systemd-binfmt.service: Unit entered failed state.
Mar 28 12:27:29 virtualbox systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.

Any advice would be appreciated!

@graffic
Copy link

graffic commented Jul 17, 2018

Check your kernel version, the F flag is supported from 4.8 onwards. Usually Ubuntu 16.04 comes by default with 4.4

@umer-ilyas
Copy link

I have same issue

$ uname -a
Linux raspberrypi 5.10.11-v7l+ #1399 SMP Thu Jan 28 12:09:48 GMT 2021 armv7l GNU/Linux
 systemctl status systemd-binfmt.service
● systemd-binfmt.service - Set Up Additional Binary Formats
   Loaded: loaded (/lib/systemd/system/systemd-binfmt.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2021-03-05 11:10:24 PKT; 37s ago
     Docs: man:systemd-binfmt.service(8)
           man:binfmt.d(5)
           https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
           https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
  Process: 7640 ExecStart=/lib/systemd/systemd-binfmt (code=exited, status=1/FAILURE)
 Main PID: 7640 (code=exited, status=1/FAILURE)

Mar 05 11:10:24 raspberrypi systemd[1]: Starting Set Up Additional Binary Formats...
Mar 05 11:10:24 raspberrypi systemd-binfmt[7640]: Failed to add binary format: No such device
Mar 05 11:10:24 raspberrypi systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
Mar 05 11:10:24 raspberrypi systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.
Mar 05 11:10:24 raspberrypi systemd[1]: Failed to start Set Up Additional Binary Formats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants