1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-29 08:55:29 +02:00
tldr/pages/common/virsh-undefine.md
Managor ad7b6f797c
common*: refresh old pages part 6 (#16288)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-03 05:57:05 +03:00

548 B

virsh undefine

Delete a virtual machine. More information: https://manned.org/virsh.

  • Delete only the virtual machine configuration file:

virsh undefine --domain {{vm_name}}

  • Delete the configuration file and all associated storage volumes:

virsh undefine --domain {{vm_name}} --remove-all-storage

  • Delete the configuration file and the specified storage volumes using the target name or the source name (as obtained from the virsh domblklist command):

virsh undefine --domain {{vm_name}} --storage {{sda,path/to/source}}