robherring / generic_device

A generic android device repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make android emulator connect to the Internet?

lintcoder opened this issue · comments

Hi, I refer to https://github.com/robherring/generic_device/wiki/Running-QEMU-KVM for how to run qemu, and I wonder how can I make the android emulator connect to the Internet ?
@robherring

@lintcoder The qemustart script used by OpenWrt may help a bit [1]. It requirea virtio-net support in the guest kernel.

But if I remember it correctly, qemu user mode network will do nat for tcp and udp automatically. You may need to investigate deeper the cause

[1] https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=scripts/qemustart;h=5af93b9aedb3133b7b640c483b31cff4650b763a