[virt-tools-list] Storage image files and permissions

Vincenzo Romano vincenzo.romano at notorand.it
Mon Nov 26 18:13:39 UTC 2018


Il giorno lun 26 nov 2018 alle ore 15:20 Richard W.M. Jones
<rjones at redhat.com> ha scritto:
>
> On Mon, Nov 26, 2018 at 01:11:48PM +0100, Vincenzo Romano wrote:
> > Hi (again).
> >
> > I'm trying to configure the remote QEMU host so everything is in the
> > home directory of the user 'vmanager' I have created.
> > In particular, the ISO files are being stored into
> > '/home/vmanager/isos' while I'd like to put the disk images under
> > '/home/vmanager/storage'.
> > All directories in the path have 755 permissions (that's 'drwxr-xr-x').
> > The ISO files are world readable. The image file are (at the momend)
> > world read-writable.
> > Of course this is not acceptable.
> > Which uid/gid need to access those image files?
>
> What's missing is what Linux distro (or other OS) you are running on
> your host.  You may have to do other things like adding SELinux labels
> for example.

Remote host is Ubuntu Server 18.04.

> > Moreover, I created a QCOW3 disk image. I asked for a maximum capacity
> > of 6GB and initial allocation of 0GB (zero).
> > I got a 6GB image file. Is this a bug or am I missing something?

Any hint on this?
With QCOW2 I used to get a 200KB file as initial image, no matter it's
maximum size.

-- 
Vincenzo Romano - NotOrAnd.IT
Information Technologies
--
NON QVIETIS MARIBVS NAVTA PERITVS




More information about the virt-tools-list mailing list