Friday, June 30, 2023

Install Windows 11 as KVM Guest in SparkyLinux 7 using virt-manager

First of all make sure that packages :

$ sudo apt install ovmf swtpm swtpm-tools

are already installed on your system, then the configuration  of TPM is no longer your concern. Howevere, original setup would still look like





 During installation you would have to invoke regedit via command promt (SHIFT+F10)  and  follow https://www.debugpoint.com/install-windows-ubuntu-virt-manager/  :

Go to HKEY_LOCAL_MACHINE\SYSTEM\Setup.

Right-click and select New > Key. Add the key name as LabConfig.

While LabConfig is selected, add New > DWORD (32 bit) Value. Add the name as BypassSecurityBootCheck. Then right-click on the name and select Modify. Give the value as 1.

Afterwards get back to installation procedure and complete Windows 11 KVM Guest setup.

















References

http://lxer.com/module/newswire/view/330699/index.html

Thursday, June 8, 2023

Set up KVM && Cockpit WEB Console on Debian BookWorm (12)

Virt-manager still appears to be the most powerful tool in regards of deployment and managment of KVM guests. Also sometimes it seems to be more functional rather then Cockpit Web console, in my very personal opinion. In particular, it allows to configure some features required by Windows 11 KVM Guest in the most recent builds of Fedora Linux 38,37.
The presence of Web Cockpit Console is a nice way to manage KVM guest's via clicking the button "Launch remote viewer"  built into Cockpit Web Console. Bridge attached to external network interface was also created utilizing network management section inside Web Console and provides an alternative for guests attachment via NAT.

 Install KVM
 $ sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system \
                bridge-utils virtinst libvirt-daemon virt-manager -y 
 $ sudo virsh net-start default
 $ sudo virsh net-autostart default                    
 $ sudo modprobe vhost_net 
 $ lsmod | grep vhost
 $ echo vhost_net | sudo tee -a /etc/modules
 $ sudo usermod -a -G libvirt  $(whoami)
 $ sudo reboot

 Install Web Cockpit Console
 $  sudo apt install cockpit cockpit-machines
 $  sudo systemctl start cockpit.socket
 $  sudo systemctl enable cockpit.socket

 Tuning firewall
 $  sudo apt install firewalld
 $  sudo firewall-cmd --add-service=cockpit --permanent
 $  sudo firewall-cmd --reload























Saturday, June 3, 2023

Install Windows 11 as KVM Guest in Fedora 38 WKS using virt-manager

 First install packages

 $ sudo dnf -y install edk2-ovmf swtpm swtpm-tools 

 Before running usual installation configure Virt-manager as follows :



 















At this point proceed with standard Win 11 KVM Guest installation (8 GB RAM, 4 VCPUs, 70 GB image file) . You should have e-mail account with Microsoft has been setup to complete install with no problems. That is obviously a testing attempt prior to purchasing Win 11 legal ISO from MS.




























Destination folder for images (status)

[boris@fedora images]$ pwd
/var/lib/libvirt/images
[boris@fedora images]$ sudo ls -l
total 31591676
-rw-------. 1 root root 75173658624 May 30 20:28 ServerFedora38.qcow2
-rw-------. 1 root root 53695545344 Jun  3 22:18 ubuntu23.04.qcow2
-rw-------. 1 root root 75173658624 Jun  3 23:34 win11.qcow2

















Hardware environment:

The test completes without problems and any aditional drivers installations on it's way and during post-install configuration.  On the WD-500 NVMe, this takes no more than 15 minutes.  Processor Ryzen 7 3700 , 16 GB RAM. Win 11 Guest 8 GB RAM, 4 VCPUs, 70 GB image file.

Updates appear to be applied right away via Internet and finally Windows 11 Guest reboots and bring you to login prompt.