gpt4 book ai didi

linux - virsh destroy 和 virsh undefine 有什么区别

转载 作者:太空宇宙 更新时间:2023-11-04 12:04:44 25 4
gpt4 key购买 nike

我是服务器新手,想知道 vms 之间的区别

virsh destroy

virsh undefine

最佳答案

The virsh destroy command initiates an immediate ungraceful shutdown and stops the specified guest virtual machine. Using virsh destroy can corrupt guest virtual machine file systems. Use the virsh destroy command only when the guest virtual machine is unresponsive. The virsh
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 a transient domain. When the guest virtual machine becomes inactive, the configuration is removed completely.

virsh undefine @ access.redhat.com

关于linux - virsh destroy 和 virsh undefine 有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51098622/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com