tags: linux, qemu, vm, virtualization
Creates 3 GB large image named centos.img:
qemu-img create -f qcow2 centos.img 3G
qemu-img resize centos.img +1024M
Run Centos VM using image centos.img, allocate 1024 MB ram, boot from CD-ROM using CentOS-7.iso:
qemu-system-x86_64 -m 1024 \
-enable-kvm \
-boot d \
-cdrom CentOS-7.iso \
centos.img