* [Qemu-devel] slirp, darwin problems
@ 2004-06-25 5:37 Joshua Kwan
2004-06-25 7:50 ` Jean-Michel POURE
2004-06-25 9:37 ` kazu
0 siblings, 2 replies; 3+ messages in thread
From: Joshua Kwan @ 2004-06-25 5:37 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1485 bytes --]
Hi all,
There are two problems I experienced here using qemu.
I tried qemu from Debian today which has slirp support compiled into it.
Here is how I invoked it:
qemu -user-net -hda darwin.bin -cdrom darwin-701.iso -m 128 -boot d
As you might have guessed, my intenet is to install Darwin for x86 as
qemu's guest OS.
First problem I encountered was that qemu would not boot the Darwin
kernel. It would stop at
From path: "cdrom", Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOMedia</string><key>Content Hint</key><string ID="2">CD_ROM_Mode_1</string></dict>
PCI Ver=0.00 BusCount=1 Features=[ ]
and hang right there.
So I decided to see if Debian would work as a guest OS. I got to DHCP
stage, and that worked: I was impressed. I could resolve hostnames
correctly, and the gateway was set to 10.0.2.2. However, when I tried to
retrieve anything, nothing worked...
My thinking is that qemu might be looking in the wrong place for a
gateway? My computer is behind a NAT, and has two network interfaces:
one for a local wired network, and a wireless network which allows me to
connect to my firewall and the Internet. My default gateway is set
correctly and I am able to use the Internet normally from my host.
However, qemu maybe doesn't see the default gateway being used or
something?
Any help would be appreciated, with either problem. Please CC me on
replies as I'm not subscribed to this list :)
--
Joshua Kwan
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 881 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] slirp, darwin problems
2004-06-25 5:37 [Qemu-devel] slirp, darwin problems Joshua Kwan
@ 2004-06-25 7:50 ` Jean-Michel POURE
2004-06-25 9:37 ` kazu
1 sibling, 0 replies; 3+ messages in thread
From: Jean-Michel POURE @ 2004-06-25 7:50 UTC (permalink / raw)
To: qemu-devel; +Cc: Joshua Kwan
Dear Joshua,
These are known problems. See the following bug reports:
> From path: "cdrom", Waiting on <dict
> ID="0"><key>IOProviderClass</key><string
> ID="1">IOMedia</string><key>Content Hint</key><string
> ID="2">CD_ROM_Mode_1</string></dict> PCI Ver=0.00 BusCount=1 Features=[ ]
Using CVS head, Darwin 7.01 guest stopped slightly after that:
https://savannah.nongnu.org/bugs/?func=detailitem&item_id=9428
> So I decided to see if Debian would work as a guest OS. I got to DHCP
> stage, and that worked: I was impressed. I could resolve hostnames
> correctly, and the gateway was set to 10.0.2.2. However, when I tried to
> retrieve anything, nothing worked...
user-net does not work under Debian guest (and many other GNU/Linux systems):
https://savannah.nongnu.org/bugs/?func=detailitem&item_id=9388
If you set up tun networking, it works like a charm.
I am not an expert, but you should be compiling Qemu from CVS head as it
includes several fixes and evolves very quickly with a bunch of pending
patches.
Cheers,
Jean-Michel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] slirp, darwin problems
2004-06-25 5:37 [Qemu-devel] slirp, darwin problems Joshua Kwan
2004-06-25 7:50 ` Jean-Michel POURE
@ 2004-06-25 9:37 ` kazu
1 sibling, 0 replies; 3+ messages in thread
From: kazu @ 2004-06-25 9:37 UTC (permalink / raw)
To: qemu-devel; +Cc: joshk
Hi,
Friday, June 25, 2004 2:37 PM Joshua Kwan wrote:
>My thinking is that qemu might be looking in the wrong place for a
>gateway? My computer is behind a NAT, and has two network interfaces:
>one for a local wired network, and a wireless network which allows me to
>connect to my firewall and the Internet. My default gateway is set
>correctly and I am able to use the Internet normally from my host.
>However, qemu maybe doesn't see the default gateway being used or
>something?
QEMU with slirp is a simple client program. Virtual network in QEMU which
has DHCP server doesn't have any relationship with a host's network
configuration. If your debian can get an IP address like 10.0.2.x by dhcpcd
or dhclient from virtual DHCP server , the problem is that packets cannnot
be sent or received to QEMU.
If you can use tcpdump as root on a host OS, you can check it.
[host OS]# tcpdump -i eth0
or
[host OS]# tcpdump -i eth1 (if you have two cards)
or when you use a host-gest connection,
[host OS]# tcpdump -i lo
Then use a program on a guest OS.
[guest OS]$ lynx http://----example-----/
When a connection is normal, you will see some output of tcpdump.
Regards,
kazu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-06-25 9:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-25 5:37 [Qemu-devel] slirp, darwin problems Joshua Kwan
2004-06-25 7:50 ` Jean-Michel POURE
2004-06-25 9:37 ` kazu
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).