VIRSH Commands Cheat Sheet
Here is a cli commands cheat sheet for VIRSH command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.
What is VIRSH command?
Add some data here
# Connect to a hypervisor session: virsh connect qemu:///system # List all domains: virsh list --all # Dump guest configuration file: virsh dumpxml guest_id > path/to/guest.xml # Create a guest from a configuration file: virsh create path/to/config_file.xml # Edit a guest's configuration file (editor can be changed with $EDITOR): virsh edit guest_id # Start/reboot/shutdown/suspend/resume a guest: virsh command guest_id # Save the current state of a guest to a file: virsh save guest_id filename # Delete a running guest: virsh destroy guest_id && virsh undefine guest_id
Check out the VIRSH command documentation .
You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again