[Swan-dev] qemu-img: Could not open '/home/build/pool/swanfedora22base.qcow2
Andrew Cagney
andrew.cagney at gmail.com
Fri Jul 20 12:30:04 UTC 2018
I'm guessing the most recent fedora?
On Fri, 20 Jul 2018 at 00:12, D. Hugh Redelmeier <hugh at mimosa.com> wrote:
>
> I'm setting up a new test system.
>
> make kvm-install failed with this message:
>
>
> qemu-img convert \
> -p -O qcow2 \
> /home/build/pool/swanfedora22base.qcow2 \
> /home/build/pool/a.clone.qcow2.tmp
> qemu-img: Could not open '/home/build/pool/swanfedora22base.qcow2': Could not open '/home/build/pool/swanfedora22base.qcow2': Permission denied
>
> observations:
> -rw-r-----. 1 root qemu 8591507456 Jul 19 23:22 swanfedora22base.qcow2
>
> -rwxr-xr-x. 1 root root 1773200 Jul 3 13:42 /usr/bin/qemu-img
>
> This would work if qemu-img were setgid qemu.
> The makefile seems to expect that to be the case.
Why? No. Only running a VM needs SUDO (and that annoys me).
> On the other hand, my old test system has the same file ownerships and
> permissions.
I'd suspect something around the images creation - virt-install or
your own umask?
What's the ownership on the old system?
> Doing this
> sudo chmod a+r ../pool/swanfedora22base.qcow2
> make kvm-install
> gets past this point.
> _______________________________________________
> Swan-dev mailing list
> Swan-dev at lists.libreswan.org
> https://lists.libreswan.org/mailman/listinfo/swan-dev
More information about the Swan-dev
mailing list