create vm

qemu-img create -f qcow2 <filename> 4g
  • create [-f FMT] filename [size]
    • size is disk image size in bytes

install system

qemu-system-x86_64 -m 1g -cdrom /path/to/iso -boot order=d -drive file=<filename>,format=qcow2

start system

qemu-system-x86_64 <filename>