Skip to contentSkip to conversation

Patch: solaris TAP patch

Qemu-devel Ben Taylor 1 participant 1 message Feb 10, 2007

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw

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.c which 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_tap qemu_tap.c
sudo chown root qemu_tap
sudo chmod 4755 qemu_tap

The bridge code at http://www.whiteboard.ne.jp/~admin2/tuntap should also work, and should only require /etc/qemu-ifup to contain the commands to add the bridge, ie, no ifconfig should be needed.