qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] dns server not working in QEMU using usermode networkin


From: FONNEMANN Mark
Subject: Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)
Date: Sat, 29 Apr 2017 20:06:09 +0000

>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 tcpdump and my logfile is empty:

address@hidden qemu-2.9.0]$ make
make  all-recursive
Making all in pixman
make[3]: Nothing to be done for `all'.
Making all in demos
make[3]: Nothing to be done for `all'.
Making all in test
make[3]: Nothing to be done for `all'.
        CHK version_gen.h
  CC      slirp/slirp.o
  CC      slirp/socket.o
  CC      slirp/udp.o
  LINK    i386-softmmu/qemu-system-i386
  LINK    x86_64-softmmu/qemu-system-x86_64

address@hidden qemu-2.9.0]$ sudo make install
[sudo] password for mfonnemann:
make  all-recursive
Making all in pixman
make[3]: Nothing to be done for `all'.
Making all in demos
make[3]: Nothing to be done for `all'.
Making all in test
make[3]: Nothing to be done for `all'.
        CHK version_gen.h
install -d -m 0755 "/usr/local/share/qemu"
install -d -m 0755 "/usr/local/var"/run
install -d -m 0755 "/usr/local/bin"
install -c -m 0755 qemu-ga ivshmem-client ivshmem-server qemu-nbd qemu-img 
qemu-io  "/usr/local/bin"
strip "/usr/local/bin/qemu-ga" "/usr/local/bin/ivshmem-client" 
"/usr/local/bin/ivshmem-server" "/usr/local/bin/qemu-nbd" 
"/usr/local/bin/qemu-img" "/usr/local/bin/qemu-io"
install -d -m 0755 "/usr/local/libexec"
install -c -m 0755 qemu-bridge-helper "/usr/local/libexec"
strip "/usr/local/libexec/qemu-bridge-helper"
set -e; for x in bios.bin bios-256k.bin sgabios.bin vgabios.bin 
vgabios-cirrus.bin vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin 
vgabios-virtio.bin acpi-dsdt.aml ppc_rom.bin openbios-sparc32 openbios-sparc64 
openbios-ppc QEMU,tcx.bin QEMU,cgthree.bin pxe-e1000.rom pxe-eepro100.rom 
pxe-ne2k_pci.rom pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom efi-e1000.rom 
efi-eepro100.rom efi-ne2k_pci.rom efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom 
efi-e1000e.rom efi-vmxnet3.rom qemu-icon.bmp qemu_logo_no_text.svg bamboo.dtb 
petalogix-s3adsp1800.dtb petalogix-ml605.dtb multiboot.bin linuxboot.bin 
linuxboot_dma.bin kvmvapic.bin s390-ccw.img spapr-rtas.bin slof.bin skiboot.lid 
palcode-clipper u-boot.e500; do \
        install -c -m 0644 /home/mfonnemann/qemu-2.9.0/pc-bios/$x 
"/usr/local/share/qemu"; \
done
install -d -m 0755 "/usr/local/share/qemu/keymaps"
set -e; for x in da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  
sv ar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th 
common  de-ch  es     fo  fr-ca  hu     ja  mk  nl-be      pt  sl     tr bepo   
 cz; do \
        install -c -m 0644 /home/mfonnemann/qemu-2.9.0/pc-bios/keymaps/$x 
"/usr/local/share/qemu/keymaps"; \
done
install -c -m 0644 /home/mfonnemann/qemu-2.9.0/trace-events-all 
"/usr/local/share/qemu/trace-events-all"
for d in i386-softmmu x86_64-softmmu; do \
make --no-print-directory BUILD_DIR=/home/mfonnemann/qemu-2.9.0 TARGET_DIR=$d/ 
-C $d install || exit 1 ; \
        done
install -d -m 0755 "/usr/local/bin"
install -c -m 0755 qemu-system-i386  "/usr/local/bin"
strip "/usr/local/bin/qemu-system-i386"
install -d -m 0755 "/usr/local/bin"
install -c -m 0755 qemu-system-x86_64  "/usr/local/bin"
strip "/usr/local/bin/qemu-system-x86_64"

address@hidden qemu]$ /usr/local/bin/qemu-system-i386 -display curses 
-readconfig qemu.cfg -D logfile

address@hidden:~# nslookup www.google.com

                    *** Unknown host

                    nslookup: www.google.com: Unknown host

address@hidden qemu]$ ls -Al logfile
-rw-rw-r--. 1 mfonnemann mfonnemann 0 Apr 29 15:58 logfile

Mark.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]