Skip to content
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

Access to qcow images is denied` #3

Open
rmohr opened this issue Jun 2, 2016 · 1 comment
Open

Access to qcow images is denied` #3

rmohr opened this issue Jun 2, 2016 · 1 comment

Comments

@rmohr
Copy link
Contributor

rmohr commented Jun 2, 2016

When building a VM vocker can't access the downloaded images because it tries to access it with the qemu user but the images are stored in the home directory of a user with the according permissions:

RAN: '/bin/virt-builder --format=qcow2 -o /root/.cache/vocker/images/fedora-23.qcow2 fedora-23'

  STDOUT:
[   1.9] Downloading: http://libguestfs.org/download/builder/fedora-23.xz
[   2.5] Planning how to build this image
[   2.5] Uncompressing
[  15.9] Converting raw to qcow2
[  25.2] Opening the new disk


  STDERR:
virt-builder: error: libguestfs error: could not create appliance through 
libvirt.

Try running qemu directly without libvirt using this environment variable:
export LIBGUESTFS_BACKEND=direct

Original error from libvirt: Cannot access storage file 
'/root/.cache/vocker/images/fedora-23.qcow2' (as uid:107, gid:107): 
Permission denied [code=38 int1=13]
@rmohr
Copy link
Contributor Author

rmohr commented Jun 2, 2016

Seems to be selinux related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant