Qemu Kvm Create Windows Image qcow2 Tutorial

Qemu Kvm Create Windows Image Tutorial - Qemu stands for Quick Emulator. Qemu here has the same function as VMware, namely as a virtual operating system. Qemu can be an interface of hardware such as CD-ROM, hard disk, audio interface, and USB devices.

QEMU supports emulation of various architectures, including IA-32 (x86) PC, PC x86-64, MIPS R4000, Sun SPARC sun4m, Sun SPARC sun4u, ARM development boards (Integrator / CP and Versatile / PB), SH4 Six boards, PowerPC ( PReP and Power Macintosh), ETRAX CRIS and MicroBlaze architectures. The QEMU homepage provides a complete list of supported architectures.


What is Virtualization

Virtualization technology builds a system such as a computer that works in a virtual machine. For example, to better understand, you have 1 computer in which there is 1 main OS (Operating System), for example, Windows 10. Then in Windows 10, there are several virtual machines (computers) with various operating systems in it such as Ubuntu Linux, Windows 7, 8, and others. -other.

Well, it's the same for Virtual Private Servers (VPS). The main or parent computer is used to create a server so that the virtual machine in it is called a Virtual Server. The virtual server will be absent on the parent server which is usually called a Node/Hypervisor


What is KVM Virtualization System

KVM stands for Kernel-Based Virtual Machine, which is a virtualization technology (hypervisor) developed by Linux. KVM is a solution for virtualizing Linux with x86 (64-bit) type hardware. KVM is also currently often called a semi-dedicated server because it has good and reliable performance and other VPS will not be disturbed.

The Kernel-Based Virtual Machine is implemented as a loadable kernel module that turns the Linux kernel into a bare-metal hypervisor. The goal is to make KVM a high-performance hypervisor


Advantages of KVM Virtualization

  • Can use various operating systems such as Linux or Windows
  • Suitable for high website traffic
  • Suitable for websites that require high resources
  • More efficient because VPS activities will not be disturbed by other VPS users
  • KVM will make each user have their own RAM and CPU
  • More optimal performance


How to install qemu on Windows

1. Download qemu on the official website qemu.org

2. Install qemu


apt install qemu -y
apt install qemu-system -y

3. Add qemu Path to windows

For more details, I've made a video here;


How to install qemu





How to make an img file from windows iso

1. Download the windows iso which will be made into an img

2. Open a terminal in the folder where you save the iso by Ctrl + Shift right-click open terminal here

3. Enter the following command into the terminal


qemu-img create -f qcow2 windows_name.img 50G


The command above will create windows_name.img with a capacity of 50GB dynamic which will later become drive C:

To make the C drive bigger: you can change in the 50G

  • 30G to 30GB
  • 40G to 40GB
  • 50G to 50GB
  • 100G to 100GB
  • 200G to 200GB etc


4. After creating the file nama_windows.img later, only a few Kb size files will appear because the size is dynamic then enter the following command into the terminal


qemu-system-x86_64 windows_name.img -m 8G -boot d -cdrom "windows.iso"


The above command will open qemu with the name_windows.img as C: and cdrom in the prepared D: windows.iso

8G is the amount of Ram that will be used to run the installation, you can change it as follows:

  • 1G for 1GB ram
  • 2G for 2GB ram
  • 3G for 3GB ram
  • 4G for 4GB ram etc

Then install Windows as usual


5. Run windows_name.image

To run nama_windows.img is very easy just enter the following command


qemu-system-x86_64 windows_name.img -m 8G


The above command will run qemu KVM without a cdrom with 8GB of ram

Now you can upload nama_windows.img which already contains windows and 50GB drive C: then you can run it on a Linux VPS


How to create qcow2 files

1. Download the windows iso which will be made into qcow2

2. Open a terminal in the folder where you save the iso by Ctrl + Shift right-click open terminal here

3. Enter the following command into the terminal


qemu-img create -f qcow2FileName.qcow2 100G


The command above will create FileName.qcow2 with a capacity of 100GB dynamic which will later become drive C:

To make the C: drive bigger you can change in the 100G section:

  • 30G to 30GB
  • 40G to 40GB
  • 50G to 50GB
  • 100G to 100GB
  • 200G to 200GB etc


4. After creating the FileName.qcow2 file later, only a few Kb size files will appear because the size is dynamic then enter the following command into the terminal


qemu-system-x86_64FileName.qcow2 -m 16G -boot d -cdrom "windows.iso"


The above command will open qemu KVM with FileName.qcow2 as C: and cdrom in D: windows.iso which has been prepared

16G is the amount of Ram that will be used to run the installation, you can change it as follows:

  • 1G for 1GB ram
  • 2G for 2GB ram
  • 3G for 3GB ram
  • 4G for 4GB ram etc

Then install Windows as usual


5. Run FileName.qcow2

To run nama_windows.img is very easy just enter the following command


qemu-system-x86_64FileName.qcow2 -m 16G


The above command will run qemu KVM without a cdrom with 16GB of ram

Now you can upload the FileName.qcow2 that was created already contains windows and 100GB drive C: then you can run it on a Linux VPS


It's very easy, not how to make Qemu Kvm Windows Image qcow2 is very simple and easy, now you can run Windows on Linux only with the command qemu-system-x86_64FileName.qcow2 or qemu-system-x86_64name_windows.img -m 8G on an already installed Linux VPS installed qemu congratulations you already have windows VPS for more details akuh.net have included the video below



Any question? write in comments
This tutorial is for educational purposes only

How to create img




How to create qcow2




Next Post Previous Post
2 Comments
  • Unknown
    Unknown August 13, 2021 at 10:04 PM

    Thank you for this more power. i will support you

    • akuh
      akuh August 14, 2021 at 2:21 PM

      Free Rdp windows 7 with google colab already update,, thanks for support

Add Comment
comment url