-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission problems when creating VM on Slackware #46
Comments
@audriusk I figured this one out: it is due to
Adding the group execute bit on the machine-specific directory (in my case,
Will post a PR in a bit. |
Ensure that the directories leading to the KVM image have enough permission for libvirt/QEMU to traverse, especially in the case where libvirt/QEMU group is set to to `kvm`/`users`. Fixes dhiltgen#46.
Thanks for the fix @zakame and sorry for long delay. I decided to go with (slightly modified version of) it and submitted a build script to SlackBuilds.org, even though I'm not feeling comfortable changing the default behavior on directory permissions. Still think it's better than having non-functional docker-machine-kvm on Slackware. |
minikube's kvm2 driver also exhibits this issue. |
I intend to publish Slackware build script for docker-machine-kvm so that other Slackware users could benefit from it. I have the script written, but I'm experiencing permission problems when trying to use docker-machine-kvm.
docker-machine version is 0.11.0, libvirt is 3.2.0, qemu is 2.8.1. libvirt is built using
--with-qemu-group=users
, in/etc/libvirt/qemu.conf
group is set tousers
as well, the line where user is set is commented. qemu is built to set/dev/kvm
group tousers
. Let me know if you need additional information.When trying to create VM the following happens:
The permissions of VM files:
I've found that the only way to make it work is to set user to myself (
audrius
) and group tousers
in/etc/libvirt/qemu.conf
, but setting it like this causes permission problems with existing regular VMs in/var/lib/libvirt/images/
and doesn't feel right in general.The text was updated successfully, but these errors were encountered: