[Bug 476408] [NEW] kvm guest with user net cannot connect to DNS

Gioele Barabucci gioele at svario.it
Fri Nov 6 12:06:27 GMT 2009


Public bug reported:

Binary package hint: qemu-kvm

A guest inside qemu-kvm with a "-net user" network cannot ping its dns
server. I tested this with Ubuntu Karmic, Fedora 12 Beta and Finnix
93.0.

This is the command line I used:

  -net nic,model=virtio,macaddr=52:54:00:12:42:56 -net user

This is the net configuration inside the guest:

  # ip addr
  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
  2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNO
    WN qlen 1000
    link/ether 52:54:00:12:42:56 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
    inet6 fe80::5054:ff:fe12:4256/64 scope link
        valid_lft forever preferred_lft forever

  # ip route
  10.0.2.0/24 dev eth0  proto kernel  scope link  src 10.0.2.15
  default via 10.0.2.2 dev eth0

  # cat /etc/resolv.conf
  nameserver 10.0.2.3

Pinging the gateway works file, pinging the DNS server does not

  # ping -c 3 10.0.2.2 # GATEWAY
  PING 10.0.2.2 (10.0.2.2) 56(84) bytes of data.
  64 bytes from 10.0.2.2: icmp_seq=1 ttl=255 time=2.89 ms
  64 bytes from 10.0.2.2: icmp_seq=2 ttl=255 time=0.732 ms
  64 bytes from 10.0.2.2: icmp_seq=3 ttl=255 time=0.718 ms
  
  --- 10.0.2.2 ping statistics ---
  3 packets transmitted, 3 received, 0% packet loss, time 2003ms
  rtt min/avg/max/mdev = 0.718/1.448/2.895/1.023 ms
  
  # ping -c 3 10.0.2.3
  PING 10.0.2.3 (10.0.2.3) 56(84) bytes of data.
  
  --- 10.0.2.3 ping statistics ---
  3 packets transmitted, 0 received, 100% packet loss, time 2016ms

** Affects: qemu-kvm (Ubuntu)
     Importance: Undecided
         Status: New

-- 
kvm guest with user net cannot connect to DNS
https://bugs.launchpad.net/bugs/476408
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.



More information about the Ubuntu-server-bugs mailing list