void-linux / void-linux/void-packages

libvirt-7.5.0_1: [Regression] Unable to create or start VMs

Open
#31,904 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

Description

System
  • xuname:
    Void 5.12.14_1 x86_64 GenuineIntel uptodate rFFFFFFFFFF
  • package:
    libvirt-7.5.0_1
    Was working fine in libvirt-7.4.0_1
Expected behavior

virsh start <domain> should start the corresponding virtual machine.

Actual behavior
$ doas virsh start voidlinux
error: Failed to start domain 'voidlinux'
error: internal error: cannot load AppArmor profile 'libvirt-aa58ea57-f6d7-48b1-b727-de97f4c508af'
Steps to reproduce the behavior
  1. Enable AppArmor
  2. Create a VM using libvirt<=7.4.0_1
  3. Update libvirt to 7.5.0_1, reboot to reload apparmor profiles
  4. Try to launch the VM again

Edit: The above is with AppArmor profile usr.lib.libvirt.virt-aa-helper unenforced (part of my debugging process)

  1. Enable Apparmor.
  2. Try to start or create any VM.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with libvirt-7.5.0_1 using virsh start <domain> and inspect the AppArmor profile usr.lib.libvirt.virt-aa-helper. Compare behavior with libvirt-7.4.0_1 and verify that creating or starting a VM succeeds with AppArmor enabled; the reported error should no longer occur.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.