Score:0

Ubuntu KVM - Permission denied on volume

bb flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.