Open jonnyman12345 opened 3 years ago
for wifi ,the netdev default in foxlet's command with e1000 is ok with host so I guess you talk of setting up a bridge for host ethernet connection. let's try
ip link add br0 type bridge ip link set br0 up
ip tuntap add QemuTap1 mode tap user "votre_serviteur" ip link set QemuTap1 up ip link set QemuTap1 master
ethernet=ip link list | awk '{print $2}' | grep en
ip link set $ethernet up
ip link set $ethernet master br0
Now run this script before you launch "qemu VM" where you have to replace the two lines
-netdev user,id=net0 \
-device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \
by the two following
-netdev tap,ifname=QemuTap1,id=net0,script=no \
-device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \
when VM reaches networking in boot phase ,the QemuTap1 triggers the virtual device connect but the bridge just disconnect due to this Tap connection probably you have to reenable the bridge in host by executing ip link set br0 up
That's it for ethernet on your virtual mac ;
all that can be summarised as one line command
BridgeTapEthernet ; qq VM ;BridgeUp
Very probably you won't be able to plug wifi on the bridge for fun
hope that helps hoan3504 a.k.a nhakue_mac
correction : instead of ip link set QemuTap1 master it should be ip link set QemuTap1 master br0
how to setup to bridge host network?