James B. Byrne
2015-Mar-17 19:45 UTC
[CentOS] KVM guest not running but cannot stop either
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
Dennis Jacobfeuerborn
2015-Mar-17 22:13 UTC
[CentOS] KVM guest not running but cannot stop either
On 17.03.2015 20:45, James B. Byrne wrote:> 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. >Have you tried restarting the libvirtd service? Regards, Dennis
Apparently Analagous Threads
- Setting up serial ports on kvm guests
- USB-hotplugging fails with "failed to load cgroup BPF prog: Operation not permitted" on cgroups v2
- Re: USB-hotplugging fails with "failed to load cgroup BPF prog: Operation not permitted" on cgroups v2
- Emulated TPM doesn't work on Debian Buster
- gentoo linux, problem starting vm´s when cache=none