Downloads
Arch Linux: pacman -S qemu
Debian: apt install qemu
macOS: brew install qemu
Main applications
qemu-system-x86
– Run QEMU on x86 architecture
qemu-system-x86_64
– Run QEMU on x64 architecture
Commands
Processor
-cpu <CPU>
– Specify processor architecture
-cpu ?
– List supported architectures
-cpu host
– Emulate host processor
-smp <NUMBER>
– Specify number of cores
RAM
-m <MEMORY>
– Specify amount of memory (default: 128 MB) (M = MB, G = GB)
HDD
qemu-img create <FILENAME.IMG> <SIZE>
– Create raw disk image
CD-ROM
-cdrom /dev/cdrom
– Mount host drive as virtual CD-ROM
-cdrom <FILE>
– Mount image file as virtual CD-ROM
Boot
-boot c
– Boot from virtual hard drive
-boot d
-Boot from virtual CD-ROM drive
-boot n
– Boot from virtual network
GPU
-vga [cirrus|std|vmware|qxl]
Network
-net nic -net user
– Pass-trough of host network connection
-smb <PATH>
– Shared folder, available at \\10.0.2.4\qemu