qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Regarding Network interface on QEMU


From: Thomas Huth
Subject: Re: [Qemu-devel] Regarding Network interface on QEMU
Date: Wed, 7 Feb 2018 10:08:56 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

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 via email to

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