Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

This is a temporary solution until the feature is implemented in Podman v5.

Notifications You must be signed in to change notification settings

tnk4on/podman-machine-rosetta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rosetta is now supported in Podman v5.1.0. There will be no further updates to this repository.

How to manually enable Rosetta on a Podman machine

This is a temporary solution until the feature is implemented in Podman v5.

Warning

This solution only work Podman machine v4.

Step

  1. export CONTAINERS_MACHINE_PROVIDER=applehv
  2. podman machine init
  3. Add settings for rosetta in podman-machine-default.json
% vi ~/.config/containers/podman/machine/applehv/podman-machine-default.json

Add the following code in "devices": []

    {
     "kind": "rosetta",
     "MountTag": "rosetta",
     "InstallRosetta": true
    }
  1. podman machine start
  2. podman machine os apply quay.io/tnk4on/rosetta --restart
  3. After the Podman machine restart is complete, you can run containers with rosetta
% podman machine ssh sudo cat /proc/sys/fs/binfmt_misc/rosetta
enabled
interpreter /mnt/rosetta/rosetta
flags: F
offset 0
magic 7f454c4602010100000000000000000002003e00
mask fffffffffffefe00fffffffffffffffffeffffff

% podman run --rm --arch amd64 ubi9 uname -m
x86_64

How to manually build a custom OCI Image

git clone https://github.com/tnk4on/podman-machine-rosetta.git
cd podman-machine-rosetta
podman build -t rosetta .
podman push rosetta quay.io/tnk4on/rosetta

About

This is a temporary solution until the feature is implemented in Podman v5.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published