MINIX 3 NotesQuick hints:
qemu_pci hack for the NIC to work.
if [ ! -e /dev/net/tun ]; sudo modprobe tun
Start script (needs libcap):
#!/bin/sh
IFUP=/home/sky/projects/minix/qemu-ifup
sudo execcap cap_net_admin=ep \
qemu -no-kqemu -m 256 -boot c \
-hda TARGET_HDD \
-net tap,vlan=0,ifname=$TAPDEV,script=$IFUP \
-net nic
sudo tunctl -d $TAPDEV -f /dev/net/tun
#!/bin/sh set -x sudo sysctl -w net.ipv4.ip_forward=1 sudo iptables -t nat -F POSTROUTING sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo ifconfig $1 192.168.2.254
qemu_pci=1 and NIC type 4 (dp8390 in /etc/inet.conf)
add_route -g 192.168.2.254
cat > /etc/resolv.conf <<EOF nameserver 192.168.1.1 EOF
configure script):
configure: xmalloc: ./parse.y:2716: cannot allocate 64 bytes (0 bytes allocated)Solution:
chmem =512000 $(which bash)
*_route commands