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


你可能感兴趣的:(openstack,常见问题)