Add qemu scripts

This commit is contained in:
daleclack 2023-08-14 09:02:30 +08:00
parent 7b5568475a
commit bb5fc0f1ce
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# Options:
# -m Random Access Memory
# -cpu for cpu type
# -smp for core count
# -M q35 for sata bus
# -accel for acceleration
# -drive for disk/cdrom
# -boot for boot device:a-floppy,c-disk,fd-cdrom
# -vnc for vnc display
# -usb -device usb-tablet for fix mouse
cd /sdcard/0
# start qemu
qemu-system-x86_64 \
-m 1024 \
-cpu Haswell \
-smp 2 \
-M q35 \
-accel tcg,thread=multi \
-drive file=Pagefile.vhd,media=disk \
-drive file=Cpp.vhd,media=disk \
-drive file=win8PEx64-CRRCSim.iso,media=cdrom \
-drive file=Dev-Cpp-UCRT64.iso,media=cdrom \
-boot d \
-vnc :1 \
-usb -device usb-tablet

View File

@ -0,0 +1,27 @@
# Options:
# -m Random Access Memory
# -cpu for cpu type
# -smp for core count
# -M q35 for sata bus
# -accel for acceleration
# -drive for disk/cdrom
# -boot for boot device:a-floppy,c-disk,fd-cdrom
# -vnc for vnc display
# -usb -device usb-tablet for fix mouse
cd /sdcard/0
# start pulseaudio service
pulseaudio -D
export PULSE_SERVER=tcp:127.0.0.1:4713
# start qemu
qemu-system-x86_64 \
-m 672 \
-M pc \
-accel tcg,thread=multi \
-drive file=Pagefile.vhd,media=disk \
-drive file=Cpp.vhd,media=disk \
-drive file=winxpe-crrcsim.iso,media=cdrom \
-drive file=music_disc.iso,media=cdrom \
-boot d \
-vnc :1 \
-device ac97
# -usb -device usb-tablet