Forrest logo
back to context overview

virsh

List of commands for virsh:

  • virsh:tldr:0ef55 virsh: Delete a running guest.
    $ virsh destroy ${guest_id} && virsh undefine ${guest_id}
    try on your machine
    explain this command
  • virsh:tldr:6b2ba virsh: Dump guest configuration file.
    $ virsh dumpxml ${guest_id} > ${path-to-guest-xml}
    try on your machine
    explain this command
  • virsh:tldr:7a708 virsh: Create a guest from a configuration file.
    $ virsh create ${path-to-config_file-xml}
    try on your machine
    explain this command
  • virsh:tldr:99e6f virsh: Start/reboot/shutdown/suspend/resume a guest.
    $ virsh ${command} ${guest_id}
    try on your machine
    explain this command
  • virsh:tldr:9cc4e virsh: List all domains.
    $ virsh list --all
    try on your machine
    explain this command
  • virsh:tldr:b68bd virsh: Edit a guest's configuration file (editor can be changed with $EDITOR).
    $ virsh edit ${guest_id}
    try on your machine
    explain this command
  • virsh:tldr:c1002 virsh: Connect to a hypervisor session.
    $ virsh connect ${qemu:---system}
    try on your machine
    explain this command
  • virsh:tldr:f7829 virsh: Save the current state of a guest to a file.
    $ virsh save ${guest_id} ${filename}
    try on your machine
    explain this command
back to context overview