Installing

These instructions are for Arch Linux, but I’m sure you can get it working on any other distro since KVM and QEMU are built in kernel modules.

1sudo pacman -S qemu-full virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat libguestfs

That installs all the packages you need plus a front end graphical interface. (virt-manager)

Start the libvirtd service:

1sudo systemctl start libvirtd

Enable it on startup:

1sudo systemctl enable libvirtd

Edit: /etc/libvirt/libvirtd.conf

Uncomment the following lines:

libvirtd

Now add your user to libvirtd group:

1sudo usermod -aG libvirt USER

You might have to log out and back in for the changes to take effect.

Restart libvirtd service:

1sudo systemctl restart libvirtd.service

Let’s install windows

Download Windows 10.

Open up virt-manager, make sure QEMU/KVM is connected:

virt

Go to edit then preferences and check “Enable XML editing”.

xml

Click create a new virtual machine, browse local, click browse again and find the Windows 10 machine you downloaded.

browse

local

Then customize the virtual machine to your liking, don’t use more than half of your CPU cores. Click “customize configuration before install”.

customize

On the overview section go to the XML tab and delete these two lines:

delete

Change this line to yes:

yes

And click apply. Now go to SATA Disk 1, Details, and change it to VirtiO:

virtiO

Do the same to the NIC:

nic

And now download the fedora Windows virtio drivers choose the “virtio-win.iso”.

Now go back to virt-manager and click add hardware, storage , CD-ROM drive.

cdrom

Go to the newly created SATA CD-ROM 2 and add the virtio-win.iso. Now click begin installation.

It’ll ask you for a product key, choose you don’t have one. Pick your Windows version and click custom install:

custom

Click load driver and click OK and choose the Windows 10 driver:

driver

And finally choose the virtual storage and install. Wait for it to finish.

Once it’s done open up the Windows explorer, go to this pc, click cd drive E and install both of these:

driver

And that’s it you’re done.