Skip to main content

Questions tagged [binfmt]

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

2 votes
0 answers
97 views

"cannot execute: required file not found" when chroot to a rootfs with different architecture

I bootstrapped an arch x86_64 rootfs on arch linux arm vm with qemu-x86_64 binfmt registered and copied static qemu-x86_64 to the same path in the chroot: [root@archlinux ~]# cat /proc/sys/fs/...
William's user avatar
  • 305
0 votes
0 answers
45 views

QEMU arch-chroot using external custom kernel

I've made an ArchLinux RootFS for zynqmp like here. But I haven't installed kernel inside RootFS and deleted hte one which is default, as I want to change kernels frequently, so I've placed it in BOOT ...
lazba's user avatar
  • 1
0 votes
0 answers
71 views

Last execution time of executables in a particular folder

I plan on creating a script which would help me with detecting long-time unused manually installed packages. For this, it would be neat though if I had a way of finding out the executed time for each ...
phk's user avatar
  • 6,123
0 votes
2 answers
2k 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 /...
Shuzheng's user avatar
  • 4,971
1 vote
1 answer
708 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 ...
Shuzheng's user avatar
  • 4,971
0 votes
0 answers
284 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 ...
aga.91's user avatar
  • 13
3 votes
0 answers
733 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 ...
Areopag's user avatar
  • 31
2 votes
0 answers
417 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....
sondra.kinsey's user avatar
0 votes
1 answer
914 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 ...
Jon Watte's user avatar
  • 159
0 votes
0 answers
154 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/...
Tim's user avatar
  • 107k
0 votes
1 answer
425 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 ...
P Daddy's user avatar
  • 385
6 votes
1 answer
3k 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 ...
Tim's user avatar
  • 107k
1 vote
1 answer
3k 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. ...
Sjoerd's user avatar
  • 471
2 votes
0 answers
1k 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.
Velkan's user avatar
  • 581
2 votes
1 answer
247 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 ...
Justin Dearing's user avatar

15 30 50 per page