there's another,
to sum up:
1. install the following ports:
drwxr-xr-x 3 root wheel 512 3 16 18:58 kqemu-kmod
drwxr-xr-x 3 root wheel 512 3 16 12:55 qemu
drwxr-xr-x 3 root wheel 512 3 16 13:21 qemu-launcher
2.
(1) modify /boot/loader.conf
kqemu_load="YES" # needed for qemu
bridge_load="YES" # needed for qemu
if_tap_load="YES" # needed for qemu
(2) modify /etc/sysctl.conf (assume it is fxp0 that Host OS is using to connect to outside)
net.link.ether.bridge_cfg=fxp0,tap0
net.link.ether.bridge.enable=1
net.link.tap.user_open=1
(3) modify /etc/devfs.conf
own tap0 [yourname]:[yourgroup]
(4) add /usr/local/etc/qemu-ifup, (put something meaningless?), and chmod+x it,
#!/bin/sh
echo "hello world"
3. execute the following command (or using GUI of qemu-launcher to launch)
/usr/local/bin/qemu -boot c -m 256 -hda '[yourimage]
沒有留言:
張貼留言