Patch: solaris TAP patch
Attribution for the TAP patch goes to Sittichai Palanisong
([email protected]). The qemu_tap.c is a derivitive
work of a previous version called qemu_tun.c, and the scripts are also by Sittichai with derivations by me.
Quoted 17 lines · ---- Ben Taylor
This patch is to allow solaris to create a tap device in qemu, using the modified tun/tap driver at http://www.whiteboard.ne.jp/~admin2/tuntap.
I'm also including
qemu_tap.cwhich is a setuid wrapper which sets up the tap, uses/etc/qemu-ifup(included - modify for your environment) and a start script (dsl.sh, minimal, but shows what needs done).To build
qemu_tap, it's very simple.gcc -o
qemu_tapqemu_tap.c
sudo chown rootqemu_tap
sudo chmod 4755qemu_tapThe bridge code at http://www.whiteboard.ne.jp/~admin2/tuntap should also work, and should only require
/etc/qemu-ifupto contain the commands to add the bridge, ie, no ifconfig should be needed.