<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">сб, 18 февр. 2023 г., 01:48 Mat <<a href="mailto:mnieuw@zap.a2000.nl">mnieuw@zap.a2000.nl</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andrew,<br>
<br>
I use the below .sh start script for Debian on armhf, network works<br>
fine last time I tried it. </blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Thanks, it seems to use same -device virtio-net-device so may be fedora need some additional actions inside vm...</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can modify inside the virtual disk if<br>
you mount it as a nbd loop device, I seem to remember if I did it your<br>
way it was read-only, but that was year ago. I used it to change the<br>
root password to no password at all when I forgot it....<br>
<br>
MatN<br>
<br>
====<br>
#!/bin/bash<br>
<br>
# note: after succesfull install and working network access (apt),<br>
comment out the cdrom from # /etc/apt/sources.list<br>
ISO=/mnt/DataCommon/ISOs/Debian_11/debian-11.1.0-armhf-netinst.iso<br>
<br>
# Because qemu must be started with a direct kernel parameter, use a<br>
variable to specify # the version. After a kernel update, extract the<br>
proper vmlinuz and initrd files from the client, # and place them in<br>
the directory where this script is started from, then update the<br>
VERSION # accordingly. VERSION=5.10.0-18<br>
<br>
qemu-system-arm -machine virt -cpu cortex-a15 -smp cpus=8,maxcpus=8<br>
--append "root=/dev/vda1 console=ttyAMA0 earlyprintk=ttyAMA0" \<br>
-kernel ./vmlinuz-$VERSION-armmp-lpae -initrd<br>
./initrd.img-$VERSION-armmp-lpae -m 4096 \ -netdev<br>
user,id=n0,hostfwd=tcp::10022-:22,smb=/home/mat/qemu_shared_folder<br>
-device virtio-net-device,netdev=n0 \ -drive<br>
file=debian11-arm.qcow2,if=none,format=qcow2,id=hd0 -device<br>
virtio-blk-device,drive=hd0 \ -serial stdio <br>
=============<br>
<br>
</blockquote></div></div></div>