Launch a raspbian image on qemu with network connectivity
Go to file
Vincent Legoll aacd9160e4 Use "ip address show dev" to fix matching interfaces with dynamic IP
This should fix DHCP-managed interfaces from getting thrown a:
"no IP found for $IFACE" error message

2: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d0:57:7b:8f:21:59 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.40/24 brd 192.168.1.255 scope global dynamic wlp1s0
       valid_lft 76951sec preferred_lft 76951sec
    inet6 fe80::8aa8:51b1:4088:d7c0/64 scope link
       valid_lft forever preferred_lft forever
2017-09-03 21:37:13 +00:00
LICENSE Initial commit 2017-02-06 18:13:40 +01:00
README.md rewrite workaround to support both qemu-arm 2.8.0 and below. Still recommended to upgrade 2017-04-26 16:54:00 +02:00
kernel-qemu-4.4.34-jessie Initial commit 2017-02-06 18:13:40 +01:00
qemu-pi.sh Use "ip address show dev" to fix matching interfaces with dynamic IP 2017-09-03 21:37:13 +00:00

README.md

qemu-raspbian-network

Launch a raspbian image on qemu with network connectivity

git clone https://github.com/nachoparker/qemu-raspbian-network.git
cd qemu-raspbian-network
wget https://downloads.raspberrypi.org/raspbian_lite_latest -O raspbian_lite_latest.zip
unzip raspbian_lite_latest.zip
sudo ./qemu-pi.sh *-raspbian-jessie-lite.img

Note that it is recommended to use qemu-arm not older than 2.8.0 (see code)

See details on https://ownyourbits.com/2017/02/06/raspbian-on-qemu-with-network-access/