2018-10-16 09:01:38 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-05-01 19:45:17 +00:00
|
|
|
export SDL_VIDEO_X11_DGAMOUSE=0
|
2019-03-27 12:02:29 +00:00
|
|
|
ram_size=128
|
|
|
|
|
2019-03-11 11:43:45 +00:00
|
|
|
if [ "$1" = "b" ]; then
|
|
|
|
# ./run b: bochs
|
|
|
|
bochs -q -f .bochsrc
|
|
|
|
elif [ "$1" = "qn" ]; then
|
|
|
|
# ./run qn: qemu without network
|
2019-04-24 19:06:16 +00:00
|
|
|
qemu-system-i386 -s -m $ram_size \
|
|
|
|
$SERENITY_EXTRA_QEMU_ARGS \
|
|
|
|
-device e1000 \
|
|
|
|
-kernel kernel \
|
|
|
|
-hda _fs_contents
|
2019-03-13 02:26:01 +00:00
|
|
|
elif [ "$1" = "qtap" ]; then
|
|
|
|
# ./run qtap: qemu with tap
|
2019-04-24 19:06:16 +00:00
|
|
|
sudo qemu-system-i386 -s -m $ram_size \
|
|
|
|
$SERENITY_EXTRA_QEMU_ARGS \
|
|
|
|
-object filter-dump,id=hue,netdev=br0,file=e1000.pcap \
|
|
|
|
-netdev tap,ifname=tap0,id=br0 \
|
|
|
|
-device e1000,netdev=br0 \
|
|
|
|
-kernel kernel \
|
|
|
|
-hda _fs_contents
|
2019-03-13 02:26:01 +00:00
|
|
|
else
|
|
|
|
# ./run: qemu with user networking
|
2019-03-27 12:02:29 +00:00
|
|
|
qemu-system-i386 -s -m $ram_size \
|
2019-04-24 19:06:16 +00:00
|
|
|
$SERENITY_EXTRA_QEMU_ARGS \
|
2019-03-13 16:17:07 +00:00
|
|
|
-object filter-dump,id=hue,netdev=breh,file=e1000.pcap \
|
|
|
|
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-192.168.5.2:8888 \
|
|
|
|
-device e1000,netdev=breh \
|
2019-04-01 19:43:07 +00:00
|
|
|
-kernel kernel \
|
|
|
|
-hda _fs_contents
|
2018-10-17 14:58:35 +00:00
|
|
|
fi
|
2018-10-16 09:01:38 +00:00
|
|
|
|