🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.user
4 messages
4 total messages Started by Charles Curley Mon, 30 Nov 2026 00:30
RISC-V on qemu: notes & glitches
#686
Author: 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/
Re: RISC-V on qemu: notes & glitches
#690
Author: Charles Curley
Date: Mon, 30 Nov 2026 21:30
77 lines
5439 bytes
On Mon, 30 Nov 2026 08:33:38 +0100
john doe <johndoe65534@mail.com> wrote:

> On 11/30/26 01:26, Charles Curley wrote:
> > Other than these problems, the result is excellent. My compliments
> > to Is there an ISO available with a more recent version of Debian
> > Installer? Maybe the testing version?
> >   
> 
> This is for the debian-boot mailing list!

Right, thanks.

> 
> > Glitches:
> > 
> > * The preseed line "d-i netcfg/hostname string riscv" failed. I got
> > the host name "debian" instead. From the log:
> >   
> 
> For amd64, I need to specify the hostname on the DHCP server in the 
> config files or D-I will default to "debian" if the client is not
> known to the server.

Hmm. The comment in the preseed file with which I started says,

# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
# and adjust the following line.
#d-i netcfg/hostname string somehost

It will default to "debian" if it can't get an IP address from DHCP
because it couldn't set up a network interface.

> 
> >    Other aspects of the interface (IP address, netmask, etc.) were
> >    configured correctly.
> >   
> 
> I used Systemd-resolved for DNS!

I'll look into that, but not right now.

> 
> > * 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.
> >   
> 
> Look in /var/log/installer/cdebconf to see what D-I config were 
> used/selected during installation.

I found out that I had a problem with the partitioning stuff in my
preseed file, which was likely the source of this problem. I will fix
that and try again.

> 
> > * 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?
> >   
> 
> Enabling "debug"ging or looking in /run/systemd/netif/leases.
> 

Thanks.


-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/
Re: RISC-V on qemu: notes & glitches
#693
Author: Charles Curley
Date: Tue, 01 Dec 2026 16:20
21 lines
3819 bytes
On Tue, 1 Dec 2026 15:47:12 +0100
john doe <johndoe65534@mail.com> wrote:

> > 
> > # If you want to force a hostname, regardless of what either the
> > DHCP # server returns or what the reverse DNS entry for the IP is,
> > uncomment # and adjust the following line.
> > #d-i netcfg/hostname string somehost
> >   
> 
> Yeah, I use something like 'virsh net-update default add ip-dhcp-host 
> "<host mac='$mac' name='$vm_name' ip='$ip'/>"' prior to fireing up a
> VM!

Or "virsh net-edit default" and edit the XML.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/
Re: RISC-V on qemu: notes & glitches
#694
Author: Charles Curley
Date: Tue, 01 Dec 2026 19:50
18 lines
3987 bytes
On Tue, 1 Dec 2026 19:30:00 +0100
john doe <johndoe65534@mail.com> wrote:

> > 
> > Or "virsh net-edit default" and edit the XML.
> >   
> 
> The only downside is that you need to stop and start the interface
> for your changes to take effect! ;^)

Which seems to require shutting down and restarting all the other VMs
on that network. I'll keep this trick in mind. Thanks

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads