[Top][All Lists]

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

Re: [Qemu-discuss] connect qemu to internet

From: Fatemeh Mehdizadeh
Subject: Re: [Qemu-discuss] connect qemu to internet
Date: Sun, 22 Jun 2014 13:47:53 +0430

after searching a lot in google and also http://wiki.qemu.org/Documentation/Networking  I can ping network ips and also from my qemu guest.

But another problem occure : I cannot ping hosts like google.com on qemu guest. It says "unknown host". Again I google for this and I found the message related to DNS error. so, I set dns in qemu guest (vyatta) by the command :

set system name-server

I also checked dns in /etc/resolv.conf, It was correct. But the problem still remain :'(

Now, I need your help and knowledge because I have no idea to solving this problem.

Thanks all

On Tue, Jun 10, 2014 at 5:42 AM, Dale R. Worley <address@hidden> wrote:
> From: Fatemeh Mehdizadeh <address@hidden>

> I'm on FEDORA 20 and my qemu version is 1.6.2. I want connect qemu to
> internet.

There are many ways to set up networking with Qemu.  The simplest is
"user" networking, which provides the guest system with a small LAN
that has a DNS server (which queries the real Internet), a DHCP
server, and a gateway that goes through a NAT to the outside world
(that is, the packets are sent out by the host system).

See http://wiki.qemu.org/Documentation/Networking for some basic
documentation.  Further web searching will provide more information.

Like all network devices, the preferred method is to create it with
two options, -netdev to set up the host side and -device to set up the
guest side.  These commands set up a guest interface which is an E1000
card, and whose network access is implemented by "user" networking.
The value of -device's netdev parameter must match the value of
-netdev's id parameter:

$ qemu-system-i386 \
        -netdev user,id=eth \
        -device e1000,netdev=eth


reply via email to

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