Difference between revisions of "KVM Kernel Virtualization Machine on Rocky Linux 9"

Wiki.TerraBase.info
Jump to navigation Jump to search
(Created page with "...below are just rough notes from three different sources, including ChatGPT. They are ordered in each section as below from the following sources; * https://www.linuxtechi.com/install-kvm-on-rocky-linux-almalinux/ * https://computingforgeeks.com/install-use-kvm-virtualization-on-rocky/ * ChatCPT '''Check for VM Support in CPU;''' * cat /proc/cpuinfo | egrep "vmx|svm" * lscpu | grep Virtualization * No Comment '''Install all the Stuff (for the first two sources the...")
 
m
Line 1: Line 1:
...below are just rough notes from three different sources, including ChatGPT.  They are ordered in each section as below from the following sources;
...below are just rough notes from three different sources, including ChatGPT.  They are ordered in each section as below from the following sources;


* https://www.linuxtechi.com/install-kvm-on-rocky-linux-almalinux/
*https://www.linuxtechi.com/install-kvm-on-rocky-linux-almalinux/
* https://computingforgeeks.com/install-use-kvm-virtualization-on-rocky/
*https://computingforgeeks.com/install-use-kvm-virtualization-on-rocky/
* ChatCPT
*ChatCPT


'''Check for VM Support in CPU;'''
'''Check for VM Support in CPU;'''


* cat /proc/cpuinfo | egrep "vmx|svm"
*cat /proc/cpuinfo | egrep "vmx|svm"
* lscpu | grep Virtualization
*lscpu | grep Virtualization
* No Comment
*No Comment


'''Install all the Stuff (for the first two sources there were duplicate items on multiple lines that were cleaned up, oops, no proof reading on their part, huh, just a copy and paste);'''
'''Install all the Stuff (for the first two sources there were duplicate items on multiple lines that were cleaned up, oops, no proof reading on their part, huh, just a copy and paste);'''


* dnf install qemu-kvm virt-manager libvirt virt-install virt-viewer libguestfs-tools bridge-utils virt-top
*dnf install qemu-kvm virt-manager libvirt virt-install virt-viewer libguestfs-tools bridge-utils virt-top
* dnf install qemu-kvm virt-manager libvirt virt-install virt-viewer libguestfs-tools bridge-utils virt-top
*dnf install qemu-kvm virt-manager libvirt virt-install virt-viewer libguestfs-tools bridge-utils virt-top
* dnf install qemu-kvm libvirt virt-install virt-manager AND apparently installing virt-manager again (just to make sure)
*dnf install qemu-kvm libvirt virt-install virt-manager AND apparently installing virt-manager again (just to make sure)


NOTES: And of course there are about a hundred or so other dependencies that are downloaded and installed too.
NOTES: And of course there are about a hundred or so other dependencies that are downloaded and installed too.
Line 23: Line 23:
'''Check Installation;'''
'''Check Installation;'''


* lsmod | grep kvm
*lsmod | grep kvm
* lsmod | grep kvm
*lsmod | grep kvm
* No Comment
*lsmod | grep kvm AND virsh list --all


'''Start AND Enable Automatic Starting of the "KVM" Services AND see if they're actually running;'''
'''Start AND Enable Automatic Starting of the "KVM" Services AND see if they're actually running;'''


* sudo systemctl start libvirtd AND systemctl enable --now libvirtd AND systemctl status libvirtd
*sudo systemctl start libvirtd AND systemctl enable --now libvirtd AND systemctl status libvirtd
* sudo systemctl start libvirtd AND sudo systemctl enable libvirtd AND systemctl status libvirtd
*sudo systemctl start libvirtd AND sudo systemctl enable libvirtd AND systemctl status libvirtd
* sudo systemctl start libvirtd AND sudo systemctl enable libvirtd AND No Comment
*sudo systemctl start libvirtd AND sudo systemctl enable libvirtd AND No Comment


'''Permissions and User Related Stuff;'''
'''Permissions and User Related Stuff;'''


* No Comment
*No Comment
* usermod -aG libvirt $USER
*usermod -aG libvirt $USER AND newgrp libvirt
* usermod -aG libvirt $(whoami)
*usermod -aG libvirt $(whoami)
 
'''Network Connectivity, don't forget that;'''
 
*

Revision as of 17:20, 19 December 2023

...below are just rough notes from three different sources, including ChatGPT. They are ordered in each section as below from the following sources;

Check for VM Support in CPU;

  • cat /proc/cpuinfo | egrep "vmx|svm"
  • lscpu | grep Virtualization
  • No Comment

Install all the Stuff (for the first two sources there were duplicate items on multiple lines that were cleaned up, oops, no proof reading on their part, huh, just a copy and paste);

  • dnf install qemu-kvm virt-manager libvirt virt-install virt-viewer libguestfs-tools bridge-utils virt-top
  • dnf install qemu-kvm virt-manager libvirt virt-install virt-viewer libguestfs-tools bridge-utils virt-top
  • dnf install qemu-kvm libvirt virt-install virt-manager AND apparently installing virt-manager again (just to make sure)

NOTES: And of course there are about a hundred or so other dependencies that are downloaded and installed too.

ISSUES: bridge-utils virt-top might give issues if attempting to install at the same time, so try installing separately.

Check Installation;

  • lsmod | grep kvm
  • lsmod | grep kvm
  • lsmod | grep kvm AND virsh list --all

Start AND Enable Automatic Starting of the "KVM" Services AND see if they're actually running;

  • sudo systemctl start libvirtd AND systemctl enable --now libvirtd AND systemctl status libvirtd
  • sudo systemctl start libvirtd AND sudo systemctl enable libvirtd AND systemctl status libvirtd
  • sudo systemctl start libvirtd AND sudo systemctl enable libvirtd AND No Comment

Permissions and User Related Stuff;

  • No Comment
  • usermod -aG libvirt $USER AND newgrp libvirt
  • usermod -aG libvirt $(whoami)

Network Connectivity, don't forget that;