* [9front] Advice on PXE boot, "no boot filename received"
@ 2022-09-06 20:18 wakyct
2022-09-08 9:24 ` wakyct
0 siblings, 1 reply; 3+ messages in thread
From: wakyct @ 2022-09-06 20:18 UTC (permalink / raw)
To: 9front
Hello,
I am trying to PXE boot a laptop terminal via a wired ethernet connection to a 9front qemu guest, but
I can't get past "No boot filename received" on the terminal.
I thought it was a problem of the terminal and the qemu guest not seeing each other's network,
however after the terminal boots from its local disk, I can telnet from the terminal
to the guest via a port I've forwarded in qemu, and I can ping the terminal from the
qemu guest. So at least it seems possible for the two to reach each other.
Maybe I need to configure a bridge as suggested in IRC, but perhaps my config is wrong though
so I would appreciate any help.
Here's the config I have:
cpu% cat /lib/ndb/local
[....]
# the qemu guest
sys=gene ether=525400123456 authdom=qemu auth=10.0.2.15 ip=10.0.2.15 tftp=10.0.2.15
ipnet=qemu ip=10.0.2.0 ipmask=255.255.255.0
ipgw=10.0.2.2
auth=10.0.2.15
authdom=qemu
fs=10.0.2.15
cpu=10.0.2.15
dns=10.0.2.15
dnsdomain=qemu
tftp=10.0.2.15
# the laptop terminal
sys=ursula dom=ursula.qemu ether=0016d3c16297 ip=10.42.0.156 bootf=/386/9bootpxe
cpu% cat /cfg/gene/cpurc
ip/ipconfig
ip/dhcpd
ip/tftpd
cpu% cat /cfg/pxe/0016d3c16297
bootfile=/386/9pc
bootargs=tls
nobootprompt=tls
auth=10.42.0.1
fs=10.42.0.1
cpu=10.42.0.1
mouseport=ps2intellimouse
monitor=vesa
vgasize=1024x768x16
*acpi=1
user=glenda
And the qemu startup:
qemu-system-x86_64 -enable-kvm -cpu host -m 2G \
-net nic,model=virtio,macaddr=52:54:00:12:34:56 \
-net user,\
hostfwd=tcp::17010-:17010,\
hostfwd=tcp::17019-:17019,\
hostfwd=tcp::17020-:17020,\
hostfwd=tcp::12567-:567,\
hostfwd=udp::69-:69,\
hostfwd=udp::564-:564,\
hostfwd=udp::567-:567, \
-device virtio-scsi-pci,id=scsi \
-drive if=none,id=vd0,file=9front.qcow2.img \
-device scsi-hd,drive=vd0 \
Just out of curiosity, I've wondered why the bootf and the bootfile are different (and there is no 9pc in /386/
on the qemu guest). Is 9pc somewhere else at first?
thanks, George
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] Advice on PXE boot, "no boot filename received"
2022-09-06 20:18 [9front] Advice on PXE boot, "no boot filename received" wakyct
@ 2022-09-08 9:24 ` wakyct
2022-09-08 19:02 ` Xiao-Yong Jin
0 siblings, 1 reply; 3+ messages in thread
From: wakyct @ 2022-09-08 9:24 UTC (permalink / raw)
To: 9front
>Maybe I need to configure a bridge as suggested in IRC, but perhaps my
>config is wrong though so I would appreciate any help.
I couldn't get the network 100% working with qemu user networking,
so I did end up setting up a bridge and got the terminal to boot.
One note if it helps other beginners in the future, I couldn't figure out where
the /386/9pc bootfile was on my cpu server until helpful folks in IRC clued me
that I needed to cross-compile for 386 (on my 64 bit qemu cpu server), see
https://fqa.9front.org/fqa5.html.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] Advice on PXE boot, "no boot filename received"
2022-09-08 9:24 ` wakyct
@ 2022-09-08 19:02 ` Xiao-Yong Jin
0 siblings, 0 replies; 3+ messages in thread
From: Xiao-Yong Jin @ 2022-09-08 19:02 UTC (permalink / raw)
To: 9front
> On Sep 8, 2022, at 4:24 AM, wakyct@tilde.team wrote:
>
>> Maybe I need to configure a bridge as suggested in IRC, but perhaps my config is wrong though so I would appreciate any help.
>
> I couldn't get the network 100% working with qemu user networking, so I did end up setting up a bridge and got the terminal to boot.
> One note if it helps other beginners in the future, I couldn't figure out where the /386/9pc bootfile was on my cpu server until helpful folks in IRC clued me that I needed to cross-compile for 386 (on my 64 bit qemu cpu server), see https://fqa.9front.org/fqa5.html.
I use tls boot on my mac. You need to copy the kernel somewhere and have the usual plan9.ini file as initrd, and give a 512-byte file as nvram.
qemu-system-x86_64 \
-machine accel=hvf \
-cpu host \
-smp sockets=1,cores=2,threads=1 \
-m 1024 \
-nographic \
-drive file=/opt/9/nvram,if=virtio,index=0,media=disk,format=raw \
-nic user,mac=99:66:11:22:33:44,model=virtio-net-pci,ipv6=off,hostname=apple,domainname=9core,hostfwd=tcp:127.0.0.1:17019-:17019 \
-kernel /opt/9/9pc64 \
-initrd /opt/9/plan9.ini
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-08 19:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06 20:18 [9front] Advice on PXE boot, "no boot filename received" wakyct
2022-09-08 9:24 ` wakyct
2022-09-08 19:02 ` Xiao-Yong Jin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).