You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---
title: Debian RISC-V
architecture: RISC-V64
memory: 1024 MiB
disk: 10 GiB
display: Console
spice_installed: false
username: debian
password: debian
screenshot: to be defined
download: to be defined
utm_link: true
---
## Notes
* Root account username/password is `root`/`password`. You should change this.
* This is a Debian image generated by the [Debian Quick Image Baker](https://people.debian.org/~gio/dqib/).
* Suite: unstable; APT source: `deb [arch=riscv64] http://deb.debian.org/debian/ unstable main`.
Thanks for the prebuilt image, it was very useful to me!
However, I don't think it could be added in its current form, because apt update doesn't work without first editing random text files (because RISC-V is not a "port" anymore).
I fixed things by editing /etc/apt/sources.list ("debian-ports" -> "debian"). I also removed the "unreleased" stuff.
These were the old contents of /etc/apt/sources.list:
deb [arch=riscv64] http://deb.debian.org/debian-ports unstable main
deb [arch=riscv64] http://deb.debian.org/debian-ports unreleased main
This is what I use now (seems to work):
deb http://deb.debian.org/debian/ unstable main
PS. After fixing sources.list, apt update && apt upgrade wanted to download I think hundreds of megabytes of updates, so that would be another reason to create a newer image.
Thanks for the reply, but I still couldn't get things to work. Everything used to work fine before, no idea what changed. I tested different emulated network cards but none of the ones I tried worked. I was using UTM 4.4.5 (on ARM64 14.3.1) but I also tried UTM 4.4.4 and UTM 4.3.5 (didn't help either).
ok found the fix. you have to download the newer img here new img rename file to .zip and then unpack it. go into utm and on the riscv vm delete the virtual driv. and then add a new vitrual drive and select the qcow2 img. Next you have to change networking in the vm to bridged, boot the img and login root/root and edit /etc/network/interface file and change the ip to match your network. seems dhcp is not in these images. once you do this reboot. then relogin and dpkg-reconfigure tzdata and set your time zone. then use date to set your time. then you can apt update. DO NOT DELETER THE KERNEL UNDER DRIVES ! this has the uboot and opensbi on it. leave it alone
At boot I get "Failed to connect to bus: No such file or directory" useing @ksbjr's method.
Then I get "Failed to start networking.service - Raise network interfaces."
Activity
rxhfcy commentedon Nov 28, 2023
@benz0li drive-by comment from a random user:
Thanks for the prebuilt image, it was very useful to me!
However, I don't think it could be added in its current form, because
apt updatedoesn't work without first editing random text files (because RISC-V is not a "port" anymore).I fixed things by editing
/etc/apt/sources.list("debian-ports" -> "debian"). I also removed the "unreleased" stuff.These were the old contents of
/etc/apt/sources.list:This is what I use now (seems to work):
PS. After fixing
sources.list, apt update && apt upgrade wanted to download I think hundreds of megabytes of updates, so that would be another reason to create a newer image.benz0li commentedon Nov 28, 2023
@rxhfcy Done.
debian-unstable-riscv64-utm4.zip now contains the image from the pipeline run on 26 November 2023 at 09:27:10 CET.
benz0li commentedon Feb 14, 2024
What do you mean by that?
rxhfcy commentedon Feb 15, 2024
@benz0li could you try downloading a fresh copy of https://dl.b-data.ch/utm/debian-unstable-riscv64-utm4.zip and running it in UTM? After logging in, the network doesn't seem to work at all for some reason.
I have no idea where the root of the problem is. Is this something you could fix?
benz0li commentedon Feb 16, 2024
Done. Works as expected. (Sonoma 14.3.1 on arm64; UTM 4.4.4).
Me neither. Try changing the VMs network settings. Start with the Emulated Network Card.
rxhfcy commentedon Feb 16, 2024
Thanks for the reply, but I still couldn't get things to work. Everything used to work fine before, no idea what changed. I tested different emulated network cards but none of the ones I tried worked. I was using UTM 4.4.5 (on ARM64 14.3.1) but I also tried UTM 4.4.4 and UTM 4.3.5 (didn't help either).
BTW if it's not a huge hassle, could you create a newer image once again? Maybe that might help?
benz0li commentedon Feb 16, 2024
Sometimes I encounter network problems, too. The only thing that helps is rebooting the machine.
rxhfcy commentedon Feb 16, 2024
Unfortunately rebooting doesn't help for me.
ksbjr commentedon Feb 16, 2024
ok found the fix. you have to download the newer img here new img rename file to .zip and then unpack it. go into utm and on the riscv vm delete the virtual driv. and then add a new vitrual drive and select the qcow2 img. Next you have to change networking in the vm to bridged, boot the img and login root/root and edit /etc/network/interface file and change the ip to match your network. seems dhcp is not in these images. once you do this reboot. then relogin and dpkg-reconfigure tzdata and set your time zone. then use date to set your time. then you can apt update. DO NOT DELETER THE KERNEL UNDER DRIVES ! this has the uboot and opensbi on it. leave it alone
benz0li commentedon Feb 17, 2024
Done.
The network configuration remains unchanged for my images, i.e.
benz0li commentedon Feb 17, 2024
P.S.: Use
virt-customizefrom libguestfs to access and modify virtual machine (VM) disk images.TimTheBig commentedon May 8, 2024
At boot I get "
Failed to connect to bus: No such file or directory" useing @ksbjr's method.Then I get "
Failed to start networking.service - Raise network interfaces."benz0li commentedon Aug 26, 2024
Closing due to lack of interest.
benz0li commentedon Jan 29, 2025
See #31 (comment)
rxhfcy commentedon Feb 2, 2025
@benz0li
Would you consider updating the image again, and switching it to Debian 13 (trixie)? Trixie feels far less intimidating than "unstable".
I believe trixie will have RISC-V support and is set to become the new official stable release pretty soon, hopefully around mid-year.
P.S. UTM 4.6.x seems to have fixed the previous networking problems. I don't think there was anything wrong with your image (possibly a QEMU issue)?