-
Notifications
You must be signed in to change notification settings - Fork 16
/
run.bat
45 lines (37 loc) · 1.54 KB
/
run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@rem Run script
@echo off
set backupPath=%path%
set NSPath=%CD%
cd /d c:\Program Files\qemu
set path=%path%;%NSPath%
qemu-system-i386.exe ^
-device sb16 ^
-d cpu_reset ^
-m 256M ^
-boot d ^
-cdrom %nspath%\build\image.iso ^
-debugcon stdio ^
-display sdl ^
-accel tcg ^
-hda %nspath%\vdiske2.vdi ^
-monitor telnet:127.0.0.1:55555,server,nowait
: -s -S -- for debugging with GDB
: -serial COM7 -- to output the serial port to somewhere real
: -kernel %nspath%/kernel.bin
: -debugcon stdio
: -monitor telnet:127.0.0.1:55555,server,nowait -- to use the QEMU console
: -M q35
:
:qemu-system-i386 -m 16M -drive file=\\.\PHYSICALDRIVE1,format=raw
rem -s -S
:-drive file=%nspath%\vdiske2.raw,format=raw,index=0,media=disk ^
:-drive id=disk,file=%nspath%\vdisk.vdi,if=none ^
:-device ahci,id=ahci ^
:-device ide-hd,drive=disk,bus=ahci.0 ^
: If running with -kernel is desired for some reason:
:-kernel %nspath%/build/kernel.bin ^
:-initrd %nspath%/build/initrd.tar ^
:-append "root=/ emergency=yes" ^
rem go back
cd /d %NSPath%
set path=%backupPath%