From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avZlt-0004vE-Tg for qemu-devel@nongnu.org; Wed, 27 Apr 2016 20:25:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avZlq-0002Tt-MX for qemu-devel@nongnu.org; Wed, 27 Apr 2016 20:25:33 -0400 Received: from mail-io0-x244.google.com ([2607:f8b0:4001:c06::244]:33459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avZlq-0002Tn-9T for qemu-devel@nongnu.org; Wed, 27 Apr 2016 20:25:30 -0400 Received: by mail-io0-x244.google.com with SMTP id x35so9022331ioi.0 for ; Wed, 27 Apr 2016 17:25:29 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <57205D8A.5010107@redhat.com> Date: Wed, 27 Apr 2016 20:25:26 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <51A2E196-A95B-4133-BC9E-2B820502633E@gmail.com> References: <3CC6094E-027E-417D-A110-4E60100A9756@gmail.com> <20160426190042.GC25204@work-vm> <9DF8AED7-D573-4CE4-BA8C-897B2A89A183@gmail.com> <571FCBBF.8020405@redhat.com> <7516025E-F08C-4DD4-B1D1-E822C96B7B0A@gmail.com> <57205D8A.5010107@redhat.com> Subject: Re: [Qemu-devel] Is anyone able to load a web page from a guest operating system? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , Peter Maydell Cc: Samuel Thibault , "Dr. David Alan Gilbert" , qemu-devel qemu-devel On Apr 27, 2016, at 2:34 AM, Thomas Huth wrote: > On 26.04.2016 22:19, Programmingkid wrote: >>=20 >> On Apr 26, 2016, at 4:12 PM, Thomas Huth wrote: >>=20 >>> On 26.04.2016 21:25, Programmingkid wrote: >>>>=20 >>>> On Apr 26, 2016, at 3:00 PM, Dr. David Alan Gilbert wrote: >>>>=20 >>>>> * Programmingkid (programmingkidx@gmail.com) wrote: >>>>>> My three guest operating systems can't load a web page. I think = this is a bug with QEMU. Is there anyone who has the latest revision of = QEMU that can access the web from a guest? Or are you experiencing the = same problem? > ... >>>>> What's the qemu command line you use? >>>> qemu-system-ppc -hda -hdb -m 512 -boot c -M mac99 = -netdev user,id=3Dmynet0 -device usb-net,netdev=3Dmynet0 -cpu 750 = -prom-env boot-args=3D-v -device ich9-usb-uhci1,id=3Dnewusb -device = usb-audio,bus=3Dnewusb.0=20 >>>>=20 >>>> and >>>>=20 >>>> qemu-system-ppc -hda -hdb -m 512 -boot c -M mac99 = -netdev user,id=3Dmynet0 -device rtl8139,netdev=3Dmynet0 -cpu 750 = -prom-env boot-args=3D-v -device ich9-usb-uhci1,id=3Dnewusb -device = usb-audio,bus=3Dnewusb.0=20 >>>=20 >>> Ok, that means you're using user-mode / slirp networking. >>> I just tried it with a pseries guest, and it seems to be working = fine >>> for me with the current git version of QEMU (f419a626c76bcb266). >>=20 >> So you are saying you can view web pages on your guest? >=20 > Yes. Linux guest on a Linux host, and I was able to access a web page > from the guest. >=20 >>>=20 >>> Now, what kind of host do you use? Mac OS X?=20 >> Yes. Mac OS 10.6. >=20 > Ok, at least not Windows ... because there have been some problems = with > Windows recently, which could be the culprit otherwise: >=20 > http://git.qemu.org/?p=3Dqemu.git;a=3Dcommitdiff;h=3D3424c8a9c89a3bc0d29= ad >=20 >>> Also can you determine a revision when it was still working fine for >>> you? (and then maybe even bisect the problem?) >>=20 >> I will see what I can find out. >=20 > Thanks! Bisecting the problem is likely the best way to deal with = this... Found out which patch was causing problems. This one:=20 commit 5379229a2708df3a1506113315214c3ce5325859 Author: Guillaume Subiron Date: Sat Dec 19 22:24:59 2015 +0100 slirp: Factorizing address translation =20 This patch factorizes some duplicate code into a new function, sotranslate_out(). This function perform the address translation = when a packet is transmitted to the host network. If the packet is = destinated to the host, the loopback address is used, and if the packet is destinated to the virtual DNS, the real DNS address is used. This = code is just a copy of the existent, but factorized and ready to manage = the IPv6 case.