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

mNo edit summary
mNo edit summary
Line 99: Line 99:
****virsh net-destroy default (essentially stops the device, and also deletes it, as apparently restarting it alone isn't enough)
****virsh net-destroy default (essentially stops the device, and also deletes it, as apparently restarting it alone isn't enough)
****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)
*****TOP TIP: When using the virsh net-define command, don't put the 'base' configuration file in /etc/libvirt/qemu/networks
****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?  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!
****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!