[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: creating Hurd chroots on Linux using DPKG_ROOT chrootless mode



Hi,

Quoting Samuel Thibault (2023-11-19 10:10:06)
> Johannes Schauer Marin Rodrigues, le dim. 19 nov. 2023 07:45:16 +0100, a ecrit:
> > What am I missing so that I can boot Hurd using qemu without grub?
> - qemu doesn't seem to properly detect gzipped files, so you need to
>   gunzip gnumach first
> 
> - apparently, booting gnumach with qemu-system-i386 broke at some point
>   without -enable-kvm, so it is needed (and recommended anyway for
>   speed), or qemu-system-x86_64

well... I'm on an arm64 laptop (MNT Reform 2 with imx8mq) so I don't have any
kvm for x86 anyways. :)

As a result emulation slowness I get messages like

Timeout reached while waiting for return value
/bin/console: Could not receive return value from daemon process: Connection timed out

> - gnumach itself doesn't contain any ext2fs driver or anything to load
>   binaries, so this needs to be loaded like grub would. You can fetch
>   /hurd/ext2fs.static and /hurd/exec.static from the image (e.g. into
>   /tmp), and add:
> 
> --initrd '/tmp/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed ${root} $(task-create) $(task-resume),/tmp/exec.static $(exec-task=task-create)'
> 
> So in the end this works for me:
> 
> qemu-system-i386 -enable-kvm -m 1G \
>         -kernel /tmp/gnumach-1.8-486 \
>         -append root=device:hd0s2 \
>         --initrd '/tmp/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed ${root} $(task-create) $(task-resume),/tmp/exec.static $(exec-task=task-create)' \
>         -drive file=debian-hurd-20210812.img,format=raw

Debian GNU/Hurd 11 debian console

login:

Nice! That was it, thank you!! :D

Would you also have handy what argument I'd have to pass to connect the serial
terminal with the login tty to QEMU's serial device so that I can run this
without graphic mode?

The command above and the advice to extract ext2fs.static and exec.static
should be put on some wiki page, I think.

Thanks a lot! :)

cheers, josch

Attachment: signature.asc
Description: signature


Reply to: