In our previous article, we analyzed the post-Broadcom VMware crisis. It is now time to take action by providing a robust and cost-effective technical solution.
In this guide, we will configure a clean Debian 12 (Bookworm) server as a Type 1 hypervisor using KVM (Kernel-based Virtual Machine). For management, we will use Cockpit, a native Linux web interface that makes administering Virtual Machines simple and intuitive.
1. System Verification and Update
First, verify that the CPU supports virtualization extensions (Intel VT-x or AMD-V):
egrep -c '(vmx|svm)' /proc/cpuinfo
Ensure the system is up to date:
sudo apt update && sudo apt full-upgrade -y
2. Installing the KVM and Libvirt Stack
Proceed with installing the hypervisor and management libraries.
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libosinfo-bin -y
3. Network Configuration (Bridge)
To allow VMs to be visible on the LAN network, we must configure a Network Bridge (e.g., br0).
# /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug enp3s0
iface enp3s0 inet manual
auto br0
iface br0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8
bridge_ports enp3s0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
4. Cockpit Setup for Web Management
Install the base package and the specific module for VM management:
sudo apt install cockpit cockpit-machines -y
5. Complete Installation Video Tutorial
Integrating the textual guide, here is an Asciinema recording showing the entire process. You can copy text directly from the player.
Conclusions
By navigating to https://server_ip_address:9090, you now have full access to manage your virtual machines. We have transformed a standard Debian server into a powerful enterprise-grade KVM hypervisor, without licensing costs and vendor lock-in.


Commenti
Posta un commento