When I try to launch an instance with OpenStack, I get the following error in nova-compute.log:
(nova.rpc): TRACE: libvirtError: operation failed: domain 'instance-0000000a' already exists with uuid 5f81a7d2-1b0f-8c72-4e1e-377c275e9289
However, virsh doesn't show any domains:
$ sudo virsh list
Id Name State
----------------------------------
Why isn't that domain showing up in virsh if it's there?
Your domain may be shut down. Run
virsh list --all
to see all domains.Not yet familiar with OpenStack, but in regular old libvirt, that error usually implies not that there's a RUNNING instance, but that there's a DEFINED instance. "virsh list" only shows currently active VM's, not every defined VM. Try:
If that pops open vim and has a bunch of XML in there, there's already a defined 'instance-0000000a' VM. If you are 100% sure you don't want it, quit out of the editor and use:
And then have OpenStack try whatever you were doing again, and it should work.
By the way, if you DO want what's there, you can start it with:
But again, not familiar with OpenStack, it may not like you doing that, no idea.
Scenario 1:
Are you certain that
virsh
on the command line is talking to the same hypervisor as your OpenStack controller? This would be the simplest explanation as two whyvirsh
is not showing the running instance.Scenario 2:
If you use
ps
, do you see anyqemu-kvm
instances running? Try:If there are
qemu-kvm
instances running, they'll have a-name
parameter that should match the name used invirsh
. You can justkill -9
these processes if they're supposed to be dead anyway.My issue was name resolution. The service libvirtd was not starting properly because the hostname wasn't resolving to the system's IP.
Added an entry to /etc/hosts for local system name and IP, then I could connect to VM guest.
Check if you have installed qemu-system-x86-xen if not - install apt install qemu-system-x86-xen that helped me