( Bandras74 | 2016. 11. 07., h – 20:18 )

Ezeket nézd át, ha még aktuális a kérdés:
https://emreboy.wordpress.com/2012/12/24/connecting-qemu-to-a-real-netw…
https://www.aurel32.net/info/debian_arm_qemu.php
http://raspberrypi.stackexchange.com/questions/23474/establish-connecti…
https://wiki.debian.org/QEMU

Nálam így van beállítva, és működik:

runme script:

#!/bin/bash
# Starts raspberry pi image in configuration mode

qemu-system-arm -kernel ./qemu-rpi-kernel/kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=0 rootfstype=ext4 rw" -hda rpi.img -net nic,macaddr=00:16:3e:00:00:01 -net tap,ifname=tap0,script=no,downscript=no

A brctl show parancsnál az interfészek oszlopban eth0 és tap0 interfészek listázódnak.

/etc/network/interfaces beállítások:

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto br0
iface br0 inet dhcp
pre-up ip tuntap add dev tap0 mode tap user root
pre-up ip link set tap0 up
bridge_ports all tap0
bridge_stp off
bridge_maxwait 0
bridge_fd 0
post-down ip link set tap0 down
post-down ip tuntap del dev tap0 mode tap