Created
June 19, 2024 19:44
-
-
Save jonshipman/ceb9ce70f6893d984de91ab2bbde32a4 to your computer and use it in GitHub Desktop.
cmd script for qemu Fedora image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
CD C:\Program Files\qemu | |
.\qemu-system-x86_64.exe ^ | |
-D "C:\qemu\qemu.log" ^ | |
-machine q35 ^ | |
-name fedora ^ | |
-accel whpx,kernel-irqchip=off ^ | |
-m 2G ^ | |
-vga virtio -display sdl,gl=on ^ | |
-device virtio-rng-pci ^ | |
-parallel none -serial none ^ | |
-drive file="C:\qemu\Fedora-Server-KVM-40-1.14.x86_64.qcow2",if=virtio,media=disk,cache=writeback ^ | |
-usbdevice tablet ^ | |
-netdev type=user,id=mynet0,hostfwd=tcp::22-:22,hostfwd=tcp::9090-:9090,hostfwd=tcp::8080-:8080,hostfwd=tcp::8081-:8081,hostfwd=tcp::8082-:8082,hostfwd=tcp::27017-:27017,hostfwd=tcp::3000-:3000,hostfwd=tcp::3001-:3001,hostfwd=tcp::3002-:3002 -device e1000,netdev=mynet0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment