In order to run QEMU Image on Windows, DOS Shell scripts are useful which helps doing the necessary things easily. |
List of content
@echo off if exist centos7.img ( echo Image already exists on your current diretory pause ) else ( "C:\Program Files\qemu\qemu-img.exe" create -f qcow2 centos7.img 1024G "C:\Program Files\qemu\qemu-system-x86_64.exe" -m 8G -smp cores=2,threads=2 -cdrom CentOS-7-x86_64-Everything-1908.iso -hda centos7.img pause ) |
@echo off echo RAM 8G / 2 cores x 2 threads echo SSH 20022, HTTP 80 "C:\Program Files\qemu\qemu-system-x86_64.exe" -m 8G -smp cores=2,threads=2 -hda centos7.img -device e1000,netdev=user.0 -netdev user,id=user.0,hostfwd=tcp::80-:80,hostfwd=tcp::20022-:22 -display none |