Parallels Desktop Ubuntu 24.04 (With Rosetta) running x86 program

Mac67

Bit poster
I am an embedded Linux software development engineer and need to use the cross toolchain provided by Linaro. The compiler is arm-linux-gnueabihf-gcc, version 2014.11. I specifically chose Ubuntu With Rosetta for installation. I referred to the content in https://kb.parallels.com/129871, but my compiler still cannot run. What should I do? Thank you!
 

Attachments

  • 截屏2025-06-22 11.49.54.png
    截屏2025-06-22 11.49.54.png
    213.8 KB · Views: 11
I had the same problem and reached out to Parallels support today about it. Very simple reproduction script:

```sh
$ curl --version
curl 8.5.0 (aarch64-unknown-linux-gnu) # ...
$ sudo dpkg --add-architecture amd64
$ sudo apt update
$ sudo apt install curl:amd64
$ curl --version
bash: /usr/bin/curl: cannot execute binary file: Exec format error
```

System: Ubuntu 24.04 with Rosetta (the default option offered by Parallels) on Parallels Pro on MacBook M3 Pro.

I would guess that there is a meaningful step missing from the docs at https://kb.parallels.com/129871/ . LLMs also seem to have no clue about this, and seem to expect to see a rosetta binutil in the VM somewhere.
 
So - an update from Parallels told me to uninstall MalwareBytes from the host and then recreate the VM. That worked to resolve `curl` in my repro script, but does not address the problem in this thread. Arbitrary x86 binaries can still not run.
 
This has worked for me. It might work for you; it might not.

$ sudo /etc/init.d/binfmt-support stop
$ sudo update-binfmts --remove rosetta /media/psf/RosettaLinux/rosetta
$ sudo /etc/init.d/binfmt-support start

Don't ask me how this could possibly work - I would expect removing Rosetta and then starting it would just crash and burn.
 
Back
Top