qemu guest agent connection
i created an image with hw_qemu_guest_agent=yes
.
+------------------------------+--------------------------------------+
| Property | Value |
+------------------------------+--------------------------------------+
| OS-EXT-IMG-SIZE:size | 527772672 |
| created | 2016-06-27T09:30:38Z |
| id | 37f1d731-b75f-47c8-a531-abcaeec3dc6b |
| metadata hw_qemu_guest_agent | yes |
| minDisk | 0 |
| minRam | 0 |
| name | CentOs6.8 |
| progress | 100 |
| status | ACTIVE |
| updated | 2016-06-27T10:51:07Z |
+------------------------------+--------------------------------------+
when I try to use this image to create new VM, I am getting an error of host not available and vm create fails. Looking at nova logs, I see below error message
[instance: 5408eda3-74e2-4fbe-bf27-e2fedc4ccbe5] Error from last host: node-21.xxxxx (node node-21.xxxxx): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1907, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2060, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 5408eda3-74e2-4fbe-bf27-e2fedc4ccbe5 was re-scheduled: internal error: process exited while connecting to monitor: 2016-06-27T11:02:43.473663Z qemu-system-x86_64: -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/org.qemu.guest_agent.0.instance-00000028.sock,server,nowait: Failed to bind socket: Permission denied\n2016-06-27T11:02:43.473708Z qemu-system-x86_64: -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/org.qemu.guest_agent.0.instance-00000028.sock,server,nowait: chardev: opening backend "socket" failed\n\n']
the image also has qemu-agent installed. I tried to find some information but till date no valid solution i could find.
Verify that Nova-compute and Qemu are both running on the compute node. SSH to the compute and see if
virsh list
works. Other than that it looks like an issue with the server running or permissions. I'm not sure if it has to do with your tag. If you try another image does it work?