It's not a bug, I just wanted to know how to use an Ubuntu image because everything I tried didn't work
daviDarthemis opened this issue · 2 comments
Hello, I'm trying to use an Ubuntu image but it didn't work even in img. I don't know if I'm converting the file correctly, I wanted an explanation on how to use Ubuntu
Here you can get a working image (Ubuntu Server image for QEMU or Unmatched should work), then unpack with xz -d -T0 [filename]
For booting the image you should also get a working OpenSBI+UBoot firmware (Basically a BIOS for this VM) which you can get here
It is also important that Ubuntu is very RAM-hungry, the default VM setting of 256Mb doesn't work - so you should allocate at least 2G of RAM or so.
Here is a reference cmdline: rvvm fw_payload.bin -i ubuntu-23.10-preinstalled-server-riscv64.img -m 2G -smp 4
Sometimes the GRUB timeout is not working, this is seemingly a GRUB bug and you can press Enter
over the serial console (VM terminal) to skip this.
First boot seems to be very slow, because the image automatically updates itself once.
Log in with ubuntu:ubuntu user, good luck)
Closing this one for now, reopen if any additional help is needed