Metainformationen zur Seite
Openwrt in QEMU
<blockquote> * https://downloads.openwrt.org/releases/19.07.6/targets/armvirt/32/ * https://openwrt.org/docs/guide-user/virtualization/qemu </blockquote>
Mit LUCI und storage
#!/bin/sh IMAGE=openwrt-19.07.6-armvirt-32-zImage LAN=ledetap0 # create tap interface which will be connected to OpenWrt LAN NIC ip tuntap add mode tap $LAN ip link set dev $LAN up # configure interface with static ip to avoid overlapping routes ip addr add 192.168.1.101/24 dev $LAN qemu-system-arm \ -drive file=openwrt-19.07.6-armvirt-32-root.ext4,format=raw,if=virtio -append 'root=/dev/vda rootwait' \ -device virtio-net-pci,netdev=lan \ -netdev tap,id=lan,ifname=$LAN,script=no,downscript=no \ -device virtio-net-pci,netdev=wan \ -netdev user,id=wan \ -M virt -nographic -m 64 \ -kernel $IMAGE # cleanup. delete tap interface created earlier ip addr flush dev $LAN ip link set dev $LAN down ip tuntap del mode tap dev $LAN