qemu guest agent connection

asked 2016-06-27 06:21:07 -0500

tirpitz gravatar image

updated 2016-06-27 06:28:30 -0500

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.

edit retag flag offensive close merge delete


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?

mpetason gravatar imagempetason ( 2016-06-29 16:24:32 -0500 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2016-07-01 22:19:51 -0500

tirpitz gravatar image

virsh list command is working. I changed the permission for /var/lib/libvirt/qemu folder, but still getting the same issue of permission denied when creating a vm with image set to hw_qemu_guest_agent=yes

edit flag offensive delete link more

answered 2016-11-10 00:06:22 -0500

Nitesh708 gravatar image


Any workaround for this ?

I am facing same issue after enabling hw_qemu_guest_agent=yes Which folder/file permission needs to be changed ?

edit flag offensive delete link more

answered 2016-11-11 02:14:22 -0500

liuhaibinniu gravatar image

in your instance run qemu-ga -v -p /dev/virtio-ports/org.qemu.guest_agent.0. print infomation

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-06-27 06:21:07 -0500

Seen: 1,116 times

Last updated: Nov 11 '16