Annoying Libvirt Bug In Ubuntu
If you see the following error in your Devstack logs for n-cpu and you are running Ubuntu 12.04 LTS:
2014-05-05 16:06:17.008 TRACE nova.openstack.common.threadgroup if ret == -1: raise libvirtError ('virConnectGetVersion() failed', conn=self)
2014-05-05 16:06:17.008 TRACE nova.openstack.common.threadgroup libvirtError: internal error: Cannot find suitable emulator for x86_64
Libvirt has pretty cruddy error reporting, the error message is misleading, since a -1 error value could be due to many different circumstances.
When you run the following command - you’ll see the following error.
stack@oscomp-cc38-b01:~$ qemu -device
qemu: symbol lookup error: qemu: undefined symbol: rbd_aio_discard
You need to do the following:
$ sudo apt-get install librbd1
Once you install librbd1, Nova will start up correctly.