Created
July 21, 2017 08:12
-
-
Save pakt/5c558a84092dd79214c956e896a5771c to your computer and use it in GitHub Desktop.
qemu working config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configure bridged network as described here: | |
https://wiki.debian.org/QEMU#Host_and_guests_on_same_network | |
$ cat /etc/network/interfaces | |
auto lo | |
iface lo inet loopback | |
auto br0 | |
iface br0 inet dhcp | |
pre-up ip tuntap add dev tap0 mode tap user p | |
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 | |
$ cat run.sh | |
#!/bin/sh | |
exec ~/panda/build/x86_64-softmmu/qemu-system-x86_64 -enable-kvm \ | |
-cpu host \ | |
-drive file=WindowsVM.img,if=virtio \ | |
-m 4G \ | |
-monitor stdio \ | |
-name "Windows" \ | |
$@ | |
start birdged windows guest with | |
./run.sh -boot d -drive file=w7u_x64.iso,media=cdrom -drive file=virtio-win-0.1.126.iso,media=cdrom -net nic,model=virtio -net tap,ifname=tap0,script=no,downscript=no | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment