我是服务器新手,想知道 vms 之间的区别
virsh destroy
和
virsh undefine
最佳答案
The
virsh destroy
command initiates an immediate ungraceful shutdown and stops the specified guest virtual machine. Usingvirsh destroy
can corrupt guest virtual machine file systems. Use thevirsh destroy
command only when the guest virtual machine is unresponsive. Thevirsh destroy
command with the--graceful
option attempts to flush the cache for the disk image file before powering off the virtual machine.
virsh delete
@ access.redhat.com
The
virsh undefine
domain 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.
关于linux - virsh destroy 和 virsh undefine 有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51098622/