<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El lun, 11 ene 2021 a las 12:30, Richard W.M. Jones (<<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Jan 11, 2021 at 12:04:22PM -0300, Sergio Belkin wrote:<br>
> <br>
> <br>
> El lun, 11 ene 2021 a las 6:41, Richard W.M. Jones (<<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>>)<br>
> escribió:<br>
> <br>
> On Sat, Jan 09, 2021 at 05:23:13PM -0300, Sergio Belkin wrote:<br>
> > So do you think that is a SELinux issue (I haven't found anything<br>
> > related to this with ausearch or audit logs)? So, can<br>
> > virt-filesystems crash the guest? (I had to reboot and repair the<br>
> > xfs)<br>
> <br>
> It's not that virt-filesystems is affecting the guest, it's that<br>
> libvirtd relabels the disks and as a result original qemu loses access<br>
> to its disks.<br>
> <br>
> Try with LIBGUESTFS_BACKEND=direct which doesn't use libvirt or<br>
> SELinux labelling.<br>
> <br>
> Rich.<br>
> <br>
> --<br>
> Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/" rel="noreferrer" target="_blank">http://people.redhat.com/</a><br>
> ~rjones<br>
> Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
> libguestfs lets you edit virtual machines. Supports shell scripting,<br>
> bindings from many languages. <a href="http://libguestfs.org" rel="noreferrer" target="_blank">http://libguestfs.org</a><br>
> <br>
> <br>
> <br>
> Hi Richard, thanks for your kind explanation and help. It worked like a charm.<br>
> <br>
> In case it becomes useful to someone, I get:<br>
> <br>
> Name Type VFS Label MBR Size Parent UUID<br>
> /dev/sda1 filesystem xfs - - 500M - <br>
> 8746b377-7e21-4cb5-b269-c034720d65c1<br>
> /dev/centos_lx0001/root filesystem xfs - - 48G - <br>
> 3a3d6041-5f1c-479f-92cf-42a569d57bab<br>
> /dev/centos_lx0001/swap filesystem swap - - 2,0G - <br>
> 76addd8c-7aa1-4779-8a86-70ab6baca2b2<br>
> /dev/centos_lx0001/root lv - - - 48G /dev/centos_lx0001<br>
> 2d4fOO-fXZm-HDHi-CiTY-umH3-Icu9-peXjGZ<br>
> /dev/centos_lx0001/swap lv - - - 2,0G /dev/centos_lx0001<br>
> mbKcjk-YXVg-MjhS-L0IA-cNgg-KF0o-4uxvc5<br>
> /dev/centos_lx0001 vg - - - 50G /dev/sda2 <br>
> 17HB8hKfxKZHis9Tcrq2XoFLldN0fAft<br>
> /dev/sda2 pv - - - 50G - <br>
> NZT8FHFBUed0PZyKsrXLWAnemghOO0J7<br>
> /dev/sda1 partition - - 83 500M /dev/sda -<br>
> /dev/sda2 partition - - 8e 50G /dev/sda -<br>
> /dev/sda device - - - 50G - -<br>
> <br>
> Jut only a question about this output, just out of curiosity why does it print<br>
> /dev/sda* instead /dev/vda* ?<br>
<br>
We don't know what drivers are installed in the guest, or (in<br>
virt-filesystems) even what the guest is. Maybe it's Linux with<br>
virtio. Maybe it's Windows. So we use a canonical naming scheme for<br>
devices and partitions:<br>
<br>
<a href="https://libguestfs.org/guestfs.3.html#block-device-naming" rel="noreferrer" target="_blank">https://libguestfs.org/guestfs.3.html#block-device-naming</a><br>
<br>
Rich.<br>
<br>
-- <br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
virt-top is 'top' for virtual machines. Tiny program with many<br>
powerful monitoring features, net stats, disk stats, logging, etc.<br>
<a href="http://people.redhat.com/~rjones/virt-top" rel="noreferrer" target="_blank">http://people.redhat.com/~rjones/virt-top</a><br>
<br>
</blockquote></div><div><br></div><div>Thanks again!<br></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">--<br>Sergio Belkin<br>LPIC-2 Certified - <a href="http://www.lpi.org" target="_blank">http://www.lpi.org</a></div></div></div></div></div>