From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avNDh-0003LO-D3 for qemu-devel@nongnu.org; Wed, 27 Apr 2016 07:01:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avNDd-0003M5-Cc for qemu-devel@nongnu.org; Wed, 27 Apr 2016 07:01:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avNDd-0003Lx-7a for qemu-devel@nongnu.org; Wed, 27 Apr 2016 07:01:21 -0400 References: <3CC6094E-027E-417D-A110-4E60100A9756@gmail.com> <20160426190042.GC25204@work-vm> <9DF8AED7-D573-4CE4-BA8C-897B2A89A183@gmail.com> <571FCBBF.8020405@redhat.com> <57208ECE.4040400@redhat.com> <572093EB.8030502@redhat.com> From: Laszlo Ersek Message-ID: <57209BFD.7010601@redhat.com> Date: Wed, 27 Apr 2016 13:01:17 +0200 MIME-Version: 1.0 In-Reply-To: <572093EB.8030502@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 , Programmingkid , "Dr. David Alan Gilbert" Cc: Samuel Thibault , qemu-devel qemu-devel On 04/27/16 12:26, Thomas Huth wrote: > On 27.04.2016 12:05, Laszlo Ersek wrote: >> On 04/26/16 22:12, Thomas Huth wrote: >>> On 26.04.2016 21:25, Programmingkid wrote: >>>> On Apr 26, 2016, at 3:00 PM, Dr. David Alan Gilbert wrote: >> >>>>> Does ping work? >>>> I can ping the virtual router at 10.0.2.2. Any other ip address fails. >>> >>> That's normal for user-mode / slirp networking. You can't ping external >>> hosts with this mode. >> >> Side note: yes, you can. >> >> I do it whenever I want to check network connectivity from within ad-hoc >> OVMF guests, using the PING command of the UEFI shell. ("Ad-hoc guest" >> implies user-mode / slirp.) >> >> It can be enabled with the following steps: >> >> (1) Determine the main group ID (or one supplementary group ID) of the >> user that will run QEMU with slirp. >> >> (2) In /etc/sysctl.conf (or whatever is appropriate for your host >> distro), make sure that the whitespace separated inclusive group ID >> range in the "net.ipv4.ping_group_range" sysctl includes the above group ID. > > Wow, thanks for that hint, I just tried by temporarily enabling it with > > sudo sysctl net.ipv4.ping_group_range=... > > and indeed it works! > > Maybe we should document that somewhere? > For example http://qemu-project.org/Documentation/Networking currently > only says: "ICMP traffic does not work (so you cannot use ping within a > guest)" ... Done. Laszlo