🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #686

RISC-V on qemu: notes & glitches

#686
From: Charles Curley
Date: Mon, 30 Nov 2026 00:30
67 lines
6272 bytes
I tried the RISC-V 64 bit emulation on qemu, using virtual machine
manager to set up the VM and run it. I have Debian 13.8 (trixie) for
both host and guest. So far, so good. The netinst ISO I used is
debian-13.8.0-riscv64-netinst.iso, dated November 21. I used a preseed
file which is adapted from a known good preseed file that works on
testing amd64.

First, it is *slow*! The first time I tried to run a VM, I thought it
had hung up and ran "killall" to kill it. Nope, it's just slow. This is
the inevitable result of instruction-by-instruction emulation.

Second, I got a good install after several errors and retries. I hit
several glitches during the installation.

Other than these problems, the result is excellent. My compliments to
the developers.

Is there an ISO available with a more recent version of Debian
Installer? Maybe the testing version?

Glitches:

* I had problems with apt-cacher-ultra (ACU) which went away when I
  bypassed it. These are likely ACU problems and I will take that up
  with the author.

* The preseed line "d-i netcfg/hostname string riscv" failed. I got the
  host name "debian" instead. From the log:

root@riscv:/var/log/installer# grep hostname *
grep: cdebconf: Is a directory
syslog:Nov 29 18:26:46 netcfg[2650]: DEBUG: Using DNS to try and obtain default hostname
syslog:Nov 29 18:26:46 netcfg[2650]: DEBUG: Getting default hostname from rDNS lookup of autoconfigured address 192.168.128.6
syslog:Nov 29 18:26:46 netcfg[2650]: DEBUG: Getting default hostname from rDNS lookup of autoconfigured address fe80::5054:ff:fe59:4d3a
syslog:Nov 29 18:33:44 debootstrap: Selecting previously unselected package hostname.
syslog:Nov 29 18:33:44 debootstrap: Preparing to unpack .../hostname_3.25_riscv64.deb ...
syslog:Nov 29 18:33:44 debootstrap: Unpacking hostname (3.25) ...
syslog:Nov 29 18:34:09 debootstrap: Setting up hostname (3.25) ...
root@riscv:/var/log/installer# 


  When I installed systemd-networkd, it reported

  riscv systemd-networkd[976]: Could not set hostname: Access denied

  The domain name isn't in /etc/hosts.

  Other aspects of the interface (IP address, netmask, etc.) were
  configured correctly.

* I used the preseed file to automate partitioning. On the AMD64 VMs, I
  get an EFI partition without having to specify it. On the RISC-V
  machine, I did not get the EFI partition, and d-i refused to go any
  further. I had to fall back to manual partitioning, and used the
  guided partioning.

* My usual method of detecting my DNS domain name, dnsdomainname,
  returns an empty string.

  Is there any place I can examine what systemd-networkd got from the
  DHCP server?

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/
Technical Details
Message-ID: <O4Xrj-f15g-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Charles Curley <charlescurley@charlescurley.com>
Newsgroups: linux.debian.user
Subject: RISC-V on qemu: notes & glitches
Date: Mon, 30 Nov 2026 01:30:01 +0100
Message-ID: <O4Xrj-f15g-3@gated-at.bofh.it>
X-Original-To: Debian Users <debian-user@lists.debian.org>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Mon Nov 30 00:26:35 2026
Old-Return-Path: <charlescurley@charlescurley.com>
X-Amavis-Spam-Status: No, score=-2.1 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1] autolearn=ham autolearn_force=no
X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .charlescurley. - helo: .out8.theservercompany. - helo-domain: .theservercompany.)  FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -3.5
Organization: Occasionally
X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Get-Message-Sender-Via: ares.theservercompany.com: authenticated_id: charlescurley@charlescurley.com
X-Authenticated-Sender: ares.theservercompany.com: charlescurley@charlescurley.com
X-Originating-IP: 104.36.62.11
X-Spamexperts-Domain: theservercompany.com
X-Spamexperts-Username: 104.36.62.11
Authentication-Results: theservercompany.com; auth=pass smtp.auth=104.36.62.11@theservercompany.com
X-Spamexperts-Outgoing-Class: ham
X-Spamexperts-Outgoing-Evidence: Combined (0.02)
X-Recommended-Action: accept
X-Filter-ID: 9kzQTOBWQUFZTohSKvQbgI7ZDo5ubYELi59AwcWUnuUjTEnw4zIvwR+jbJTJoe4cPcyZoeJ+9GUi
 MdnAPoSLkyu2SmbhJN1U9FKs8X3+Nt1kith2BLmCTZboDJn/T6D6k8ehErJDXTEb2KTFVZGmvMzc
 BoryHW0A887vI79KewvxCL6qbzQwSkqII04vLHsX4pWx7WxWFZpsjT/483ewgv9QqPJ8g6TBqSjJ
 1i0/zNvEGIk6SwrK6SPvnVd1/rFPQNlM+5SPzhdXJf2FUfPy1u3om1NOCXE1kCr91rpFr6QgMtFm
 ahb/aLIoBRoIY4MM2MyHFPCnqW9OCAYptmwKha7VZqJmzCeHtqZ+QtMgTB2dHxOO5xI77mzEkywJ
 CginJWc6Hvk2XXh9/cAOBIKwOKRNj7ixyBUHQWPam9a0VoMs9H9vRWZELOiK/O0f2DQLVOmISz7d
 nUDX8bj6Kw9ABJ/SQmoZWu+hUWy+QgFJWFsm27PnDpzOvsxjeVScNB0X6cTrAfIBtLJVe62uoyOA
 UhmSvC6qJad8oDRDO7zv2HzLyVG0PwEUYKpMdbkWukA2LtnSp+3/OR0jh46e1c1Zq1goS3MkISSy
 dS6EA7KSoHZHONKA34yXpaQ28nMupCYTxIsukSTBIwlJA2CfcHQQk4RTW602yRQA5EJXZYVlfSNH
 1AwB8Q+0BMtMLupiZCBuZVgoyi1iTadLBWY+ESlhrkvYZ8CaXZrhJzOBbZ1oomh2eOYF+a5ZRU9f
 PKFZj3AXrAj5LMaNnBNL197NF21G2ImFWu2AgpR29/Xn0Ntw+PIMj/5xT2NZ7CNoSWmeY7SG7gKU
 SZzJUYXDMIbsrfGURILUAj1reKtuJ/PKbNBhf4+vu8GLfkBzS1AnvZUGJV9LUp6pmeruBgYc+VW9
 /0xT6lMWjvA3KBPFvXkxxZy50nsHaxJBUo4ZtONhykBqbJVxbQC5erRPXvCgmjdq8p4AMtEVRdf1
 nvOYzW0Ko3aSx1apzqjhTn5YY9rXDmQAqx2X+vcSNOmINmmiI/k61adwTlnbLyb3uZHXxcegfSUB
 IJDP8v5/ws5Mc3w6QS2u8dlL/XtUN++G0DLgrCZmJV78VAISrgforfpawCLJdMIDKa76I6RtJFJt
 Bs6tjE3ZCKx3
X-Report-Abuse-To: spam@mailx1.theservercompany.com
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/833108
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/20261129172615.48d4dab3@peregrine.localdomain
Approved: robomod@news.nic.it
Lines: 67
Sender: robomod@news.nic.it
X-Original-Date: Sun, 29 Nov 2026 17:26:15 -0700
X-Original-Message-ID: <20261129172615.48d4dab3@peregrine.localdomain>
X-Original-X-Complaints-To: abuse@mailx1.theservercompany.com