KVM Kernel Virtualization Machine on Rocky Linux 9: Difference between revisions

mNo edit summary
mNo edit summary
Line 47: Line 47:
'''Tricks, Tips, and Other Useful Information (all of which applies to Rocky Linux 9, and others based on Red Hat)'''
'''Tricks, Tips, and Other Useful Information (all of which applies to Rocky Linux 9, and others based on Red Hat)'''


* Rocky Linux 9 Network Configuration Files Directory: /etc/Network/Manager/system-connections (NOT /etc/sysconfig/network-scripts)
*Rocky Linux 9 Network Configuration Files Directory: /etc/Network/Manager/system-connections (NOT /etc/sysconfig/network-scripts)
* QEMU / KVM Configuration Files: /etc/libvirt/qemu/
*QEMU / KVM Configuration Files: /etc/libvirt/qemu/
** Heed the warning notes on some of these files as they should not be edited directly.  Although a workaround is to edit the files directly, then restart the libvirtd.service (systemctl restart libvirtd.service)
**Heed the warning notes on some of these files as they should not be edited directly.  Although a workaround is to edit the files directly, then restart the libvirtd.service (systemctl restart libvirtd.service)
** virsh net-edit default (it uses the VI editor)
**virsh net-edit default (it uses the VI editor)
*** VI Editor
***VI Editor
**** i = Insert (AKA Edit) Mode
****i = Insert (AKA Edit) Mode
**** ESC = Command Mode
****ESC = Command Mode
**** : (Colon) = "Beginning of Command"
****<span> </span>: (Colon) = "Beginning of Command"
**** w = Write (as in :w)
****w = Write (as in<span> </span>:w)
**** x = Exit / Quit and Save (AKA Write) (as in :x)
****x = Exit / Quit and Save (AKA Write) (as in<span> </span>:x)
**** q = Quit (AKA Exit)
****q = Quit (AKA Exit)
* QEMU / KVM Additional Bridge Configuration: /etc/qemu-kvm/
*QEMU / KVM Additional Bridge Configuration: /etc/qemu-kvm/
*Documentation from QEMU / KVM on Bridges and Networking: https://libvirt.org/formatnetwork.html
*All, or most of the documentation for Rocky Linux 9 that steers one towards /etc/udev/rules.d is now located in /lib/udev/rules.d
*Network Remapping End Result(s) (IE, if you want to see how the "Predictable Network Interface Naming" decided on how things were to be done: /sys/class/net
**In short, here's how it goes with Rocky Linux 9 mapping a physical Network Adapter to a configuration file;
***Physical Network Adapter (represented by files located in /sys/devices and below / down)
***⇌
***Calculations done in the name of "Predictable Network Interface Naming", whose 'scripts' are located in /lib/udev/rules.d/80-net-setu-link.rules and whose result(s) are located in the Symbolic Links located in /sys/class/net (which in turn point to 'device files' in /sys/devices)
***⇌
***Configuration File (in /etc/NetworkManger)
***
***⇌  ⇌  ⇌  ⇌  ⇌  ⇌