hellt / netdevops.me_gitment_comments

0 stars 0 forks source link

Destroy and Undefine KVM VMs in a single run #51

Open hellt opened 4 years ago

hellt commented 4 years ago

https://netdevops.me/2017/destroy-and-undefine-kvm-vms-in-a-single-run/

virsh is a goto console utility for managing Qemu/KVM virtual machines. But when it comes to deletion of the VMs you better keep calm - there is no single command to destroy the VM, its definition XML file and disk image.

Probably not a big problem if you have a long-living VMs, but if you in a testing environment it is naturally to spawn and kill VMs quite often. Lets see how xargs can help us with that routine.