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

Richard W.M. Jones rjones at redhat.com
Tue Mar 14 08:54:59 UTC 2017


On Mon, Mar 13, 2017 at 05:13:33PM +0100, Pino Toscano wrote:
> 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 ?

Sorry, I didn't see this until too late.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list