Я новичок на серверах и VMS хотел знать разницу между
virsh destroy
и
virsh undefine
Давайте посмотрим на man virsh
:
blockquote>destroy domain Immediately terminate the domain domain. This doesn't give the domain OS any chance to react, and it's the equivalent of ripping the power cord out on a physical machine. In most cases you will want to use the shutdown command instead. However, this does not delete any storage volumes used by the guest, and if the domain is persistent, it can be restarted later. undefine domain Undefine a domain. If the domain is running, this converts it to a transient domain, without stopping it. If the domain is inactive, the domain configuration is removed.
Это указывает на то, что
destroy
- это способ довольно незаметно завершить работу домена, в то время какundefine
просто преобразует его во временный или удаляет его конфигурацию.