9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Plan 9 via QEMU
@ 2009-08-21 13:50 Akshat Kumar
  2009-08-21 14:32 ` matt
  0 siblings, 1 reply; 13+ messages in thread
From: Akshat Kumar @ 2009-08-21 13:50 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

... on Acer Aspire One to add more fun.

Yes, on the Acer Aspire One, I have
no means to compile, with all hopes of
GCC thwarted by the draconian schemes
of archaic Linux package managers,
all slowly drowning in dependency hell.
But enough fantasising --

No GCC, no kernel sources (which are
presumably highly customised for the
hardware), so no extra kernel modules.
This means bridging as well as filtering
are out the window, since I lack
bridge.ko, tun.ko, and ipt_wtf.ko (though
interestingly enough I found tun.ko that
someone had precompiled for the AAO).

And yet, I need to get QEMU to PXE
boot Plan 9 and then use the local Ken
FS server for root filesystem. The key
was a different style of networking here -
the pcap[1] device. It uses the host
system's device directly, so if I want to
PXE boot Plan 9 inside QEMU, I have
to 'ifconfig ath0 0.0.0.0' first, but it works.
The way around that would be to use a
different MAC address for the emulated
device, which is possible with plain ether-
net NIC, and with certain wireless config-
urations too, but ath0 won't allow it for
some reason.

So, QEMU starts up[2], PXE boots Plan 9,
which gets to the "root is from (tcp, il) [il]:"
prompt just fine, and subsequently the user
and password queries - all of this goes by
fine, and indicates network connectivity with
the CPU/auth server, but suddenly everything
kernel panics, I presume at the time of making
the connection with the Ken FS server (scrolls
by too fast for me to see the initial error
message).

If anyone has any experience or ideas regarding
that, I'd love to hear it.

Best,
ak

P.S.: I had to statically compile QEMU with the
pcap patch[1] on a mate's machine, long distance,
and copy the binary back. Version 0.9.1. No SDL,
for it's a bitch to statically compile, thus have to
use VNC to see output.

[1] http://qemu-forum.ipi.fi/viewtopic.php?f=2&t=1568
pcap patch for those curious or interested

[2] QEMU startup command:
sudo ./qemu -L bios -option-rom bios/pxe-rtl8139.bin \
-boot n -net nic,model=rtl8139,macaddr=00:22:68:C3:4C:08 \
-net pcap,devicename=ath0 -no-kqemu -soundhw sb16 \
-localtime -no-acpi -vnc :1
(yes, sudo: this is Linux, we have rules... and a
dictatorship to defeat their purpose)



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-08-22  6:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-21 13:50 [9fans] Plan 9 via QEMU Akshat Kumar
2009-08-21 14:32 ` matt
2009-08-21 15:11   ` Akshat Kumar
2009-08-21 15:19     ` Akshat Kumar
2009-08-21 15:25       ` erik quanstrom
2009-08-21 15:57         ` Akshat Kumar
2009-08-21 22:28           ` Akshat Kumar
2009-08-21 22:29             ` Akshat Kumar
2009-08-22  1:04               ` erik quanstrom
2009-08-22  1:34                 ` Akshat Kumar
2009-08-22  2:37                   ` erik quanstrom
2009-08-22  6:35                   ` Bakul Shah
2009-08-21 15:23     ` erik quanstrom

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).