Page 1 of 1

unable to create .vdi-file on LVM-partition

Posted: 14. Jun 2009, 20:40
by jonaskellens
In an LVM-setup I have created several partitions, one partition for every Virtual machine.

I have for example a virtual machine 'endian' who has his harddisk (endian.vdi) on this /endian-partition.

VirtualBox is running as normal user. This normal user is member of the group vboxusers.

Now, when I want to create an endian.vdi in the /endian-directory I get the error that the .vdi-file cannot be created.

These are the rights :

Code: Select all

drwxrwxr-x   3 root vboxusers  4096 Jun 14 20:24 endian
The group vboxusers has all the rights it needs. Why can't my normal user then create a .vdi-file ???
My user has 'vboxusers' set as primary group.

Re: unable to create .vdi-file on LVM-partition

Posted: 15. Jun 2009, 00:33
by TerryE
I use LVM routinely for my VMs but I must admit that I've found it a lot easier to avoid using the mount-point directories directly. I usually use sudo to create an images directory under the mount-point that is owned by the relevant user.