QemuGuestAgent does not work

Bug #2060141 reported by Justin Lamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Snap
Fix Released
Wishlist
Guillaume Boutry

Bug Description

Hey,

right now it is impossible to create VMs with the qemu-guest-agent enabled. Starting a VM with it will need access to `/var/lib/libvirt/qemu` in order to create the socket in that directory. As this directory does not exist within the snap, the VM fails to start. Unfortunately nova does not have a way to change this path.

```python
    def _add_qga_device(self, guest, instance):
        qga = vconfig.LibvirtConfigGuestChannel()
        qga.type = "unix"
        qga.target_name = "org.qemu.guest_agent.0"
        qga.source_path = ("/var/lib/libvirt/qemu/%s.%s.sock" %
                          ("org.qemu.guest_agent.0", instance.name))
        guest.add_device(qga)
```

src: nova/virt/libvirt/driver.py

Revision history for this message
James Page (james-page) wrote :

This will require either the use of an layout (not sure we can do those into SNAP_DATA) or a patch to allow this directory to be configured via nova.

Changed in snap-openstack:
status: New → Triaged
importance: Undecided → Medium
importance: Medium → Wishlist
Changed in snap-openstack:
assignee: nobody → Guillaume Boutry (gboutry)
status: Triaged → Fix Committed
James Page (james-page)
Changed in snap-openstack:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.