I am converting my homelab from ESXi to Ubuntu + KVM + Cockpit for my virtual machines.
I am having a problem with volumes from a storage pool.
I have a VM with it's default boot disk attached as a "File" (that's how cockpit created it) and I have added another disk to it. Which has created a new volume on my storage pool.
Problem :
When I try to turn on the VM with the second disk attached as "Volume from pool", I have a permission denied error. I have to attach the volume as "File" like I would do for a ISO file. If I start the VM without this volume, I can then "hot" attach it as a "Volume" without problem.
I'm probably missing something obvious but I cannot find what's the problem. All of this is done via the Cockpit web UI.
Moreover, attaching it as a "File" lead to my LVM partitions on that volume to be unrecognized.
Thank for your help.
EDIT After a lot a research on internet, I found that disabling AppArmor service solve the problem. But I don't really know what's going on behind this, my linux knowledge are quite limited.