Home > Emulator > Qemu on FreeBSD with Bridge

Qemu on FreeBSD with Bridge

We talked about switching over to Qemu from vmware. Now, we gonna talk about running Qemu on FreeBSD 6 with Bridge mode. But, why bridge mode ? This virtual box gonna be my testing box and i need to access from other machine. Unlike the virtual box inside my notebook, which only need to access from my notebook.

Again, we are gonna talk about. Installing qemu on FreeBSD (with ports) and network settings will be Bridge. This is unlike bridge mode for network monitoring. This is bridge for accessing internet.

First, needed modules, /boot/loader.conf  :

kqemu_load=”YES” # needed for qemu
bridge_load=”YES” # needed for qemu
if_tap_load=”YES”  # needed for qemu
aio_load=”YES”     # needed for qemu

Configuration for /etc/sysctl.conf :

net.link.ether.bridge_cfg=rl0,tap9
net.link.ether.bridge.enable=1
net.link.tap.user_open=1

Configuration for  /etc/devfs.conf :

own     tap9    user:group

My qemu-ifup :

#!/bin/sh

echo “nothing here”

To start my openbsd :

$  /usr/local/bin/qemu -hda openbsd4.img -m 256 \

-net nic,vlan=0 -net tap,vlan=0,ifname=tap9,script=./qemu-ifup \

-boot c -no-kqemu

A quick and fast note. Please let me know if i miss out anything.

Categories: Emulator Tags:
  1. November 24th, 2007 at 16:01 | #1

    It’s incredible the thnigs you do with freebsd !

  2. November 27th, 2007 at 04:50 | #2

    does vmware works on freebsd ?

  1. No trackbacks yet.