I thought I would finally try a VM setup with cockpit and figured it would be easy. Cockpit installed easily, but getting virtual machines running has not so far been easy.
I'm finding that I can't get even a simple alpine machine to start and it seems to be related to file permissions for the storage pools. I want to put my machine files on a drive separate from my Ubuntu Server boot drive. I have successfully changed the default storage location for VMs using virsh commands in terminal.
I've found that a file IS created in my VMs folder that I defined in the storage pools section of the virtual machines tab of cockpit when the machine is created. But when I try to install, I get a permissions error.
So far I've tried a lot of variations on the owner and permissions on the external drive but nothing has worked. I've also tried changing the user and group in the qemu.conf file.
user:myuser
group:libvirt-qemu
Can anyone shed some light on exactly what user needs access to the storage pool and what are the "correct" permissions to set? I've seen a few different recommendations including 777 and root (which does not seem like a bright idea) but it's not clear to me what the ramifications are and/or what actually works with the latest versions of things (Ubuntu Server 24.04.1 etc).
I'm finding that I can't get even a simple alpine machine to start and it seems to be related to file permissions for the storage pools. I want to put my machine files on a drive separate from my Ubuntu Server boot drive. I have successfully changed the default storage location for VMs using virsh commands in terminal.
I've found that a file IS created in my VMs folder that I defined in the storage pools section of the virtual machines tab of cockpit when the machine is created. But when I try to install, I get a permissions error.
So far I've tried a lot of variations on the owner and permissions on the external drive but nothing has worked. I've also tried changing the user and group in the qemu.conf file.
user:myuser
group:libvirt-qemu
Can anyone shed some light on exactly what user needs access to the storage pool and what are the "correct" permissions to set? I've seen a few different recommendations including 777 and root (which does not seem like a bright idea) but it's not clear to me what the ramifications are and/or what actually works with the latest versions of things (Ubuntu Server 24.04.1 etc).