I am new to servers and vms wanted to know the difference between
virsh destroy
and
virsh undefine
The
virsh destroycommand initiates an immediate ungraceful shutdown and stops the specified guest virtual machine. Usingvirsh destroycan corrupt guest virtual machine file systems. Use thevirsh destroycommand only when the guest virtual machine is unresponsive. Thevirsh destroycommand with the--gracefuloption attempts to flush the cache for the disk image file before powering off the virtual machine.
virsh delete @ access.redhat.com
The
virsh undefinedomain command undefines a domain. If domain is inactive, the configuration is removed completely. If the domain is active (running), it is converted to atransient domain. When the guest virtual machine becomes inactive, the configuration is removed completely.
virsh undefine @ access.redhat.com
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With