Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
"C:\Program Files\qemu\qemu-img.exe" create windows.raw 20G

If you want to create in qcow2 with 2048G disk space, you can create it as following:

Code Block
"C:\Program Files\qemu\qemu-img.exe" create -f qcow2 centos7.qcow2 2048G

You will need to install operating system, and below command line example shows how to install it by CD-ROM driver - it is actually linked to iso image you have.

Code Block
"C:\Program Files\qemu\emu-system-x86_64.exe" -m 4G -hda centos7.qcow2 -cpu host -smp sockets=1,cores=2,threads=2 -cdrom Win10_1903_V1_Korean_x64.iso -drive file=windows.raw,format=raw -enable-kvm

...

Code Block
"C:\Program Files\qemu\qemu-system-x86_64.exe" -m 4G -hda centos7.qcow2 -enable-kvm -cpu host -smp sockets=1,cores=2,threads=2 -drive file=windows.raw,format=raw -soundhw all

...