Skip to content

cannot launch instances due to AppArmor profile of qemu-img #1223

@bboozzoo

Description

@bboozzoo

Trying to launch Ubuntu Core with Multipass on Arch. Exact version:

$ snap list multipass    
Name       Version                  Rev   Tracking  Publisher   Notes
multipass  0.10.0-dev.125+gb83c589  1443  edge      canonical✓  classic

Launch fails (note there's no actual output from qemu-img):

$ multipass launch core       
launch failed: Cannot read image format: qemu-img failed (program: qemu-img; error: Process crashed) with output:
                                                                                        

There's a denial from AppArmor followed by segfault in dmesg:

[  +0.003430] audit: type=1400 audit(1576165492.211:2585): apparmor="DENIED" 
operation="file_mmap" profile="multipass.qemu-img"
name="/var/lib/snapd/snap/multipass/1425/usr/bin/qemu-img" pid=650244
 comm="qemu-img" requested_mask="rm" denied_mask="rm" fsuid=0 ouid=0
[  +0.000006] audit: type=1701 audit(1576165492.211:2586): auid=4294967295
 uid=0 gid=0 ses=4294967295 subj==multipass.qemu-img (enforce) 
pid=650244 comm="qemu-img" 
exe="/var/lib/snapd/snap/multipass/1425/usr/bin/qemu-img" sig=11 res=1

Can I configure multipass to not use AppArmor profiles for the tools/VMs it runs?

Metadata

Metadata

Assignees

Labels

bughighHigh priority. Combine with "medium" to signal intermediate medium-high priority.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions