Skip to content

Instantly share code, notes, and snippets.

@n0toose
Created October 30, 2021 15:40
Show Gist options
  • Save n0toose/2c593c1f4f25f58f579fda8d9c9e30c9 to your computer and use it in GitHub Desktop.
Save n0toose/2c593c1f4f25f58f579fda8d9c9e30c9 to your computer and use it in GitHub Desktop.
Remove libvirtd and all of its sockets out of existence
# I know this is dirty, but come on, starting my Windows virtual machine
# just freezes everything and the whole thing won't even respond to `systemctl`.
#
# Use with root privileges, not my responsibility if you mess things up.
pkill -9 libvirt
rm -rf /run/libvirtd.pid
rm -rf /run/libvirt/interface/driver.pid
rm -rf /run/libvirt/secrets/driver.pid
rm -rf /run/libvirt/nodedev/driver.pid
rm -rf /run/libvirt/network/driver.pid
rm -rf /run/libvirt/storage/driver.pid
rm -rf /run/libvirt/nwfilter/driver.pid
rm -rf /run/libvirt/qemu/driver.pid
rm -rf /run/libvirt/lxc/driver.pid
rm -rf /run/user/1000/libvirt/network/lib/driver.pid
rm -rf /run/user/1000/libvirt/storage/run/driver.pid
rm -rf /run/user/1000/libvirt/nodedev/run/driver.pid
rm -rf /run/user/1000/libvirt/qemu/run/driver.pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment