Skip to content

Instantly share code, notes, and snippets.

@mschlenker
Created September 1, 2019 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mschlenker/82bfad63ab599296805b2414c22b0968 to your computer and use it in GitHub Desktop.
Save mschlenker/82bfad63ab599296805b2414c22b0968 to your computer and use it in GitHub Desktop.
tunctl -u root
ip link set tap0 master bridge0
# Bridge 0 exists since boot up!
ip link set dev tap0 up
qemu-system-x86_64 -enable-kvm -smp cpus=2 -vga cirrus -usbdevice mouse -m 1536 -rtc base=localtime,clock=host -drive file=/tmp/sde1/desinfect.img,format=raw,if=virtio -device virtio-net-pci,netdev=network0,mac=00:16:a0:1b:e3:17 -netdev tap,id=network0,ifname=tap0,script=no,downscript=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment