| 1 | |
| 2 | {{{ |
| 3 | @ECHO OFF |
| 4 | REM ############################################################################## |
| 5 | REM (c) Eric Lassauge - January 2013 |
| 6 | REM <lassauge {AT} users {DOT} sourceforge {DOT} net > |
| 7 | REM |
| 8 | REM ############################################################################## |
| 9 | REM This program is free software: you can redistribute it and/or modify |
| 10 | REM it under the terms of the GNU General Public License as published by |
| 11 | REM the Free Software Foundation, either version 3 of the License, or |
| 12 | REM (at your option) any later version. |
| 13 | REM |
| 14 | REM This program is distributed in the hope that it will be useful, |
| 15 | REM but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | REM GNU General Public License for more details. |
| 18 | REM |
| 19 | REM You should have received a copy of the GNU General Public License |
| 20 | REM along with this program. If not, see <http://www.gnu.org/licenses/> |
| 21 | REM ############################################################################## |
| 22 | REM Exemple BAT script for starting qemu-system-i386.exe on windows host with a |
| 23 | REM small Linux disk image containing a 2.6.20 Linux kernel, X11 and various utilities |
| 24 | REM to test QEMU (See http://wiki.qemu.org/Testing) |
| 25 | |
| 26 | REM Start qemu on windows. |
| 27 | |
| 28 | REM SDL_VIDEODRIVER=directx is faster than windib. But keyboard may not work well. |
| 29 | SET SDL_VIDEODRIVER=windib |
| 30 | |
| 31 | REM QEMU_AUDIO_DRV=dsound or fmod or sdl or none can be used. See qemu -audio-help. |
| 32 | REM dsound seems to be broken now (at least in my build |
| 33 | SET QEMU_AUDIO_DRV=none |
| 34 | |
| 35 | REM SDL_AUDIODRIVER=waveout or dsound can be used. Only if QEMU_AUDIO_DRV=sdl. |
| 36 | SET SDL_AUDIODRIVER=dsound |
| 37 | |
| 38 | REM QEMU_AUDIO_LOG_TO_MONITOR=1 displays log messages in QEMU monitor. |
| 39 | SET QEMU_AUDIO_LOG_TO_MONITOR=0 |
| 40 | |
| 41 | REM ################################################ |
| 42 | REM # Boot disk image |
| 43 | REM # Adapt "-k fr" to you keyboard |
| 44 | REM # X11, nic and soundhw were tested and are working! |
| 45 | REM # try madplay 20thfull.mp2 or xinit |
| 46 | REM # Added '-usb -usbdevice tablet' for Seamless mouse |
| 47 | REM ################################################ |
| 48 | START C:\Progra~1\Qemu-Solab\qemu-system-i386.exe -L Bios -vga std -rtc base=localtime,clock=host -cdrom C:\Progra~1\Qemu-Solab-ISO\solab.iso -net nic,model=virtio -m 768 -no-acpi -no-hpet -no-reboot -net user,net=192.168.101.0/24,hostfwd=tcp::8022-:22,hostfwd=tcp::8080-:80 |
| 49 | |
| 50 | }}} |