首页 > 代码库 > error: Refusing toundefine while domain managed save image exists

error: Refusing toundefine while domain managed save image exists

虚拟机无法删除的处理方法

1)、查看虚拟机状态

virsh # list --all

 Id   Name                          State

----------------------------------------------------

 9    instance-000000c7             running

 10   instance-0000002e             running

 11   instance-000000a8             running

 12   instance-000000a7             running

 -    instance-00000066             shut off

2)、删除虚拟机instance-00000066

virsh # undefineinstance-00000066

error: Refusing toundefine while domain managed save image exists

 

3)、删除managed save

virsh #managedsave-remove instance-00000066

4)、再次删除虚拟机instance-00000066

virsh # undefineinstance-00000066

Domaininstance-00000066 has been undefined

5)、再次查看此实例已经不存在了

virsh # list --all

 Id   Name                          State

----------------------------------------------------

 9    instance-000000c7             running

 10   instance-0000002e             running

 11   instance-000000a8             running

 12   instance-000000a7             running


本文出自 “zhanguo1110” 博客,请务必保留此出处http://zhanguo1110.blog.51cto.com/5750817/1537309