[Pkg-libvirt-maintainers] Bug#761521: Bug#761521: libvirt-daemon: fails to restart domain with error 'CreateMachine: File exists'

Guido Günther agx at sigxcpu.org
Tue Sep 16 07:16:38 UTC 2014


On Sun, Sep 14, 2014 at 05:56:35PM +0200, Paul Millar wrote:
> Package: libvirt-daemon
> Version: 1.2.8-1
> Severity: normal
> 
> Dear Maintainer,
> 
> After booting my laptop (vedrfolnir) I am able to start a domain (xanadu) using
> the GUI client (virt-manager).  Logging in to the domain as root and using the
> 'shutdown -h now' command, the domain halts (apparently normally).  That the
> domain is halted is confirmed by ssh no longer working, no response using the
> ping command, and virt-manager showing the domain as stopped.
> 
> Subsequent attempts to start the domain fail.  The virt-manager GUI reports the
> following stack-trace:
> 
> 
> Error starting domain: error from service: CreateMachine: File exists
> 
> Traceback (most recent call last):
>   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper
>     callback(asyncjob, *args, **kwargs)
>   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 117, in tmpcb
>     callback(*args, **kwargs)
>   File "/usr/share/virt-manager/virtManager/domain.py", line 1160, in startup
>     self._backend.create()
>   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 917, in create
>     if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
> libvirtError: error from service: CreateMachine: File exists
> 
> 
> Attempts to start the machine using virsh fail in a similar manner.
> 
> 
> virsh # connect qemu:///system
> 
> virsh # start xanadu
> error: Failed to start domain xanadu
> error: error from service: CreateMachine: File exists

The CreateMachine part is from systemd related code. I can't reproduce
this here (running systemd as well) and don't see anything special in
your logs (thanks for the detailed report btw). 

However VMs create a machine.slice here:

./cpuset/machine.slice/machine-qemu\x2d<machinename>.scope/

Could you check if this gets properly removed when you shut down the domain?
Cheers,
 -- Guido



More information about the Pkg-libvirt-maintainers mailing list