[Libguestfs] [PATCH 2/4] v2v: chmod original OVA file if running as root (RHBZ#1430680).

Pino Toscano ptoscano at redhat.com
Mon Mar 13 16:13:33 UTC 2017


In data lunedì 13 marzo 2017 14:47:43 CET, Richard W.M. Jones ha scritto:
> In the case where we are going to read the disk directly from the OVA
> file (partial = true), we will create a qcow2 image backed by the OVA.
> If running as root, libvirt will run qemu as a non-root user (because
> of no qemu:///session support for root, which is a libvirt bug).  qemu
> will not be able to read the backing file and thus will fail.
> 
> To work around this problem, chmod the backing (OVA) file.
> 
> This isn't a complete fix since (eg) the OVA might be located in a
> directory which isn't accessible by root, but there's only so much we
> can do here until libvirt is fixed.
> 
> Thanks: Kun Wei.
> ---

Can you please mention in the commit message that this updates commit
d9b2a16c71d0c87195e28c1325fd83b344741339 ?

Thanks,
-- 
Pino Toscano




More information about the Libguestfs mailing list