2018-10-16 09:01:38 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
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-03-10 14:25:33 +00:00
|
|
|
qemu-system-i386 -s -m 32 -device e1000 -drive format=raw,file=.floppy-image,if=floppy -drive format=raw,file=_fs_contents #$@
|
2019-03-13 02:26:01 +00:00
|
|
|
elif [ "$1" = "qtap" ]; then
|
|
|
|
# ./run qtap: qemu with tap
|
2019-03-11 22:21:38 +00:00
|
|
|
sudo qemu-system-i386 -s -m 32 -object filter-dump,id=hue,netdev=br0,file=e1000.pcap -netdev tap,ifname=tap0,id=br0 -device e1000,netdev=br0 -drive format=raw,file=.floppy-image,if=floppy -drive format=raw,file=_fs_contents
|
2019-03-13 02:26:01 +00:00
|
|
|
else
|
|
|
|
# ./run: qemu with user networking
|
|
|
|
qemu-system-i386 -s -m 32 -object filter-dump,id=hue,netdev=breh,file=e1000.pcap -netdev user,id=breh -device e1000,netdev=breh -drive format=raw,file=.floppy-image,if=floppy -drive format=raw,file=_fs_contents
|
2018-10-17 14:58:35 +00:00
|
|
|
fi
|
2018-10-16 09:01:38 +00:00
|
|
|
|