Install and Configure KVM

This KVM (core-based virtual machine) + QEMU is virtualization configuration. This requires the CPU on your computer to have an Intel VT or AMD-V function.

[1] Install and Configure KVM

[[email protected] ~]# dnf install qemu-kvm libvirt virt-install bridge-utils -y

# verify modules are loaded
[[email protected] ~]# lsmod | grep kvm
kvm_intel             335872  0
kvm                   909312  1 kvm_intel
irqbypass              16384  1 kvm

[[email protected] ~]# systemctl enable libvirtd
[[email protected] ~]# systemctl start libvirtd

[[email protected] ~]# ifconfig
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.122.2  netmask 255.255.255.0  broadcast 192.168.122.255
        inet6 fe80::b5b6:a9e7:5cc7:4022  prefixlen 64  scopeid 0x20
        ether 52:54:00:03:7a:af  txqueuelen 1000  (Ethernet)
        RX packets 290073  bytes 425928241 (406.1 MiB)
        RX errors 0  dropped 9  overruns 0  frame 0
        TX packets 128143  bytes 9556838 (9.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 2044  bytes 103676 (101.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2044  bytes 103676 (101.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.124.1  netmask 255.255.255.0  broadcast 192.168.124.255
        ether ae:9b:0e:74:48:f3  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[[email protected] ~]# brctl show
bridge name    bridge id        STP enabled    interfaces
virbr0        8000.ae9b0e7448f3    yes        virbr0-nic