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.
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.
评论
发表评论
读过之后是不是文思泉涌了?,快快让大家拜读一下你的高见吧~~~