Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[SOLVED] KVM and Win 11

$
0
0
Someone tried telling me they were having troubles installing Windows 11 retail as a Virtual Machine...

That the install looked at hardare, so with hardware locks on TPM 2.0, and a minimum CPU requirement, that trying to run it on a Virtual Host that doesn't meet those requirements, was not possible, because the Virtual Host can only show through what capabilities it has... and that things could not be emulated, nor visualized for that to happen...

Well, here dispels the myth of that:

See attached screenshot

Code:

Device Name    WIN11-VM01
Processor        Intel Xeon E3112xx (sandy Bridge, IBRS update)  2.39 GHz (2 processors)
Product ID        00330-80000-00000-AA12EB8705EA7
System Type 64-bit operating system, x64-based processor
Pen or touch input is not available for this display

Edition Windows 11 Pro
Version 21H2
Installed on    10/24/2021
OS build          22000.194
Experience      Windows Feature Experience Pack 1000.22000.192.0

And the VIrt Host I did it on:
Code:

Host Device: Lenovo Thinkpad T520 type 4242
Host CPU: Intel® Core™ i7-2760QM CPU @ 2.40GHz × 8
Hardware TPM:
mafoelffen@Mikes-ThinkPad-T520:~$ dmesg | grep -i tpm
[    0.478370] tpm_tis 00:05: 1.2 TPM (device-id 0x0, rev-id 78)
mafoelffen@Mikes-ThinkPad-T520:~$ [ -d $(ls -d /sys/kernel/security/tpm* 2>/dev/null | head -1) ] && \ echo "TPM available" || echo "TPM missing"
TPM available
mafoelffen@Mikes-ThinkPad-T520:~$ kvm --version
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.18)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

In KVM, for the VM Guest, I am using UEFI w/ SecureBoot, and added a vTPM, before install... There are still a few tricks, but I did not touch the ISO file at all, except to use it through a certain manner.

Packages swtpm and swtpm-utils just got approval in Debian as a package last night... Code to it was updated 6 days ago, for the Debian Packaging. I am still running off the code from 6 months ago and it is running fine.

Here you go to those who have not embraced KVM. The friend who challenged me to this, is now "trying to do this same in ESXi on his below M$ required hardware Host... LOL
Attached Images

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>