Skip to content

Unhelpful error when libvirt interface is disconnected #1554

@sergiodj

Description

@sergiodj

Describe the bug

I have multipass configured to integrate with libvirt, and I'm trying to simply launch an instance, but it's failing with:

launch failed: Cannot connect to libvirtd: Failed to open file '/etc/libvirt/libvirt.conf': Permission denied
Please ensure libvirt is installed and running.

To Reproduce
How, and what happened?

  1. multipass launch -n test-focal focal

Expected behavior
The instance is launched successfully.

Logs
From dmesg:

[71978.482421] audit: type=1400 audit(1590184082.981:544): apparmor="DENIED" operation="open" profile="snap.multipass.multipassd" name="/etc/libvirt/libvirt.conf" pid=9743 comm="multipassd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

Additional info

  • OS: Ubuntu 20.04
  • multipass version: 1.3.0-dev.17+gf89e1db
  • multipass info --all: nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions