Howto KVM: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
No edit summary
m (Protected "Howto KVM" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
 
(8 intermediate revisions by 2 users not shown)
Line 22: Line 22:
install virt-manager:
install virt-manager:
  dnf install virt-manager -y
  dnf install virt-manager -y
install efi support:
dnf install edk2-ovmf -y
= libvirt deamon =
start and enable libvirt daemon:
systemctl start libvirtd && systemctl enable libvirtd
= install repos =
install epel and castor remmina:
dnf install epel-release
dnf copr enable castor/remmina
dnf install 'remmina*' -y
= install virtio windows drivers =
install windows virtio drivers:
dnf install http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/virtio-win-1.9.19-1.el8.noarch.rpm -y
= references =
* https://www.microsoft.com/en-us/software-download/windows10ISO

Latest revision as of 20:07, 15 December 2021

check cpu virtualization support

verify if you have svm or vmx support:

grep -E 'svm|vmx' /proc/cpuinfo

verify that the kvm kernel modules are loaded:

lsmod | grep kvm

load kernel module for intel:

modprobe kvm-intel

load kernel module for amd:

modprobe kvm-amd

create bridge interface

create the bridge interface:

nmcli connection add type bridge autoconnect yes con-name br0 ifname br0

add device to bridge:

nmcli connection add type bridge-slave autoconnect yes con-name br0-eth0 ifname eth0 master br0

add ip address to bridge interface:

nmcli connection modify br0 ipv4.address 192.168.75.15 ipv4.method manual ipv4.gateway 192.168.75.1 ipv4.dns 4.2.2.1,4.2.2.2

active bridge interface:

nmcli connection up br0

install virtualization packages

using dnf install Virtualization Host group:

dnf groupinstall "Virtualization Host" -y

install virt-manager:

dnf install virt-manager -y

install efi support:

dnf install edk2-ovmf -y

libvirt deamon

start and enable libvirt daemon:

systemctl start libvirtd && systemctl enable libvirtd

install repos

install epel and castor remmina:

dnf install epel-release
dnf copr enable castor/remmina
dnf install 'remmina*' -y

install virtio windows drivers

install windows virtio drivers:

dnf install http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/virtio-win-1.9.19-1.el8.noarch.rpm -y

references