How to install KVM on Debian 12?
# check CPU
egrep -c '(vmx|svm)' /proc/cpuinfo
# install base packages
apt install -y qemu-kvm libvirt-daemon libvirt-clients bridge-utils virt-manager
#qemu-kvm - package of primary KVM SW
#libvritd-daemon - service for virtualization
#bridge-utils - for bridge connection
#virt-manager -- GUI sw for virtualization
#check and run daemon for virtualization
systemctl status libvirtd
systemctl enable --now libvirtd
#execute command for autostart networking
virsh net-start default
virsh net-autostart default
#check networkings
virsh net-list --all
# add module vhost_net to kernel -- boost network data trasnfer
/sbin/modprobe vhost_net
#check module
lsmod | grep vhost
#enable brige
vi /etc/network/interfaces
# -- add lines below (eth997 of course you replace for your real network interface)
## DHCP ip config file for br0 ##
auto br0
# Bridge setup
iface br0 inet dhcp
bridge_ports eth997
#check network
ip a s
Source: https://techviewleo.com/install-kvm-virt-manager-cockpit-debian/?expand_article=1
Žiadne komentáre:
Zverejnenie komentára