qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Arun raj <krarun88@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Regarding Network interface on QEMU
Date: Wed, 7 Feb 2018 10:08:56 +0100	[thread overview]
Message-ID: <d82e7abb-9f6d-0ed3-6c4d-05dd99d98450@redhat.com> (raw)
In-Reply-To: <CAEZT4RNYVuFvwyp9VR94HAgVmz-_MFyd0yjEDRP8_iJ=D5XcKQ@mail.gmail.com>

On 07.02.2018 09:55, Arun raj wrote:
> Hi,
> 
> I'm new to QEMU and using latest QEMU-2.11.50 version. i installed ubuntu
> 16.04 in QEMU and my host system has 4.4 kernel
> 
> following command is i'm using to run the QEMU :
> 
> qemu-system-x86_64 -machine q35,kernel_irqchip=split -m 1G -enable-kvm -smp
> 4 -device intel-iommu,intremap=on,x-buggy-eim=on -cpu
> kvm64,-kvm_pv_eoi,-kvm_steal_time,-kvm_asyncpf,-kvmclock,+vmx -drive
> file=testing.img,format=raw,id=disk,if=none -device ide-hd,drive=disk
> -serial stdio -serial vc -netdev user,id=net -device
> e1000e,addr=2.0,netdev=net -device intel-hda,addr=1b.0 -device hda-duplex
> 
> But in QEMU i can't able to access the internet and ping also not working.

It's normal that "ping" (or rather ICMP) is not working by default with
the "-netdev user" backend. The "user" backend is using NAT. But you
should be able to get to the outside via TCP. See this URL for details:

https://wiki.qemu.org/Documentation/Networking#User_Networking_.28SLIRP.29

Do you see a network interface in the guest? Does it have an IP address?
I.e. what's the output of "ifconfig" or "ip addr" in the guest? Does it behave
behave differently if you use another type of NIC, e.g. "virtio-net-pci"
instead of "e1000e"?

 Thomas

      reply	other threads:[~2018-02-07  9:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-07  8:55 [Qemu-devel] Regarding Network interface on QEMU Arun raj
2018-02-07  9:08 ` Thomas Huth [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d82e7abb-9f6d-0ed3-6c4d-05dd99d98450@redhat.com \
    --to=thuth@redhat.com \
    --cc=krarun88@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).