Skip to content

Instantly share code, notes, and snippets.

View oli-h's full-sized avatar
😎

Oli oli-h

😎
View GitHub Profile
@plembo
plembo / kvmwinsata2virtioubt.md
Last active September 2, 2023 19:01
kvm change windows sata to virtio on ubuntu

Change a SATA boot disk to virtio in a Windows KVM guest on Ubuntu 22.04 LTS

The problem here is that every Linux distro, and releases within distros, does things differently even when it comes to "common" services like qemu-kvm/libvirt.

Not sure why distro publishers continue to insist on that, but it results in a lot of wasted time downstream. My message, if I could get any of them to pay attention, would be: STOP IT!

I recently created a new Windows 11 guest in KVM on my Ubuntu 22 LTS Desktop system. My main motivation was to try running a game my kids had created, which I knew was going to require 3D accelerated graphics (whose installation is a matter for a different gist).

The installation went well. The trick, at least on Ubuntu 22.04's configuration of KVM, was to create a fresh guest and be sure to use the dropdown on the Overview tab to select a UEFI firmware (in my case, OVMF_CODE_4M.ms.fd) and to add an Emulated TPM 2.0 device (pass-through didn't work for me). Note, I did try and fail to