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

mNo edit summary
mNo edit summary
Line 100: Line 100:
****virsh net-define default (in reality, the intent is to 're-define' the interface, but from the VIRTLIBD perspective the interface has been 'destroyed' and isn't there, so it needs to be defined)
****virsh net-define default (in reality, the intent is to 're-define' the interface, but from the VIRTLIBD perspective the interface has been 'destroyed' and isn't there, so it needs to be defined)
****virsh net-start default
****virsh net-start default
****Note: Hey, I've got an idea for you genzers that are programming this, why not create a virsh net-restart command that intuitively does what a bazillion other past command examples do to complete the above task?
****Note: Hey, I've got an idea for you genzers that are programming this, why not create a virsh net-restart command that intuitively does what a bazillion other past command examples do to complete the above task? And don't say virsh net-update add / modify, because that is just as convoluted.  Go ahead, read it right here and see if having a virsh net-restart command doesn't make good sense: https://wiki.libvirt.org/Networking.html#:~:text=If%20you%20edit%20the%20network,automatically%20done%20as%20a%20side  Now why would all of this be a big issue?  Well guess what, there's this thing called reality where you can get this error: "failed to get domain" when using the virsh net-destroy and then what?  Reboot MFer.  That's it.  Thanks Genzers!
*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
*Documentation from QEMU / KVM on Bridges and Networking: https://libvirt.org/formatnetwork.html
Line 507: Line 507:




=== Rants and Temper Tantrums ===
===Rants and Temper Tantrums===
Delete a bridge created by using an XML file.  It works most of the time.  But what happens if you get a dreaded "failed to get a 'forking' domain" error message?  What then?  Well, your SOL until you reboot the machine.  NOTHING works!
Delete a bridge created by using an XML file.  It works most of the time.  But what happens if you get a dreaded "failed to get a 'forking' domain" error message?  What then?  Well, your SOL until you reboot the machine.  NOTHING works!