9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] plan 9 on qemu
@ 2004-12-23 23:08 Russ Cox
  2004-12-24  3:52 ` Jack Johnson
                   ` (3 more replies)
  0 siblings, 4 replies; 29+ messages in thread
From: Russ Cox @ 2004-12-23 23:08 UTC (permalink / raw)
  To: 9fans

I rebuilt the install floppy (it had been a year), so any
new hardware support should be present in it.  In particular,
it contains the vgadb entry for the QEMU vga card.

The CD-ROM is rebuilt every night so it was already up-to-date.

Jim and I looked at the QEMU disk issue today.  The problem
is that QEMU doesn't implement the (required) execute device
diagnostics command.  The following patch fixes QEMU.  I will
send it to the QEMU guys too.

*** hw/old.ide.c	Thu Dec 23 18:02:08 2004
--- hw/ide.c	Thu Dec 23 18:03:00 2004
***************
*** 1477,1482 ****
--- 1477,1489 ----
              }
              ide_set_irq(s);
              break;
+         case WIN_DIAGNOSE:
+             ide_set_signature(s);
+             s->status = READY_STAT;
+             /* 0x01: both devices passed or not present */
+             s->error = 0x01;
+             ide_set_irq(s);
+             break;
          case WIN_SPECIFY:
          case WIN_RECAL:
              s->error = 0;

Enjoy.
Russ


^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [9fans] plan 9 on qemu
@ 2004-12-24  5:23 YAMANASHI Takeshi
  2004-12-24  5:41 ` Kenji Okamoto
                   ` (8 more replies)
  0 siblings, 9 replies; 29+ messages in thread
From: YAMANASHI Takeshi @ 2004-12-24  5:23 UTC (permalink / raw)
  To: 9fans


On Fri Dec 24 13:25:39 JST 2004, jmk@plan9.bell-labs.com wrote:
> The NIC works
> (as far as I could test it by pinging the gateway returned
> by DHCP and the host IP address) but it needs the nodummyrr
> option. This is what I had in plan9.ini:
> 
> 	ether0=type=ne2000 port=0xC100 mem=0x04000 size=0x4000 nodummyrr

Great thanks!!!
I've got a diskless terminal to boot under qemu.

I thought the port was 0x0300.  Some page claims it to be so.
 http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.html

With your ether0= line in plan9.ini, the kernel succeeded to:
	1: find qemu virtual nic.
	2: get an ip address from qemu virtual dhcp server.
	3: reach to the fs using the ip address (NAT'ed on qemu)

here is my plan9.ini:
	bootfile=fd0!9pcf.gz
	bootargs=tcp  ether /net/ether0 0.0.0.0 0.0.0.0  0.0.0.0 131.112.14.43 131.112.14.43
	ether0=type=ne2000 port=0xC100 mem=0x04000 size=0x4000 nodummyrr
	vgasize=1024x768x8
	monitor=xga
	mouseport=ps2intellimouse

and here is boot messages

Plan 9
cpu0: 735MHz GenuineIntel PentiumPro (cpuid: AX 0x0613 DX 0xA1BD)
ELCR: 0000
#l0: NE2000: 10Mbps port 0xC100 irq 9 addr 0x4000 size 0x4000: 525400123456
19287 free pages, 77148K bytes, 309148K swap
root is from (tcp, il, local)[tcp ether /net/ether0 0.0.0.0 0.0.0.0 0.0.0.0 131.112.14.43 131.112.14.43]: 
user[none]: nashi
version...
!Adding key: dom=tip9ug.jp proto=p9sk1
user[nashi]: 
password: 
!
time...

init: starting /bin/rc
<and rio comes up>

P.S.
wishing a Merry Christmas to all 9fans. :)
-- 
YAMANASHI Takeshi




^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [9fans] plan 9 on qemu
@ 2004-12-24  6:26 YAMANASHI Takeshi
  2004-12-26  5:03 ` Karl Magdsick
  0 siblings, 1 reply; 29+ messages in thread
From: YAMANASHI Takeshi @ 2004-12-24  6:26 UTC (permalink / raw)
  To: 9fans

> Happy Holidays!
> may be more neutral to all 9fans.?

Oops.  Sorry for that. :)

> By the what is merrit/demerrit of qemu or Xen.

my humble comparisons between Xen and qemu are:
  - Xen shows a better performance.
  - qemu doesn't need special privilege to install/use.
    but Xen needs to be installed before any other OSes.
  - Xen requires guest OSes to be ported to Xen while qemu doesn't.
  - qemu has a vga device supported by aux/vga while Xen doesn't (yet)

> Xen for servers and qemu for terminal even Windows?

p9 terminal running under qemu would be
an easy way to get around vga hell for free.

Many Linux nodes running Xen could be a possible base
for 9grid nodes. ;)
-- 




^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [9fans] plan 9 on qemu
@ 2004-12-24  6:26 YAMANASHI Takeshi
  2004-12-24  6:43 ` Bruce Ellis
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: YAMANASHI Takeshi @ 2004-12-24  6:26 UTC (permalink / raw)
  To: 9fans

> > cpu0: 735MHz GenuineIntel PentiumPro (cpuid: AX 0x0613 DX 0xA1BD)

A native p9 cpu server running on the identical hardware gives:

	cpu0: 737MHz GenuineIntel PentiumIII/Xeon (cpuid: AX 0x0686 DX 0x387F9FF)
	#l0: i82557: 100Mbps port 0xBC00 irq 5: 0040CA96806F

> > #l0: NE2000: 10Mbps port 0xC100 irq 9 addr 0x4000 size 0x4000: 525400123456

I'm not sure what wire speeds mean in virtual NICs. :)
-- 




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

end of thread, other threads:[~2004-12-27  9:34 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-23 23:08 [9fans] plan 9 on qemu Russ Cox
2004-12-24  3:52 ` Jack Johnson
2004-12-24  4:25   ` jmk
2004-12-25 18:58   ` jmk
2004-12-25 19:49   ` jmk
2004-12-24  5:54 ` Tim Newsham
2004-12-25 18:32 ` Tim Newsham
2004-12-25 20:09 ` Tim Newsham
2004-12-24  5:23 YAMANASHI Takeshi
2004-12-24  5:41 ` Kenji Okamoto
2004-12-24  5:47 ` Kenji Okamoto
2004-12-24 23:20 ` jmk
2004-12-25 19:02 ` Kenji Okamoto
2004-12-25 19:13 ` jmk
2004-12-25 20:03 ` Kenji Okamoto
2004-12-25 20:51 ` Kenji Okamoto
2004-12-25 21:07 ` jmk
2004-12-25 23:08 ` Kenji Okamoto
2004-12-24  6:26 YAMANASHI Takeshi
2004-12-26  5:03 ` Karl Magdsick
2004-12-26 17:09   ` Russ Cox
2004-12-24  6:26 YAMANASHI Takeshi
2004-12-24  6:43 ` Bruce Ellis
2004-12-24  6:55   ` Russ Cox
2004-12-24 13:02     ` Tiit Lankots
2004-12-24 17:23       ` Jack Johnson
2004-12-27  9:34         ` Tiit Lankots
2004-12-25 18:14 ` Tiit Lankots
2004-12-25 19:38 ` Tiit Lankots

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