How to Configure and Install KVM on Debian 11 Bullseye Linux – Guide

This guide will show you how to install KVM Hypervisor Virtualization server on Debian 11 | 10. KVM is a complete open source virtualization solution for Linux systems running on x86 hardware with virtualization extensions (Intel VT or AMD-V). ..

Intel VT or AMD-V support is required for KVM to work. KVM consists of a loadable kernel module, kvm.ko, which provides the core virtualization infrastructure and a processor-specific module, kvm-intel.ko or kvm-amd.ko.

Steps to install and enable KVM on Debian 11 Bullseye

To set up Qemu KVM on Debian 10 Buster:

  1. Install the Debian 10 Buster update package.
  2. Upgrade the Debian 10 Buster kernel to version 4.10.0-4+deb9u1.
  3. Install the qemu-kvm package from the Debian repositories.
  4. Reboot the Debian 10 Buster system and install the qemu-kvm daemon: 5a. Type “sudo apt-get update” to update the packages in the Debian repository and then type “sudo apt-get install qemu-kvm” to install it into the system. 5b. Type “qemu-kvm” to start a QEMU KVM virtual machine on a Debian 10 Buster system:

1. Confirm virtualization support

sudo apt-get install virtualization-utils This will enable you to run virtual machines on your Debian 11 system.

As you run the commands to confirm virtualization is enabled or not, the output will be greater than zero. And if not, you first need to reboot the system and enter the system BIOS. Enable virtualization and then boot into the OS where again run the commands to confirm that virtualization is enabled.

The output of the first command will be greater than zero, that means it can be 1, 2, 6 or 8. Therefore, the system supports virtualization.

To get information about your CPU, use the second command. If the text output is in red, it is for an Intel CPU, while if it’s in green, it’s for an AMD CPU. ..

2. Run system update

If you have not run the update command, run it now. After running the update command, proceed to update installed packages and rebuild the repository cache. ..

3. Command to install QEMU-KVM & Libvirt on Debian 11 Bullseye

To install Qemu, KVM hypervisor and Libvirt on Debian 11 Linux, follow these key commands:

  1. First, install the necessary packages: apt-get install qemu-kvm libvirt-bin.
  2. Next, create a new virtual machine using qemu: qemu-system-x86_64 -enable-kvm -net nic -net user,hostfwd=tcp::2222 -cdrom /path/to/ISO/image.iso -vga std .
  3. Finally, start the virtual machine by running: qemu-system-x86_64 -load-module module_name . ..

4. Virt-Manager GUI for KVM

Graphical Debian 11 Desktop users can also install Virt-Manager, a graphical user interface developed by RedHat to create, manage and run virtual machines using KVM.

5. Make the network active and restart automatically

vmware-vncserver -connect localhost:5900 This will create a KVM virtual machine on the local computer and connect to the VMware network.

To make the default network active and start automatically on system reboot, run the following commands: ..

You can check the network again to see if there are any updates. ..

6. Add “vhost_net”

To improve network data transfer performance and reduce virtio-net load, we can add the kernel module vhost_net to our Debian 11 Linux system using the command given below. ..

The Vhost-net and Virtio-networking projects are two projects that aim to improve the performance of guest kernels by using a backend called Vhost-net and a frontend called Virtio-networking.

  1. Look at the battery icon on your phone. If it is green, the phone is charging; if it is red, the phone has been activated.

7. Create a bridge network (optional)

To access the KVM virtual machine on another computer on your network, you will need to create a full bridge interface over the physical NIC of your host system. This will give the IP range of your network to the bridge interface, allowing you to access the KVM virtual machine from outside your host PC. ..

The physical network interface connected to the host system that you want to use for the bridge.

You will see all network interfaces connected on your host machine. Now make a note of the one you want to use for the Bridge network.

192.168.0.1-192.168.0.255 is the range of IP addresses for the enps03 device ..

sudo nano /etc/network/interfaces and add the following line: auto eth0 iface eth0 inet dhcp Save and close the file. ..

“The president of the United States, Donald Trump, announced that he would be withdrawing from the Paris Agreement.” “Donald Trump announced that he would be withdrawing from the Paris Agreement and said that he plans to reevaluate the agreement in light of his new policies.”

The yellow values ​​according to my network are:

  1. Miami - $101,000
  2. New York City - $181,000
  3. Los Angeles - $123,000

To save the file, press Ctrl + O, press the Enter key, and exit using Ctrl + X. ..

DHCP bridge: To obtain an IP address using DHCP, you must first create a DHCP server.

To disable the Windows 10 “Hey, Cortana” feature, follow these steps:

  1. Open the Start menu and type “settings”.
  2. Click on the “Settings” app that appears.
  3. Under “Personalization”, click on the “Cortana” button.
  4. On the left side of the window, under “General”, uncheck the box next to “Hey, Cortana”.
  5. Click on OK to save your changes. ..

To apply the changes, restart Network Manager. ..

The bridge br0 is configured to use DHCP for its network ports. ..

To determine the source of an online attack, you can use a tool called IP address tracing. This is a process of looking at the source IP address of all the traffic that flows through your computer or network. ..

This time, you will see a new br0 bridge interface that is specifically designed for you.

8. Create virtual machines using Virt-Manager GUI

To use Virt’s command line to create virtual machines and run using KVM, follow the link.

Since Debian 11 Desktop can use Virt-Manager, it may be a good idea to try it out. This article provides a glimpse into how it works.

To get started with Virt-Manager, open the Application Launcher and look for “Virtual Machine Manager”. Once you have found it, click on it to open. Before you can start working with Virt-Manager, you will need to enter your root password. This will allow you to create and manage virtual machines. ..

Virtual machines: Click PC icon to create a new virtual machine in Virt-Manager using KVM. You can use Virt-Manager to create virtual machines, which are software environments that run on your computer. Virtual machines can be used for testing software or for running different versions of the same software. ..

In this article, we are going to install Windows 10 on a virtual machine using the ISO file ISO-10586. To do this, we will need to first locate the Media ISO file. The Media ISO file is a compressed image of an operating system that you can use to install Windows 10 on your virtual machine as a guest operating system.

After you have unselected the “Automatically detect from installation media / source” box, click the Next button. ..

To assign more virtual memory to a VM, set the amount of virtual memory you want to assign to the VM and then the number of CPU cores.

To install the VM guest OS we need some storage space. To create a disk image file, we need to enter the amount of hard drive space we want to allocate. ..

Name your virtual machine here. By default, Virt-manager will use NAT, however, you can select the Bridge interface or the default interface, ie vibr0. If you don’t know about these settings, let the default NAT be selected.

This tutorial will show you how to create a Qemu KVM virtual machine on Debian 11 Bullseye, so that you can use it just like any other physical computer. ..

Final note

This guide will show you how to configure and install KVM on Debian 11 Bullseye Linux. If you have any questions about this article, please ask us. Additionally, please share your love by sharing this article with your friends.