* [Qemu-devel] Regarding Network interface on QEMU
@ 2018-02-07 8:55 Arun raj
2018-02-07 9:08 ` Thomas Huth
0 siblings, 1 reply; 2+ messages in thread
From: Arun raj @ 2018-02-07 8:55 UTC (permalink / raw)
To: qemu-devel
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.
Is there any additional command is require to solve this issue?
Regards,
Arun
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Regarding Network interface on QEMU
2018-02-07 8:55 [Qemu-devel] Regarding Network interface on QEMU Arun raj
@ 2018-02-07 9:08 ` Thomas Huth
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Huth @ 2018-02-07 9:08 UTC (permalink / raw)
To: Arun raj, qemu-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-07 9:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-07 8:55 [Qemu-devel] Regarding Network interface on QEMU Arun raj
2018-02-07 9:08 ` Thomas Huth
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).