В чем разница между virsh destroy и virsh undefine

Я новичок на серверах и VMS хотел знать разницу между

virsh destroy

и

virsh undefine
1
задан 29 June 2018 в 11:47

1 ответ

Давайте посмотрим на man virsh :

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 просто преобразует его во временный или удаляет его конфигурацию.

1
ответ дан 29 June 2018 в 11:47

Другие вопросы по тегам:

Похожие вопросы: