DEV Community

Cover image for How to Install Windows 10/11 on Ubuntu Using KVM/QEMU
Muhammad S.A. Iqbal for T Insights

Posted on Edited on

How to Install Windows 10/11 on Ubuntu Using KVM/QEMU

Running Windows inside Ubuntu is easy with KVM, QEMU, libvirt, and Virtual Machine Manager (virt-manager). These tools let you run Windows in a virtual machine without dual-booting.

Features include hardware virtualization, fast VirtIO storage and networking, USB passthrough, snapshots, and easy VM management.

Example: This guide uses Windows 10. Windows 11 can also run in a VM but requires TPM 2.0 and UEFI support for Secure Boot.

Note: Windows 10 support ended on October 14, 2025. For a new VM in 2026, Windows 11 is generally the better choice.

Step 1: KVM and QEMU Installation

What We Are Building

The final environment will look like this:

Linux KVM/QEMU

The technologies have different responsibilities.

  • KVM — KVM (Kernel-based Virtual Machine) is the Linux kernel's hardware virtualization mechanism.
  • QEMU — Its provides the virtual machine process and virtual hardware.
  • libvirt — Its provides a management layer for QEMU/KVM virtual machines.
  • virt-manager — Virtual Machine Manager (virt-manager) provides a graphical interface for managing libvirt VMs.

This combination is widely used for Linux virtualization and is an excellent foundation for learning virtualization and DevOps.

Other essentials are —

  • OVMF — Its provides UEFI firmware for the virtual machine.
  • VirtIO — Its provides high-performance paravirtualized devices such as Virtual disks, Network adapters, SCSI controllers
  • SPICE — Its provides the graphical console and guest integration features.

Windows 10 vs Windows 11

The basic KVM architecture works for both Windows 10 and Windows 11.

However, Windows 11 requires additional virtual hardware.

Microsoft lists requirements including:

  • UEFI firmware
  • Secure Boot capability
  • TPM 2.0
  • At least 4 GB RAM
  • At least 64 GB storage
  • At least two virtual processors

Therefore:

Windows 10

UEFI
VirtIO
SPICE
No vTPM required
Enter fullscreen mode Exit fullscreen mode

Windows 11

UEFI
Secure Boot
TPM 2.0
VirtIO
SPICE
Enter fullscreen mode Exit fullscreen mode

For this practical guide, Windows 10 is used because it makes the VirtIO installation process particularly easy to demonstrate.

Requirements (Hardware)

Recommended:

  • 64-bit Intel or AMD processor
  • Intel VT-x or AMD-V
  • At least 8 GB RAM
  • 80–100 GB free storage
  • SSD recommended
  • Ubuntu 26.04 LTS

For comfortable Windows virtualization:

16 GB RAM or more
Enter fullscreen mode Exit fullscreen mode

is preferable.

Recommended VM configuration

For a host with 16 GB RAM:

CPU       : 4 vCPU
RAM       : 6 GB
Disk      : 80–100 GB
Storage   : VirtIO
Network   : VirtIO
Display   : SPICE
Firmware  : UEFI
Enter fullscreen mode Exit fullscreen mode

These values are starting points, not strict requirements.

Check Hardware Virtualization

Open Terminal.

Run:

lscpu | grep -E 'Virtualization|Model name'
Enter fullscreen mode Exit fullscreen mode

On an Intel system, you should see something similar to:

Model name: Intel(R) Core(TM) i5-1135G7
Virtualization: VT-x
Enter fullscreen mode Exit fullscreen mode

For AMD:

Virtualization: AMD-V
Enter fullscreen mode Exit fullscreen mode

Check whether /dev/kvm exists

Run:

ls -l /dev/kvm
Enter fullscreen mode Exit fullscreen mode

You should see something similar to:

crw-rw----+ 1 root kvm ... /dev/kvm
Enter fullscreen mode Exit fullscreen mode

Install the KVM checker

sudo apt update
sudo apt install -y cpu-checker
Enter fullscreen mode Exit fullscreen mode

Then:

kvm-ok
Enter fullscreen mode Exit fullscreen mode

Expected result:

INFO: /dev/kvm exists
KVM acceleration can be used
Enter fullscreen mode Exit fullscreen mode

If KVM acceleration is unavailable, enter your computer's BIOS/UEFI and enable hardware virtualization.

For Intel systems, the option may be called:

Intel Virtualization Technology
VT-x
Intel VT
Enter fullscreen mode Exit fullscreen mode

For AMD systems:

SVM
AMD-V
Enter fullscreen mode Exit fullscreen mode

Install KVM/QEMU and Virtualization Packages

Ubuntu 26.04 uses newer HWE virtualization packages, so older tutorials may show slightly different package names.

Install the main components:

sudo apt update
Enter fullscreen mode Exit fullscreen mode
sudo apt install -y \
qemu-system-x86 \
qemu-utils \
libvirt-daemon-system \
libvirt-clients \
virt-manager \
ovmf \
bridge-utils \
dnsmasq-base \
cpu-checker
Enter fullscreen mode Exit fullscreen mode

What these packages provide:

  • qemu-system-x86: QEMU x86 virtual machines
  • qemu-utils: QEMU disk utilities
  • libvirt-daemon-system: libvirt virtualization service
  • libvirt-clients: virsh command-line tools
  • virt-manager: GUI virtualization manager
  • ovmf: UEFI firmware
  • bridge-utils: Network bridge utilities
  • dnsmasq-base: Virtual network DHCP/DNS support
  • cpu-checker: KVM capability checking

What about qemu-kvm? (Optional)

On some Ubuntu versions, tutorials tell you to run:

sudo apt install qemu-kvm
Enter fullscreen mode Exit fullscreen mode

On newer Ubuntu releases, qemu-kvm may be a virtual package provided by another QEMU package.

If Ubuntu tells you:

Package qemu-kvm is a virtual package
Enter fullscreen mode Exit fullscreen mode

that isn't necessarily an error.

For this setup, installing:

sudo apt install qemu-system-x86
Enter fullscreen mode Exit fullscreen mode

is sufficient.

Configure User Permissions

Add your user to the KVM and libvirt groups:

sudo usermod -aG kvm,libvirt $USER
Enter fullscreen mode Exit fullscreen mode

Check:

groups
Enter fullscreen mode Exit fullscreen mode

You should eventually see:

kvm
libvirt
Enter fullscreen mode Exit fullscreen mode

🔥 Important

Log out and log back in.

A reboot is also fine:

systemctl reboot -i
Enter fullscreen mode Exit fullscreen mode

After logging back in:

groups
Enter fullscreen mode Exit fullscreen mode

Configure the libvirt Network

libvirt normally provides a default NAT network.

Check it:

virsh net-list --all
Enter fullscreen mode Exit fullscreen mode

You should see something like:

Name      State    Autostart   Persistent
--------------------------------------------
default   active   yes         yes
Enter fullscreen mode Exit fullscreen mode

If default exists but is inactive:

sudo virsh net-start default
Enter fullscreen mode Exit fullscreen mode

Enable automatic startup:

sudo virsh net-autostart default
Enter fullscreen mode Exit fullscreen mode

Check again:

 virsh net-list --all
Enter fullscreen mode Exit fullscreen mode

How the default network works

The typical architecture is:

KVM/QEMU

The Windows VM does not need a physical network adapter.

Verify the KVM Installation

Run:

kvm-ok
Enter fullscreen mode Exit fullscreen mode

Then:

lsmod | grep kvm
Enter fullscreen mode Exit fullscreen mode

On Intel:

kvm_intel
kvm
Enter fullscreen mode Exit fullscreen mode

Check libvirt:

virsh list --all
Enter fullscreen mode Exit fullscreen mode

No VMs should exist yet.

That's fine.

Check the network:

virsh net-list --all
Enter fullscreen mode Exit fullscreen mode

You want the default network active.

Step-2: Configuration virt-manager

Download the Windows ISO

For Windows 10, download the ISO from Microsoft's official Windows 10 download page

For Windows 11, use Microsoft's official Windows 11 download page

Store the ISO somewhere such as:

~/Downloads/
Enter fullscreen mode Exit fullscreen mode

For example:

~/Downloads/Win10_22H2.iso
Enter fullscreen mode Exit fullscreen mode

For Windows 11:

~/Downloads/Win11.iso
Enter fullscreen mode Exit fullscreen mode

Use a legitimate Windows license/product key for activation.

Download VirtIO Drivers

Windows does not necessarily contain the VirtIO drivers required for your virtual storage and network devices.

The virtio-win project provides Windows drivers and guest tools for QEMU/KVM. The project maintains stable and latest ISO builds.

Download the VirtIO Windows ISO from the official VirtIO project

Unofficial download link

Save it as:

~/Downloads/virtio-win.iso
Enter fullscreen mode Exit fullscreen mode

You should now have:

~/Downloads/
├── Win10_22H2.iso
└── virtio-win.iso
Enter fullscreen mode Exit fullscreen mode

VirtIO provides optimized virtual storage and networking drivers for Windows guests running on QEMU/KVM.

Create the Windows 10 Virtual Machine

Open Terminal and type:

virt-manager
Enter fullscreen mode Exit fullscreen mode

Select:

QEMU/KVM
Enter fullscreen mode Exit fullscreen mode

Then:

File
→ New Virtual Machine
Enter fullscreen mode Exit fullscreen mode

Step 1 — INSTALLATION MEDIA

The configuration method is shown in the image below:

How to Install Windows 10/11 on Ubuntu Using KVM/QEMU

  • Select Local install media (ISO image or CDROM)
  • Then click Forward

Step 2 — SELECT THE WINDOWS ISO

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789884067/Screenshot_From_2026-09-19_09-54-54_scadbd.png

  • Click Browse
  • Select from ~/Downloads/Win10_22H2.iso
  • virt-manager may automatically detect: Microsoft Windows 10. (If it doesn't, select the appropriate Windows version manually.)
  • Click Forward

Step 3 — ALLOCATE RAM AND CPU

For a 16 GB host, a reasonable starting point is:

RAM: 6144 MB
CPU: 4 vCPU
Enter fullscreen mode Exit fullscreen mode

For an 8 GB host:

RAM: 4096 MB
CPU: 2–4 vCPU
Enter fullscreen mode Exit fullscreen mode

For a 32 GB host:

RAM: 8192 MB or more
Enter fullscreen mode Exit fullscreen mode

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789885219/3_Create_new_virtual_machine_f0ruqz.png

  • Set RAM as 4096 MB (4GB) (NB: Its depends on your host computer)
  • Set CPU cores as 4 (NB: Its depends on your host computer)
  • Then Click Forward.

Step 4 — ALLOCATE STORAGE

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792466195/1._KVM-Configuration_ejx3tf.png

Create a virtual disk storage:

80–100 GB
Enter fullscreen mode Exit fullscreen mode

For a general-purpose Windows VM:

100 GB
Enter fullscreen mode Exit fullscreen mode

is a comfortable starting point if sufficient host storage is available.

The virtual disk format as qcow2

The default libvirt location is commonly:

/var/lib/libvirt/images/
Enter fullscreen mode Exit fullscreen mode

For example:

/var/lib/libvirt/images/Windows-10.qcow2
Enter fullscreen mode Exit fullscreen mode

Step 5 — CREATE A NEW VIRTUAL MACHINE

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789885405/4_Create_new_virtual_machine_zum7sh.png

  • Set name of VM OS
  • Select Network

Avoid giving the VM almost all of the host's RAM.

Ubuntu still needs memory for:

  • GNOME
  • Browser
  • VS Code
  • Docker
  • Background services
  • QEMU
  • Other applications

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789885739/5_Create_new_virtual_machine_hjqipv.png

Configure UEFI (Especially for Windows 11)

💡If you want to install Windows 10 os, you can ignore this Step.

Before starting installation, enable UEFI.

In virt-manager:

Overview
→ Firmware
Enter fullscreen mode Exit fullscreen mode

Select:

UEFI
Enter fullscreen mode Exit fullscreen mode

This normally uses OVMF/EDK2 firmware.

For Windows 10:

UEFI
Enter fullscreen mode Exit fullscreen mode

is sufficient.

For Windows 11, configure:

UEFI
+ Secure Boot capability
+ TPM 2.0
Enter fullscreen mode Exit fullscreen mode

Microsoft requires TPM 2.0 and UEFI/Secure Boot capability for Windows 11.

Configure the Virtual Disk

Step-1: CONFIGURE THE SATA DISK-1

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789885993/6_Configure_the_Virtual_Machine_eh1mnj.png

  • Select SATA Disk 1
  • Set Disk bus as VirtIO
  • Click Apply

This gives Windows high-performance paravirtualized storage.

However, Windows Setup may not initially recognize the disk. That is why the VirtIO ISO must also be attached.

Step-2: ATTACH THE VirtIO ISO

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789886621/9_Configure_the_Virtual_Machine_iaivq9.png

In virt-manager:

  • Click Add Hardware
  • Select Storage
  • Select as Select or create custom storage
  • Click Manage and select from ~/Downloads/virtio-win-0.1.302.iso
  • Then click Choose Volume

Now, Which setting you have to configure that shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789887060/10_Configure_the_Virtual_Machine_elbeku.png

  • Set Device Type as CDROM device
  • Set Bus type as SATA
  • Then click Finish

Step-3: CHECK SATA CDROM-1 and SATA CDROM-2

SATA CDROM-1 will be configured with Windows 10 ISO.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792468435/6.1_ymv3vi.png

SATA CDROM-2 will be configured with virtio-win-0.1.302.iso.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792468435/6.2_lu1nla.png

Step-4: SET BOOT SEQUENCE

Which setting you have to configure that shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789892322/12_Configure_the_Virtual_Machine_kb6fn9.png

  • Select Boot Options
  • Select as Enable boot menu and organize boot sequences as -
    • SATA CDROM 1
    • VirtIO Disk 1
  • Click Apply

Configure SPICE Display

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1790075428/62_Configure_SPICE_Display_be7ss0.png

  • Click Add Hardware
  • Select Graphics
  • Set type as Spice server
  • Then click Finish

For the video device, use a model supported by your current virt-manager/QEMU/Windows combination. QXL remains a common SPICE configuration; VirtIO-GPU may also be available depending on the stack and Windows driver support.

Note: If any problem faced for selecting as Spice server, then switched as VNC server

Configure the Network

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789886336/8_Configure_the_Virtual_Machine_pnw4bn.png

  • Select the network interface as NIC :9d:f3:8f
  • Set Network source as Virtual network 'default': NAT
  • Set Device model as virtio
  • Then click Apply

The final network architecture is:

Internet
   |
Ubuntu
   |
libvirt_NAT
   |
VirtIO_NIC
   |
Windows
Enter fullscreen mode Exit fullscreen mode

Configure the CPU

Use:

CPU model:
host-passthrough
Enter fullscreen mode Exit fullscreen mode

This exposes appropriate host CPU features to the guest.

💡Important! CPU topology correction

Do not use:

Sockets: 1
Cores: 1
Threads: 2
Enter fullscreen mode Exit fullscreen mode

and then call the VM a 4-vCPU VM.

That configuration represents:

1 × 1 × 2 = 2 vCPU
Enter fullscreen mode Exit fullscreen mode

For 4 vCPU, if manually specifying topology, for example:

Sockets: 1
Cores: 2
Threads: 2
Enter fullscreen mode Exit fullscreen mode

gives:

1 × 2 × 2 = 4 vCPU
Enter fullscreen mode Exit fullscreen mode

However, for a normal desktop Windows VM, simply allocating 4 virtual CPUs is usually easier.

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789891839/11_Configure_the_Virtual_Machine_fvnhcf.png

  • Select CPUs
  • Select Configuration as Copy host CPU configuration (host-passthrough)
  • Select Manually set CPU topology and set as Sockets: 1, Cores: 2, Threads: 2
  • Click Apply

Step-3: Windows Installation

Step-1: START WINDOWS INSTALLATION

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789892522/13_Configure_the_Virtual_Machine_ynuklg.png

Click Begin Installation

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789892842/14_Windows_OS_Installation_on_Virtual_Machine_uhku9t.png

When Allow inhibiting shortcut diaglog box shown then click Allow button.

  • Select Language
  • Select Time and currency Keyboard

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893008/15_Windows_OS_Installation_on_Virtual_Machine_n89efn.png

Then, click Install now

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893232/16_Windows_OS_Installation_on_Virtual_Machine_qif4j4.png

When prompted for a product key, you can select as I don't have a product key, if you plan to activate Windows later with a valid license.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893234/17_Windows_OS_Installation_on_Virtual_Machine_ac6pwi.png

Select the Windows edition you are licensed to use. For example, Windows 10 Pro

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893237/18_Windows_OS_Installation_on_Virtual_Machine_rxmvj8.png

Accept I accept the license terms

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893238/19_Windows_OS_Installation_on_Virtual_Machine_bvh1mj.png

Select as Custom: Install Windows only (advanced)

Step-2 (Method-1): LOAD THE VirtIO STORAGE DRIVER

When you may reach as Where do you want to install Windows? and No drives were found.

This happens because Windows Setup does not have the required VirtIO storage driver loaded.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893241/20_Windows_OS_Installation_on_Virtual_Machine_qrdkdg.png

Click Load driver

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893243/21_Windows_OS_Installation_on_Virtual_Machine_kurqpu.png

Then, click OK

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893246/22_Windows_OS_Installation_on_Virtual_Machine_hawe5x.png

Select as Red Hat VirtIO SCSI controller (E:\amd64\w10\viostor.inf) and then click Next

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893253/23_Windows_OS_Installation_on_Virtual_Machine_tu2fau.png

Select as Drive 0 Unallocated Space and click Next option.

Windows will create the necessary partitions automatically. The installation will proceed and the VM will restart several times. Once Windows starts booting from the virtual disk, you may remove the Windows installation ISO.

💡Keep the VirtIO ISO attached until the required drivers have been installed.

Step-2 (Method-2): LOAD THE VirtIO STORAGE DRIVER (Recommended)

When you may reach as Where do you want to install Windows? and No drives were found.

This happens because Windows Setup does not have the required VirtIO storage driver loaded.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893241/20_Windows_OS_Installation_on_Virtual_Machine_qrdkdg.png

Click Load driver

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792551593/2V_lbigef.png

  • Then, click Browse
  • Navigate to:
"CD Drive (E:) virtio-win-0.1.302" > viostor > w10 > amd64
Enter fullscreen mode Exit fullscreen mode
  • Then Select and click OK. Its select viostor.inf file automatically.
  • Click Red Hat VirtIO SCSI controller (E:\viostor\w10\amd64\viostor.inf) and also click Next.

Windows will create the necessary partitions automatically.

The installation will proceed and the VM will restart several times.

Once Windows starts booting from the virtual disk, you may remove the Windows installation ISO.

Keep the VirtIO ISO attached until the required drivers have been installed.

Step-3: COMPLETE WINDOWS INITIAL SETUP

Complete the normal Windows setup:

  • Keyboard layout
  • Network
  • User account
  • Password/PIN
  • Privacy settings

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893247/24_Windows_OS_Installation_on_Virtual_Machine_kuactk.png

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893256/25_Windows_OS_Installation_on_Virtual_Machine_ufndyt.png

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893259/26_Windows_OS_Installation_on_Virtual_Machine_pk1lgf.png

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893259/26_Windows_OS_Installation_on_Virtual_Machine_pk1lgf.png

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893251/27_Windows_OS_Installation_on_Virtual_Machine_qkv5fa.png

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893265/28_Windows_OS_Installation_on_Virtual_Machine_uw5uaz.png

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893265/28_Windows_OS_Installation_on_Virtual_Machine_uw5uaz.png

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893262/29_Windows_OS_Installation_on_Virtual_Machine_mevspw.png

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789893268/30_Windows_OS_Installation_on_Virtual_Machine_etxwgp.png

If you temporarily install without Internet access, you can connect the VirtIO network after installing the network driver.

Step-4: Install VirtIO Guest Drivers

Step-1: NETWORK CONNECTION AND OTHERS PERIPHERALS

After reaching the Windows desktop, open:

This PC
Enter fullscreen mode Exit fullscreen mode

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792554634/5V_oy3gcp.png

Open the VirtIO CD-ROM.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792554636/6V_tebyxa.png

You may find:

virtio-win-gt-x64.msi
Enter fullscreen mode Exit fullscreen mode

Install the appropriate package.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792554636/7V_odaot4.png

When these driver icon come to up, then select each for as Entire feature will be installed on local hard drive and click Next.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792554635/9V_w4waqo.png

When the pop-up box come to up, click Yes.

Restart Windows.

Step-2: INSTALL SPICE Guest Agent (DISPLAY/GRAPHICS DRIVER)

SPICE guest components are separate from the general VirtIO driver package.

The SPICE project provides Windows guest tools including SPICE-related guest components.

Download the appropriate SPICE guest tools from the official SPICE download area and install them inside Windows.

Unofficial download link

This can provide features such as:

  • Better mouse integration
  • Clipboard integration
  • Guest-agent communication
  • Improved desktop integration

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789903949/46_Install_spice-guest-tools_on_Windows_10_VM_OS_w1lbof.png

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789903953/47_Install_spice-guest-tools_on_Windows_10_VM_OS_egkkfd.png

Restart Windows after installation.

Step-3: VERIFY VirtIO DEVICES

Go to Search box

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789897672/31_Windows_OS_Driver_Installation_on_Virtual_Machine_t66mm7.png

Open Device Manager

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792556216/01_fgmkli.png

Check:

  • Disk drives
  • Storage controllers
  • Network adapters
  • Display adapters
  • System devices

There should be no unexplained yellow warning icons (⚠️).

If you don't see the yellow warning icon, it means that all drivers are installed correctly and there are no driver warnings.

If you see one, right-click it:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789897674/32_Windows_OS_Driver_Installation_on_Virtual_Machine_lqyapq.png

Click Update driver and then click Browse my computer for drivers

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792557451/122_sxlwxy.png

Select VirtIO drive or navigate to:

"CD Drive (E:) virtio-win-0.1.302" > viostor > w10 > amd64
Enter fullscreen mode Exit fullscreen mode

Click OK.

💡 This method is highly likely to solve this issue.

Run and Manage Windows-OS

Step-1: INSTALL virt-viewer ON UBUNTU

virt-viewer can connect to a virtual machine and display its graphical console in full-screen mode. Therefore, you can use it to view your Windows VM. This Step is optional.

First, check whether virt-viewer is already installed.

Open the Ubuntu terminal and type:

virt-viewer
Enter fullscreen mode Exit fullscreen mode

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789903957/49_Install_virt-viewer_on_Ubuntu_bq4zri.png

If virt-viewer is not installed, install it using:

sudo apt install virt-viewer
Enter fullscreen mode Exit fullscreen mode

Step-2 (Method-1): RUN WINDOWS 10/11 OS WITH KVM-QEMU

Suppose you are using Windows 10 as the guest OS.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789904613/53._Run_Windows_10_OS_with_KVM-QEMU_guk5ak.png

Open a terminal on Ubuntu and type:

virt-manager
Enter fullscreen mode Exit fullscreen mode

When the Virtual Machine Manager window opens, select Win10 and click the Play button.

This will be shown as follows:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789904616/54._Run_Windows_10_OS_with_KVM-QEMU_zkuyev.png

Now, open another terminal.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789904619/55._Run_Windows_10_OS_with_KVM-QEMU_isypll.png

Type:

virt-viewer
Enter fullscreen mode Exit fullscreen mode

When the Choose a virtual machine window opens, select Win10 and click the Connect button.

When the Allow inhibiting shortcuts dialog box appears, click the Allow button.

Now, enjoy!

Step-2 (Method-2): RUN WINDOWS 10/11 OS WITH KVM-QEMU

START VIRTUAL MACHINE

Open terminal and type:

virsh start Windows-10
Enter fullscreen mode Exit fullscreen mode

Here, replace Windows-10 with the name you gave while creating the Virtual Machine.

Example:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789885405/4_Create_new_virtual_machine_zum7sh.png

Here, you used name as win10. So, your terminal command have to:

virsh start win10
Enter fullscreen mode Exit fullscreen mode

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792563281/1258_wt89i8.png

Check status

virsh list --all
Enter fullscreen mode Exit fullscreen mode

Open Windows 10 with Virt-Viewer

virt-viewer
Enter fullscreen mode Exit fullscreen mode

When open a pop-up box as Choose a virtual machine, select win10 and click Connect

Now your Windows 10 OS will be run.

Now, enjoy!

SHUTDOWN VIRTUAL MACHINE

Shutdown your Windows OS

https://res.cloudinary.com/du7tjwbyi/image/upload/v1792569052/235_uyto7f.png

Then open terminal and type:

virsh shutdown win10
Enter fullscreen mode Exit fullscreen mode

If you have trouble shutting down Windows, you can use this command to force your virtual machine to shut down.

virsh destroy win10
Enter fullscreen mode Exit fullscreen mode

destroy does not delete the VM. It immediately stops the guest, similar to physically powering off a computer.

Use graceful shutdown whenever possible.

Create the First Snapshot

Once Windows is completely configured, shut it down.

In virt-manager:

Windows-10
→ Snapshots
→ Create
Enter fullscreen mode Exit fullscreen mode

Name it:

Clean-Windows-10-Installation
Enter fullscreen mode Exit fullscreen mode

You can create another snapshot after installing your normal applications:

Windows-10-Base-Apps
Enter fullscreen mode Exit fullscreen mode

Snapshots are useful recovery points, but they should not replace proper VM backups.

USB Passthrough

USB devices can be passed from Ubuntu to Windows.

Examples include:

  • USB flash drives
  • Android phones
  • USB printers
  • USB adapters
  • USB license dongles

Step-1: WHEN YOU WANT TO CONNECT USB DEVICES

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789905739/57_USB_Device_Allow-Disallow_pacerc.png

In virt-manager:

  • Select Virtual Machine
  • Select Redirect USB device

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789905743/58_USB_Device_Allow-Disallow_fuuf1a.png

Select the desired USB device and click.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789905747/59_USB_Device_Allow-Disallow_qohbq5.png

Step-2: WHEN YOU WANT TO DISCONNECT / EJECT USB DEVICES

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789905753/61_USB_Device_Allow-Disallow_pr2etl.png

Unchecked your USB-Device and close the windows.

YOU CAN ALSO INSPECT USB DEVICES FROM UBUNTU

lsusb
Enter fullscreen mode Exit fullscreen mode

Example:

Bus 001 Device 003: ID 046d:c077 Logitech Mouse
Enter fullscreen mode Exit fullscreen mode

File Sharing Between Ubuntu and Windows

There are two different directions.

Step-1: Ubuntu → Windows

If Ubuntu contains the files you want Windows to access, use Samba or another network-sharing mechanism on Ubuntu.

💡 Note: If you want to learn how to install and configure SMB on Linux, see this note.

Windows can then access:

\\192.168.122.1\share
Enter fullscreen mode Exit fullscreen mode

depending on the host-side network configuration.

Step-2: Windows → Ubuntu

If Windows contains the files you want Ubuntu to access, share the folder from Windows using SMB.

Windows shared folder ➜ [---SMB---] ➜ Ubuntu Files
Enter fullscreen mode Exit fullscreen mode

In Windows OS

The configuration method is shown in the image below:

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789898832/35_Share_specific_folder_publicly_mvlx86.png

Folder Properties > Sharing > Advanced Sharing > Check Share this folder > Permissions > Choose Everyone & set permissions > Apply > OK.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789898834/36_Share_specific_folder_publicly_v1uavs.png

Folder Properties > Security > Select Everyone > Set permissions > Apply > OK.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789898837/37_Share_specific_folder_publicly_husdzd.png

Go to the search box and type Manage advanced sharing settings.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789898843/38_Share_specific_folder_publicly_jm46z4.png

Expand Private (current profile).

  • Enable Turn on network discovery.
  • Enable Turn on file and printer sharing.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789898844/39_Share_specific_folder_publicly_qjb4eo.png

Expand Guest or Public.

  • Enable Turn on network discovery.
  • Enable Turn on file and printer sharing.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789898859/40_Share_specific_folder_publicly_dxgmb1.png

Expand All Networks.

  • Enable Turn on sharing so anyone with network access can read and write files in the Public folders.
  • Enable Use 128-bit encryption to help protect file sharing connections (recommended).

For normal use, do not disable password-protected sharing. Using authenticated SMB access is preferable.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789898846/41_Share_specific_folder_publicly_zm3c9o.png

Go to the search box, type cmd, and select Command Prompt.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789898861/42_Share_specific_folder_publicly_ks6khp.png

Type the following command in the terminal:

ipconfig
Enter fullscreen mode Exit fullscreen mode

Then look for the IPv4 Address. This is the IP address of the Windows 10 VM. For example, suppose the IP address is 192.168.122.128.

Access from Ubuntu

💡 Note: If you want to learn how to install and configure SMB on Linux, see this note.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789898866/43_Share_specific_folder_publicly_j2d7wq.png

Open Files on Ubuntu and go to the Network section. Enter:

smb://192.168.122.128
Enter fullscreen mode Exit fullscreen mode

Then press Enter.

  • After pressing Enter, a new Authentication Required window will appear.
  • Select the password field and enter your Windows login password.
  • Click the Connect button.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789898851/44_Share_specific_folder_publicly_m09wqu.png

Select your shared folder. For example, suppose the shared folder is named Drivers. Open the folder.

https://res.cloudinary.com/du7tjwbyi/image/upload/v1789898855/45_Share_specific_folder_publicly_qlthea.png

Copy or place the file you want to share into this folder. For example:

spice-guest-tools-latest.exe
Enter fullscreen mode Exit fullscreen mode

You can then access this file from Ubuntu through the Windows SMB share.

Backup the Virtual Machine (VM)

First shut down Windows:

virsh shutdown Windows-10
Enter fullscreen mode Exit fullscreen mode

Check:

virsh list --all
Enter fullscreen mode Exit fullscreen mode

Export the VM configuration:

virsh dumpxml Windows-10 > ~/Windows-10.xml
Enter fullscreen mode Exit fullscreen mode

Back up the disk:

sudo rsync -avh --progress \
/var/lib/libvirt/images/Windows-10.qcow2 \
~/Windows-10-backup.qcow2
Enter fullscreen mode Exit fullscreen mode

Your backup set should contain:

Windows-10.xml
Windows-10.qcow2
Enter fullscreen mode Exit fullscreen mode

For a serious backup strategy, store the backup on a different physical disk from the original VM.

Useful virsh Commands

List VMs

virsh list --all
Enter fullscreen mode Exit fullscreen mode

Start VM

virsh start Windows-10
Enter fullscreen mode Exit fullscreen mode

Shut down VM

virsh shutdown Windows-10
Enter fullscreen mode Exit fullscreen mode

Force stop

virsh destroy Windows-10
Enter fullscreen mode Exit fullscreen mode

VM information

virsh dominfo Windows-10
Enter fullscreen mode Exit fullscreen mode

Export VM configuration

virsh dumpxml Windows-10
Enter fullscreen mode Exit fullscreen mode

List networks

virsh net-list --all
Enter fullscreen mode Exit fullscreen mode

Start default network

virsh net-start default
Enter fullscreen mode Exit fullscreen mode

Enable network autostart

virsh net-autostart default
Enter fullscreen mode Exit fullscreen mode

Enable VM autostart

virsh autostart Windows-10
Enter fullscreen mode Exit fullscreen mode

Disable VM autostart

virsh autostart --disable Windows-10
Enter fullscreen mode Exit fullscreen mode

Common Problem

/dev/kvm Doesn't Exist

Check:

ls -l /dev/kvm
Enter fullscreen mode Exit fullscreen mode

Then:

lsmod | grep kvm
Enter fullscreen mode Exit fullscreen mode

For Intel:

sudo modprobe kvm_intel
Enter fullscreen mode Exit fullscreen mode

For AMD:

sudo modprobe kvm_amd
Enter fullscreen mode Exit fullscreen mode

Then:

ls -l /dev/kvm
Enter fullscreen mode Exit fullscreen mode

If it still doesn't exist, verify that virtualization is enabled in BIOS/UEFI.

KVM Acceleration Is Unavailable

Run:

kvm-ok
Enter fullscreen mode Exit fullscreen mode

If KVM cannot be used:

  1. Reboot.
  2. Enter BIOS/UEFI.
  3. Enable Intel VT-x or AMD-V/SVM.
  4. Boot Ubuntu.
  5. Run:
kvm-ok
Enter fullscreen mode Exit fullscreen mode

again.

default Network Is Inactive

Check:

virsh net-list --all
Enter fullscreen mode Exit fullscreen mode

If inactive:

sudo virsh net-start default
Enter fullscreen mode Exit fullscreen mode

Then:

sudo virsh net-autostart default
Enter fullscreen mode Exit fullscreen mode

Windows Says "No Drives Found"

This normally means that the VirtIO storage driver has not been loaded.

Go to:

Load driver
→ Browse
→ VirtIO CD
→ viostor / vioscsi
→ Windows version
→ amd64
Enter fullscreen mode Exit fullscreen mode

Select the appropriate .inf file.

The virtual disk should then appear.

Windows Has No Internet

In virt-manager, check:

Network source:
Virtual network 'default'
Enter fullscreen mode Exit fullscreen mode

and:

Device model:
VirtIO
Enter fullscreen mode Exit fullscreen mode

Then verify the VirtIO network driver inside Windows.

Run in windows terminal:

ipconfig
Enter fullscreen mode Exit fullscreen mode

If no adapter appears, open:

Device Manager
→ Network adapters
Enter fullscreen mode Exit fullscreen mode

and install the appropriate VirtIO driver.

Display Is Slow

Verify:

Display:
SPICE
Enter fullscreen mode Exit fullscreen mode

and make sure the appropriate Windows display/guest components are installed.

Also verify that the video device configured in virt-manager has a compatible Windows driver.

Windows Won't Boot After Changing Disk Bus

Suppose Windows was installed using:

SATA
Enter fullscreen mode Exit fullscreen mode

and you later change the disk to:

VirtIO
Enter fullscreen mode Exit fullscreen mode

Windows may fail to boot if the VirtIO storage driver wasn't installed beforehand.

The correct sequence is:

Install VirtIO driver
        ↓
Verify driver
        ↓
Shut down Windows
        ↓
Change disk to VirtIO
        ↓
Boot Windows
Enter fullscreen mode Exit fullscreen mode

Don't change storage controllers randomly after installation.

VM Is Extremely Slow

Check:

CPU:
host-passthrough

Disk:
VirtIO

Network:
VirtIO

Firmware:
UEFI

Display:
SPICE
Enter fullscreen mode Exit fullscreen mode

Then check host resources:

free -h
Enter fullscreen mode Exit fullscreen mode

and:

top
Enter fullscreen mode Exit fullscreen mode

If Ubuntu is running out of RAM or CPU, reduce the VM's allocation.

Recommended Configuration

For a host with 16 GB RAM:

┌──────────────────────────────────┐
│           Windows VM             │
├──────────────────────────────────┤
│ RAM          6 GB                │
│ CPU          4 vCPU              │
│ CPU Model    host-passthrough    │
│ Disk         80–100 GB           │
│ Disk Format  qcow2               │
│ Disk Bus     VirtIO              │
│ Network      VirtIO              │
│ Network      libvirt NAT         │
│ Firmware     UEFI                │
│ Display      SPICE               │
└──────────────────────────────────┘
Enter fullscreen mode Exit fullscreen mode

For Windows 11, additionally configure:

TPM            2.0
Secure Boot    Enabled/Supported
Enter fullscreen mode Exit fullscreen mode

Final Architecture

After configuration:

                         INTERNET
                            │
                            ▼
                    Ubuntu 26.04 Host
                            │
                 ┌──────────┴──────────┐
                 │                     │
              libvirt                 KVM
                 │                     │
                 └──────────┬──────────┘
                            │
                           QEMU
                            │
                   ┌────────┴────────┐
                   │                 │
                VirtIO             SPICE
                   │                 │
                   ▼                 ▼
             Windows 10/11       VM Console
                   │
        ┌──────────┼───────────┐
        │          │           │
      Disk       Network      USB
     VirtIO      VirtIO     Passthrough
Enter fullscreen mode Exit fullscreen mode

Conclusion

KVM/QEMU is a powerful way to run Windows inside Ubuntu without dual-booting.

Top comments (0)