[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] Important virt-resize fix


In this upstream commit:


we accidentally dropped the ~readonly:true flag from the source disk
in virt-resize.

As a result if you run:

  virt-resize input output

then in some circumstances virt-resize may slightly change the input

One particular case is if the input disk contains any filesystems
which were not unmounted, then virt-resize would try to correct these
filesystems (replaying journals and so on).  virt-resize should not
touch the input disk so this is a data corruption problem.

This was noticed because virt-builder in some situations was
displaying an error that previously cached files had their SHA512
checksums changed when that should never occur.  This happened because
virt-resize was being run with the source file pointing at the cached
file, and virt-resize was changing this file.

This affects all versions of libguestfs since 1.35.21, so that
includes the current stable release (1.36.4), also RHEL 7.4.

The fix is:


You can test if your version of virt-resize is affected by following
the reproducer instructions here:


We're going to release an update to 1.36 this week, and for RHEL 7.4
before 7.4 is shipped.


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

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]