UTM icon indicating copy to clipboard operation
UTM copied to clipboard

No way to emulate Risc-V

Open eugenialoli opened this issue 7 months ago • 4 comments

Describe the issue
Downloaded the latest ubuntu server 25.04 image. Set up utm to resemble how I run qemu on my linux machine using the command line (running the same image file). While it works on my linux machine, with utm it doesn't. I always get a "display output is not active' on utm (virt-gpu-pci).

Ubuntu has a tutorial on how to run their images, which I followed: https://canonical-ubuntu-boards.readthedocs-hosted.com/en/latest/how-to/qemu-riscv/ It works on Linux, but not with UTM. No matter how I configure UTM, it doesn't work for risc-v.

Configuration

  • UTM Version: latest
  • macOS Version: latest
  • Mac Chip (Intel, M1, ... ): M1

eugenialoli avatar May 11 '25 21:05 eugenialoli

Same issue, I tried every single riscv configurations but it fails. (Like unknown device)

JustSomeGitHubUser693 avatar May 13 '25 06:05 JustSomeGitHubUser693

Same issue, I am trying to load u-boot via a Kernel parameter but does not work.

pguerin avatar May 13 '25 14:05 pguerin

Work using qemu on macOS:

qemu-system-riscv64
-machine virt -nographic -m 2048 -smp 4
-kernel Boot/qemu-riscv64_smode/uboot.elf
-device virtio-net-device,netdev=eth0 -netdev user,id=eth0
-device virtio-rng-pci
-drive file=ubuntu-25.04-preinstalled-server-riscv64.img,format=raw,if=virtio

pguerin avatar May 13 '25 14:05 pguerin

I can run it from the command line too, the problem is UTM.

eugenialoli avatar May 13 '25 14:05 eugenialoli