Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-05-07 Thread Thomas Huth
On 06.05.2017 00:38, FONNEMANN Mark wrote: >> Could you run tcpdump inside the guest so we are sure what the nslookup call >> emits? > > Is there another way to determine this info? My guest OS is an embedded > system with BusyBox 1.25 and not much else. FWIW, QEMU also has a built-in

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-05-06 Thread FONNEMANN Mark
>So, in your /etc/nsswitch.conf, use >hosts: files dns This resolved the problem. I am now able to do DNS queries using nslookup. Thanks for all your help! Mark.

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-05-06 Thread Samuel Thibault
FONNEMANN Mark, on sam. 06 mai 2017 04:18:52 +, wrote: > >That's so weird there's no packet log. Does your guest perhaps have the > >strace tool? Or perhaps you >can manage to copy it over from another VM, > >since it only depends on libc. > > See attached file. Ok, so for some reason it

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-05-05 Thread Samuel Thibault
FONNEMANN Mark, on sam. 06 mai 2017 01:06:31 +, wrote: > root@qemu:~# /initrd/bin/nslookup www.google.com 10.0.2.3 > Server:10.0.2.3 > Address 1: 10.0.2.3 > > nslookup: can't resolve 'www.google.com' That's so weird there's no

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-05-05 Thread FONNEMANN Mark
>So it's supposed to be using 10.0.2.3 I guess. Just to make sure, you could try >/initrd/bin/nslookup www.google.com 10.0.2.3 root@qemu:~# /initrd/bin/nslookup www.google.com 10.0.2.3 Server:10.0.2.3 Address 1: 10.0.2.3 nslookup:

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-05-05 Thread Samuel Thibault
FONNEMANN Mark, on sam. 06 mai 2017 00:33:40 +, wrote: > >The attached patch should be dumping the same kind of information. > > Nslookup does not produce any output in curses or in logfile (-D logfile.txt). Uh. So qemu can't be the culprit since it doesn't receive anything :) >

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-05-05 Thread FONNEMANN Mark
>The attached patch should be dumping the same kind of information. Nslookup does not produce any output in curses or in logfile (-D logfile.txt). I tried it using the version installed on the root system (Busybox 1.0): root@qemu:~# nslookup BusyBox v1.00

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-05-05 Thread Samuel Thibault
FONNEMANN Mark, on ven. 05 mai 2017 22:38:20 +, wrote: > >Could you run tcpdump inside the guest so we are sure what the nslookup call > >emits? > > Is there another way to determine this info? My guest OS is an embedded > system with BusyBox 1.25 and not much else. The attached patch

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-05-05 Thread FONNEMANN Mark
>Could you run tcpdump inside the guest so we are sure what the nslookup call >emits? Is there another way to determine this info? My guest OS is an embedded system with BusyBox 1.25 and not much else. Mark.

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-30 Thread Samuel Thibault
FONNEMANN Mark, on dim. 30 avril 2017 12:42:41 +, wrote: > root@qemu:~# nslookup www.google.com >*** Unknown host > >nslookup: www.google.com: Unknown host Could you run tcpdump inside the guest so we are sure what the nslookup call emits? Samuel

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-30 Thread FONNEMANN Mark
>Could you show us your NG.cfg, your guest /sbin/ifconfig and /sbin/route >output and /etc/resolv.conf >content for that host? [mfonnemann@desktopPC qemu]$ cat NG.cfg [drive] format = "raw" file = "qemu_rootfs_512.img" [drive] format = "raw" file = "placeholder2.vhdx" [drive] format

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-30 Thread Samuel Thibault
FONNEMANN Mark, on sam. 29 avril 2017 23:15:08 +, wrote: > [mfonnemann@desktopPC qemu]$ /usr/local/bin/qemu-system-i386 -display curses > -readconfig NG.cfg --enable-kvm Could you show us your NG.cfg, your guest /sbin/ifconfig and /sbin/route output and /etc/resolv.conf content for that

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-29 Thread FONNEMANN Mark
>Ah, you are using curses... I've been putting logs onto stderr for simplicity, >not the proper qemu logs. Here is a fixed patch to get output in the log. OK, I have an interesting development that I hope will shed some light on the problem. This configuration works using a different image

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-29 Thread FONNEMANN Mark
Hello- >One first thing to note: the DNS or SMB servers can not be pinged, since that >was never implemented (I'll post a patch for that), so there is no surprise on >that end. OK >When running with a Linux host (since that's what I'm most familiar with), >what do you have in

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-29 Thread Samuel Thibault
FONNEMANN Mark, on sam. 29 avril 2017 20:06:09 +, wrote: > [mfonnemann@localhost qemu]$ /usr/local/bin/qemu-system-i386 -display curses > -readconfig qemu.cfg -D logfile Ah, you are using curses... I've been putting logs onto stderr for simplicity, not the proper qemu logs. Here is a fixed

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-29 Thread FONNEMANN Mark
>Ok, so nothing going out from qemu. Could you try to apply the attached patch >to qemu-2.9 and see what it makes qemu print when you resolve a domain from >the guest? After applying patch, compiling, installing and then doing a nslookup request in the guest, I still receive no output in

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-29 Thread Samuel Thibault
FONNEMANN Mark, on sam. 29 avril 2017 18:25:26 +, wrote: > 0 packets received by filter Ok, so nothing going out from qemu. Could you try to apply the attached patch to qemu-2.9 and see what it makes qemu print when you resolve a domain from the guest? Samuel --- a/slirp/socket.c +++

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-29 Thread FONNEMANN Mark
Hello- >And I guess these do work fine on the host. Yes: [mfonnemann@localhost ~]$ nslookup www.google.com Server: 4.2.2.1 Address:4.2.2.1#53 Non-authoritative answer: Name: www.google.com Address: 172.217.11.4 >Perhaps you should make sure that qemu does emit the DNS lookup

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-29 Thread Samuel Thibault
FONNEMANN Mark, on sam. 29 avril 2017 15:32:35 +, wrote: > >When running with a Linux host (since that's what I'm most familiar with), > >what do you have in /etc/resolv.conf? > > [mfonnemann@localhost ~]$ cat /etc/resolv.conf > # Generated by NetworkManager > nameserver 4.2.2.1 > nameserver

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-29 Thread Samuel Thibault
Hello, FONNEMANN Mark, on mer. 19 avril 2017 18:11:59 +, wrote: > I have tested 2.9-rc4 and the problem still exists there as well. FONNEMANN Mark, on lun. 24 avril 2017 23:43:02 +, wrote: > I just confirmed that the problem exists in 2.9 release using > qemu-system-i386.exe as well.

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-26 Thread FONNEMANN Mark
-Original Message- From: Stefan Weil [mailto:s...@weilnetz.de] Sent: Friday, April 21, 2017 15:58 To: FONNEMANN Mark <mark.fonnem...@hexagon.com>; qemu-devel@nongnu.org; Samuel Thibault <samuel.thiba...@gnu.org> Subject: Re: [Qemu-devel] dns server not working in QEMU us

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-24 Thread FONNEMANN Mark
-Original Message- From: Thomas Huth [mailto:th...@redhat.com] Sent: Monday, April 24, 2017 04:00 To: FONNEMANN Mark <mark.fonnem...@hexagon.com>; qemu-devel@nongnu.org Cc: Samuel Thibault <samuel.thiba...@ens-lyon.org> Subject: Re: [Qemu-devel] dns server not working i

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-24 Thread Thomas Huth
On 13.04.2017 22:17, FONNEMANN Mark wrote: > Hello- > > I posted this question on stack overflow and got no response. Stefan > recommended asking the question here. > > I’ve included a summary of the problem here in this email but more details > can be found here: > >

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-22 Thread Samuel Thibault
Stefan Weil, on ven. 21 avril 2017 21:58:18 +0200, wrote: > Am 17.04.2017 um 00:10 schrieb FONNEMANN Mark: > > I hadn't seen the original report on the list, sorry. There is too much > > traffic on qemu-devel for me to manage to catch these :/ > > > > This problem was fixed by > > e42f869b

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-21 Thread Stefan Weil
ct: Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP) Hello, I hadn't seen the original report on the list, sorry. There is too much traffic on qemu-devel for me to manage to catch these :/ This problem was fixed by e42f869b ("slirp: Make RA build mo

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-16 Thread FONNEMANN Mark
This issue still exists for me in 2.9 rc4. -Original Message- From: Samuel Thibault [mailto:samuel.thiba...@gnu.org] Sent: Sunday, April 16, 2017 04:10 To: FONNEMANN Mark <mark.fonnem...@hexagon.com> Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] dns server not working i

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-16 Thread Samuel Thibault
Hello, I hadn't seen the original report on the list, sorry. There is too much traffic on qemu-devel for me to manage to catch these :/ This problem was fixed by e42f869b ("slirp: Make RA build more flexible") and a2f80fdf ("slirp: Send RDNSS in RA only if host has an IPv6 DNS server") which

Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-16 Thread FONNEMANN Mark
This has been filed as a bug: https://bugs.launchpad.net/qemu/+bug/1683084. Mark.

[Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)

2017-04-13 Thread FONNEMANN Mark
Hello- I posted this question on stack overflow and got no response. Stefan recommended asking the question here. I’ve included a summary of the problem here in this email but more details can be found here: