Unprivileged user created VM on a node with PCS 6.0 Update 7 installed:
~$ prlctl create testvm --ostemplate some-vm-template
And it is not possible to resize the hard disk for this VM:
~$ prl_disk_tool resize --size 100G --hdd '/var/parallels/testvm.pvm/testvm.hdd' --resize_partition Can't open lock file /var/lock/ploop/ploop.lck: Permission denied Unable to check ploop mount status.
In order to unify operations with disk images of virtual machines and containers, in Parallels Clous Server 6.0 update 7, all disk operations are done using Ploop device. The default permissions do not allow unprivileged user to manage disk images in this way.
This issue has been reported in the internal request PSBM-28144.
The permanent fix will be included in one of the future product updates.
As an immediate workaround, it is possible set appropriate permissions to the lock file when logging in using an administrative account:
~# chmod a+rw /var/lock/ploop/ploop.lck