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

标签 linux shell terminal virtual-machine

我是服务器新手,想知道 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/

相关文章:

linux - 如何在 Linux 服务器上渲染图形

linux - 删除文本文件第二列中的字符串和空格

linux - 使用 shell 脚本合并最近 7 天的日志文件

python - 终端集中程序的输出到字符串?

linux - 应用处理器内存映射

php - 调试 PHP 的段错误

java - 无法使用 Java ProcessBuilder 启动带有参数的 shell 脚本

linux - 如何根据文件名模式删除文件?

c - 如何解释终端中可执行文件名称前的 './' 前缀?

eclipse - - 从终端清洁启动 ubuntu 中的 Eclipse