Windows 10.qcow2 [portable] -
qemu-system-x86_64 -m 4096 -smp 4 -cpu host -enable-kvm \ -boot order=d -drive file=windows_10.qcow2,if=virtio \ -cdrom /path/to/windows_10.iso \ -drive file=/path/to/virtio-win.iso,media=cdrom \ -net nic,model=virtio -net user \ -vga qxl Use code with caution.
qemu-system-x86_64 \ -drive file=windows10.qcow2,format=qcow2 \ -cdrom windows10.iso \ -boot d \ -m 4G \ -cpu host \ -smp 4 \ -vga qxl \ -net nic -net user
Run the following QEMU command to boot the VM, mounting both the Windows 10 installation media and the VirtIO driver disc: Windows 10.qcow2
Click Next. The QCOW2 virtual drive will now appear. Proceed with the installation.
Running Windows 10 inside a QEMU/KVM virtual machine using the qemu-system-x86_64 -m 4096 -smp 4 -cpu host -enable-kvm
Replace the old file with the new windows_10_shrunk.qcow2 file. Common Troubleshooting
Note: During the Windows setup setup screen, choose "Custom Installation". When no hard drive appears, click , browse the VirtIO CD-ROM drive, and navigate to the viostor/w10/amd64 folder. Optimizing Your Windows 10 QCOW2 Image Proceed with the installation
Open the viostor folder, select w10 , and choose the architecture ( amd64 for 64-bit systems).
Your (e.g., Ubuntu, Proxmox, Windows, macOS)
qemu-img convert -O qcow2 -c windows10.qcow2 windows10_compressed.qcow2 Use code with caution.
If you have a Windows 10.qcow2 file, it implies that you have a pre-configured Windows 10 virtual machine image. This file can be used directly with QEMU or other compatible virtualization software to create a VM running Windows 10.