qemu-img create -f raw ./image\_file 4G
qemu-img create -f qcow2 ./image\_file 4G
Can also use dd or fallocate.
Can resize
qemu-img resize disk_image +10G
qemu-img resize --shrink disk_image -10G
Install:
qemu-system-x86_64 -cdrom iso_image -boot order=d -drive file=disk_image,format=raw
Run
qemu-system-x86_64 options disk_image
qemu-system-x86_64 -accel kvm -cdrom iso_image -boot order=d -drive file=disk_image,format=raw
qemu-system-x86_64 -accel kvm options disk_image
-device virtio-vga-gl