Skip to content

Instantly share code, notes, and snippets.

@frank-dspeed
Last active June 26, 2022 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frank-dspeed/42961372a48c3a8f424dc826374a438d to your computer and use it in GitHub Desktop.
Save frank-dspeed/42961372a48c3a8f424dc826374a438d to your computer and use it in GitHub Desktop.
Running Windows 11 Hyper V on KVM

Run virt-manager and create a Win11 VM 4GB Ram, 64 GB Storage better double that numbers

sudo apt-get install virt-manager
newgrp libvirt
virt-manager

Download: Get Win11 Hyper-V Image 18 GB

Override the new empty disk from the before created Win11VM you can also use virt-v2v

qemu-img convert -O qcow2 WinDev2204Eval.HyperVGen1.vhd <win11_vm_disk_1_path /var/lib/libvirt/images/WinDev2204Eval.qcow2>
sudo virt-v2v -i disk /var/lib/libvirt/images/Naggaroth.vhdx -o local -of qcow2 -os /var/lib/libvirt/images/

Advanced

https://www.redpill-linpro.com/techblog/2021/04/07/nested-virtualization-hyper-v-in-qemu-kvm.html

## Is Virtualisation Enabled
egrep -c '(vmx|svm)' /proc/cpuinfo

## KVM Installed and running
kvm-ok || sudo apt install -y cpu-checker
sudo apt install -y qemu qemu-kvm libvirt-daemon libvirt-clients bridge-utils virt-manager
lsmod | grep kvm
sudo systemctl status libvirtd.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment