[CentOS] KVM guest not running but cannot stop either

Tue Mar 17 19:45:43 UTC 2015
James B. Byrne <byrnejb at harte-lyne.ca>

These are the messages that I get when trying to attach a virtio disk
to or perform a shutdown of the problem vm guest.


Add hardware

This device could not be attached to the running machine. Would you
like to make the device available after the next guest shutdown?

Requested operation is not valid: cannot do live update a device on
inactive domain

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/addhardware.py", line
1095, in add_device
    self.vm.attach_device(self._dev)
  File "/usr/share/virt-manager/virtManager/domain.py", line 756, in
attach_device
    self._backend.attachDevice(devxml)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 403, in
attachDevice
    if ret == -1: raise libvirtError ('virDomainAttachDevice()
failed', dom=self)
libvirtError: Requested operation is not valid: cannot do live update
a device on inactive domain


Shutdown domain:

Error shutting down domain: Requested operation is not valid: domain
is not running

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 44, in
cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in
tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1106, in
shutdown
    self._backend.shutdown()
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1566, in
shutdown
    if ret == -1: raise libvirtError ('virDomainShutdown() failed',
dom=self)
libvirtError: Requested operation is not valid: domain is not running



They seem to be mutually exclusive and yet occur together nonetheless.

-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3