2 #qemu-system-x86_64 -fda DiskImage.img -boot a -serial stdio -net user,hostname=prelude,dns=10.0.2.1 -net nic,model=ne2k_pci -vga std
4 QEMU=qemu-system-x86_64
6 BOOTOPT="-fda DiskImage.img -boot a"
9 QEMU_PARAMS=$QEMU_PARAMS" -hda AcessHDD.img"
10 QEMU_PARAMS=$QEMU_PARAMS" -vga std"
11 QEMU_PARAMS=$QEMU_PARAMS" -smp 2"
14 _NETTYPE="user,hostfwd=tcp::5555-:23"
19 while [ $# -ne 0 ]; do
22 QEMU_PARAMS=$QEMU_PARAMS" -s -S"
30 if [ "x$2" = "xdefault" ] || [ "x$2" = "x" ]; then
31 _kfile="KernelLand/Acess2.$1.bin"
33 _kfile="KernelLand/Acess2.$1-$2.bin"
35 BOOTOPT="-kernel $_kfile"
36 BOOTOPT=$BOOTOPT" -initrd KernelLand/Modules/Filesystems/FS_InitRD.kmd.$1$MODS -append \"$3\""
41 QEMU=/home/tpg/apps/bin/qemu-system-x86_64
51 QEMU_PARAMS=$QEMU_PARAMS" -m 768"
55 QEMU_PARAMS=$QEMU_PARAMS" "$1
61 _NETTYPE=$_NETTYPE",hostfwd=tcp::10023-10.0.2.10:23"
80 QEMU_PARAMS=$QEMU_PARAMS" -device pci-serial,chardev=serial2"
81 QEMU_PARAMS=$QEMU_PARAMS" -chardev socket,id=serial2,host=localhost,port=10023,server,telnet"
84 QEMU_PARAMS=$QEMU_PARAMS" -device ich9-ahci,id=ahci"
85 QEMU_PARAMS=$QEMU_PARAMS" -drive if=none,id=sata_disk,file=HDD_sata.img"
86 QEMU_PARAMS=$QEMU_PARAMS" -device ide-drive,drive=sata_disk,bus=ahci.0"
92 QEMU_PARAMS=$QEMU_PARAMS" -net nic,model="$_NETMODEL
93 QEMU_PARAMS=$QEMU_PARAMS" -net "$_NETTYPE
95 if [ "x$_NOUSB" != "xyes" ] ; then
96 QEMU_PARAMS=$QEMU_PARAMS" -usb"
97 QEMU_PARAMS=$QEMU_PARAMS" -device usb-ehci"
98 QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none"
99 QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image"
100 QEMU_PARAMS=$QEMU_PARAMS" -usbdevice mouse"
101 # QEMU_PARAMS=$QEMU_PARAMS" -usbdevice keyboard"
104 if [ "x$_NOTEE" = "xyes" ] ; then
107 _TEECMD=" | tee QemuLog.txt"
110 # /home/tpg/apps/bin/qemu-system-x86_64 $QEMU_PARAMS -serial stdio -serial file:QemuLog.txt
111 # qemu-system-x86_64 $QEMU_PARAMS -serial stdio | tee QemuLog.txt
112 #echo $QEMU $BOOTOPT $QEMU_PARAMS
113 if [ "x$_NOGRAPHIC" = "xyes" ] ; then
114 $_EVAL $QEMU $BOOTOPT $QEMU_PARAMS -nographic $_TEECMD
118 $_EVAL $QEMU $BOOTOPT $QEMU_PARAMS -serial stdio $_TEECMD