Skip to content

Instantly share code, notes, and snippets.

@richardsonlima
Forked from amitsaha/virsh_cheat.rst
Created October 1, 2021 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardsonlima/23bacb66ce7448f4bc7f216fc1818e29 to your computer and use it in GitHub Desktop.
Save richardsonlima/23bacb66ce7448f4bc7f216fc1818e29 to your computer and use it in GitHub Desktop.
Virsh cheat sheet

Domain Management

  • List domains: #virsh list --all
  • Undefine domains: #virst undefine <domain-name>

Volume Management

  • List all volumes in pool 'default': #virsh vol-list default
  • Delete a volume: #virsh vol-delete --pool default virt-10.img

Pools

  • List pools: #virsh pool-list

Network management

Network bridges

Control with http://www.linux-kvm.com/content/using-bridged-networking-virt-manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment