qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] win98 user mode network not working ...
@ 2006-01-12 12:38 Adrian Coman
  2006-01-12 15:44 ` Mike Kronenberg
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Adrian Coman @ 2006-01-12 12:38 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 834 bytes --]

Hi,

I'm a newbie with qemu and I know there have been a lot of topics on the qemu 
networking topic, but none of them solved my problem ... I hope I'll get an 
answer from you.

So, I have a CentOS 4.2 as host with qemu-0.8.0 installed from sources. As 
guest I have a win98se. In w98 I configured the network to get the IP through 
dhcp. I start qemu with: 

qemu -localtime -hda win98.img

From what I read, when there is no -net option, the default network mode is 
usermode.

The problem is that when I ping yahoo.com for example I get the IP of yahoo 
but no response from ping ..., something like: 

ping yahoo.com
Pinging yahoo.com [216.109.112.135] with 32 bytes of data:
request time out

I attached a screenshot with the output of ipconfig /all from w98.

Where did I do wrong?

Thanks,
Adrian 

[-- Attachment #2: ipconfig_qemu.jpeg --]
[-- Type: image/jpeg, Size: 28494 bytes --]

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

* Re: [Qemu-devel] win98 user mode network not working ...
  2006-01-12 12:38 [Qemu-devel] win98 user mode network not working Adrian Coman
@ 2006-01-12 15:44 ` Mike Kronenberg
  2006-01-12 15:45 ` André Braga
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Mike Kronenberg @ 2006-01-12 15:44 UTC (permalink / raw)
  To: qemu-devel


On 12.01.2006, at 13:38, Adrian Coman wrote:

> Hi,
>
> I'm a newbie with qemu and I know there have been a lot of topics  
> on the qemu
> networking topic, but none of them solved my problem ... I hope  
> I'll get an
> answer from you.
>
> So, I have a CentOS 4.2 as host with qemu-0.8.0 installed from  
> sources. As
> guest I have a win98se. In w98 I configured the network to get the  
> IP through
> dhcp. I start qemu with:
>
> qemu -localtime -hda win98.img
>
> From what I read, when there is no -net option, the default network  
> mode is
> usermode.
>
> The problem is that when I ping yahoo.com for example I get the IP  
> of yahoo
> but no response from ping ..., something like:
>
> ping yahoo.com
> Pinging yahoo.com [216.109.112.135] with 32 bytes of data:
> request time out
>
> I attached a screenshot with the output of ipconfig /all from w98.
>
> Where did I do wrong?

nothing :)
consider qemu as a firewall that is rather restrictive:
The ping command is only working to ping your gateway (10.0.2.2).
...Yahoo was resolved, so your network is up and running...

Mike

>
> Thanks,
> Adrian
> <ipconfig_qemu.jpeg>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel

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

* Re: [Qemu-devel] win98 user mode network not working ...
  2006-01-12 12:38 [Qemu-devel] win98 user mode network not working Adrian Coman
  2006-01-12 15:44 ` Mike Kronenberg
@ 2006-01-12 15:45 ` André Braga
  2006-01-12 16:32 ` Jean-Christophe Dubois
  2006-01-12 18:09 ` Jan Marten Simons
  3 siblings, 0 replies; 5+ messages in thread
From: André Braga @ 2006-01-12 15:45 UTC (permalink / raw)
  To: qemu-devel

On 1/12/06, Adrian Coman <adi.coman@gmail.com> wrote:
> The problem is that when I ping yahoo.com for example I get the IP of yahoo
> but no response from ping ..., something like:
> ping yahoo.com
> Pinging yahoo.com [216.109.112.135] with 32 bytes of data:
> request time out
> I attached a screenshot with the output of ipconfig /all from w98.
> Where did I do wrong?

Nothing; and actually this has been answered in a handful of FAQs
before: ICMP doesn't fully work over SLIRP. Sending ICMP packets work,
but not receiving. This is because of how SLIRP works.

If you need this functionality, please consider using tun/tap on the
host or OpenVPN from inside the guest.



--
"I decry the current tendency to seek patents on algorithms. There are
better ways to earn a living than to prevent other people from making
use of one's contributions to computer science."
Donald Knuth

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

* Re: [Qemu-devel] win98 user mode network not working ...
  2006-01-12 12:38 [Qemu-devel] win98 user mode network not working Adrian Coman
  2006-01-12 15:44 ` Mike Kronenberg
  2006-01-12 15:45 ` André Braga
@ 2006-01-12 16:32 ` Jean-Christophe Dubois
  2006-01-12 18:09 ` Jan Marten Simons
  3 siblings, 0 replies; 5+ messages in thread
From: Jean-Christophe Dubois @ 2006-01-12 16:32 UTC (permalink / raw)
  To: qemu-devel

From http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC23

"Note that ping is not supported reliably to the internet as it would require 
root priviledges. It means you can only ping the local router (10.0.2.2)."

So I guess this is not the right way to test your connectivity.

Regards

JC

On Thursday 12 January 2006 13:38, Adrian Coman wrote:
> Hi,
>
> I'm a newbie with qemu and I know there have been a lot of topics on the
> qemu networking topic, but none of them solved my problem ... I hope I'll
> get an answer from you.
>
> So, I have a CentOS 4.2 as host with qemu-0.8.0 installed from sources. As
> guest I have a win98se. In w98 I configured the network to get the IP
> through dhcp. I start qemu with:
>
> qemu -localtime -hda win98.img
>
> From what I read, when there is no -net option, the default network mode is
> usermode.
>
> The problem is that when I ping yahoo.com for example I get the IP of yahoo
> but no response from ping ..., something like:
>
> ping yahoo.com
> Pinging yahoo.com [216.109.112.135] with 32 bytes of data:
> request time out
>
> I attached a screenshot with the output of ipconfig /all from w98.
>
> Where did I do wrong?
>
> Thanks,
> Adrian

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

* Re: [Qemu-devel] win98 user mode network not working ...
  2006-01-12 12:38 [Qemu-devel] win98 user mode network not working Adrian Coman
                   ` (2 preceding siblings ...)
  2006-01-12 16:32 ` Jean-Christophe Dubois
@ 2006-01-12 18:09 ` Jan Marten Simons
  3 siblings, 0 replies; 5+ messages in thread
From: Jan Marten Simons @ 2006-01-12 18:09 UTC (permalink / raw)
  To: qemu-devel

Adrian Coman wrote:

>The problem is that when I ping yahoo.com for example I get the IP of yahoo 
>but no response from ping ..., something like: 
>
>ping yahoo.com
>Pinging yahoo.com [216.109.112.135] with 32 bytes of data:
>request time out
>

IIrc ping (as icmp message) does not work with user-net. Try to telnet 
the webserver at port 80 to check for connectivity. DNS is working as 
the adress got resolved into its IP. Apart from the issue with ping all 
tcp/ip-based services (like browsing the net) should work from the guest 
like being behind a NAT-firewall, which allows outbound connections.

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

end of thread, other threads:[~2006-01-12 18:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-12 12:38 [Qemu-devel] win98 user mode network not working Adrian Coman
2006-01-12 15:44 ` Mike Kronenberg
2006-01-12 15:45 ` André Braga
2006-01-12 16:32 ` Jean-Christophe Dubois
2006-01-12 18:09 ` Jan Marten Simons

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