Questions tagged [binfmt]

binfmt_misc is a Linux kernel component that allows it to run foreign executables directly (Windows, Java, …)

Filter by
Sorted by
Tagged with
0 votes
1 answer
328 views

How can I make registered extensions for `binfmt_misc` persist across reboots?

How can I make registered extensions for binfmt_misc persist across reboots? Consider the following command, which performs a binfmt_misc registration: echo ':golang:E::go::/tmp/test:OC' | sudo tee /...
user avatar
  • 3,287
1 vote
1 answer
147 views

Why don't binfmt_misc with flags "OC", when it works without any flags?

I have been testing binfmt_misc feature of Linux on Debian 10, and have found that setting the flags to "OC", to use the credentials of the binary instead of interpreter, causes execution to ...
user avatar
  • 3,287
0 votes
0 answers
87 views

How could I make the changes in `usr/include/linux/binfmts.h` file make effect?

I have Ubuntu server that is running Linux 4.15.0-1082-azure. I updated the usr/include/linux/binfmts.h file in order to increase the size of argument list. I changed the MAX_ARG_PAGES. I need to ...
user avatar
  • 3
3 votes
0 answers
457 views

Cross-arch Docker container will stop emulation

I'm trying to build a portable cross-arch Docker container using QEMU. However, depending on the host system and the programs installed on the host the container behaves differently. Running the ...
user avatar
  • 31
1 vote
0 answers
109 views

What could cause slow binfmt-support.service during boot?

I have a Fujitsu LifeBook with Lubuntu 18.04.2 which is booting very slow. Here's the output from systemd-analyze blame | head -n20 28.869s systemd-journal-flush.service 24.957s dev-sda1.device 14....
user avatar
0 votes
1 answer
740 views

Steam Proton stopped working on Ubuntu 18.04.2 LTS

Ubuntu 18.04.2 LTS on AMD64 with Steam client now at version Feb 18 2019, package 1550534751. Yesterday, I could play Steam Play games (Windows games with the Proton fork of Wine) just fine on my ...
user avatar
  • 169
0 votes
0 answers
150 views

Is `/usr/lib/binfmt-support/run-detectors` supposed to choose mono or wine to run a windows or .net executable? [duplicate]

On Lubuntu 18.04, Is /usr/lib/binfmt-support/run-detectors supposed to choose mono or wine to run a windows or .net executable? $ cat /proc/sys/fs/binfmt_misc/cli enabled interpreter /usr/lib/...
user avatar
  • 89.7k
0 votes
1 answer
300 views

Detect CLI or Wine executable in Manjaro

In my Linux Mint installation, I can directly execute a PE executable at the command line, and if it's a .NET/CLI executable, then it will automatically execute it with Mono, and otherwise, it will ...
user avatar
  • 335
4 votes
1 answer
2k views

What kinds of executable formats do the files under /proc/sys/fs/binfmt_misc/ allow?

I following Michael's reply to see what executable formats my Ubuntu can recognize to execute $ ls -l /proc/sys/fs/binfmt_misc/ total 0 -rw-r--r-- 1 root root 0 Apr 19 16:11 cli -rw-r--r-- 1 root ...
user avatar
  • 89.7k
1 vote
1 answer
2k views

Qemu with binfmt in chroot

I have downloaded some firmware and I want to run some commands in it. I have extracted the firmware, installed qemu and configured binfmts. The problem is that binfmt does not work in the chroot. ...
user avatar
  • 411
1 vote
0 answers
670 views

Installing qemu-user-static and binfmt-support inside an LXC

I'd like to run armhf executables inside an amd64 LXC container. How to do that? update-binfmts --display shows no qemu interpreters.
user avatar
  • 451
2 votes
1 answer
238 views

Is there a more proper place than /etc/rc.local for writing to configure binfmt?

I want to be able to run clr (>NET/mono) exes on my redhat machines, so I add the following to /etc/rc.local: echo ':CLR:M::MZ::/opt/mono-head/bin/mono:' > /proc/sys/fs/binfmt_misc/register This ...
user avatar
3 votes
1 answer
614 views

No /proc/sys/fs/binfmt_misc/CLR on my system?

I run docky which is programmed with mono so I think the binfmt is running correctly, but proc-sys-fs-binfmt_misc.automount complains about it, since I don't have /proc/sys/fs/binfmt_misc/CLR I ...
user avatar
  • 50.7k
3 votes
1 answer
6k views

systemd failure on binfmt services

Systemd has several failed services, and I don't know how to work it out: # systemctl --failed UNIT LOAD ACTIVE SUB JOB DESCRIPTION proc-sys-fs-binfmt_misc.automount ...
user avatar
  • 50.7k