[Libguestfs] [PATCH 4/7] launch: libvirt: Allow the SELinux label to be set on qcow2 overlay files.

Richard W.M. Jones rjones at redhat.com
Thu Feb 28 14:31:23 UTC 2013


On Thu, Feb 28, 2013 at 02:24:30PM +0000, Richard W.M. Jones wrote:
> On Thu, Feb 28, 2013 at 02:14:42PM +0000, Matthew Booth wrote:
> > Relabelling the appliance could get complicated wrt multiple
> > appliances running simultaneously.
> 
> Right -- I suspect this is buggy actually, but it's quite hard to test
> it since I need to run up lots of guests and run virt-df in parallel
> on them.  Also we put <shareable/> on the appliance disk, and I'm not
> sure what libvirt does in that case.

I spun up a few libvirt guests and surprisingly this all seems to
work.  I have no idea why :-)  I agree with you that it shouldn't work
because the labels should get stomped on by the different connections,
but it seems libvirt is being cleverer somehow.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list