.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Podwrapper::Man 1.52.2 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "guestfs-release-notes-1.32 1" .TH guestfs-release-notes-1.32 1 2024-07-08 libguestfs-1.52.2 "Virtualization Support" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME guestfs\-release\-notes \- libguestfs Release Notes .SH "RELEASE NOTES FOR LIBGUESTFS 1.32" .IX Header "RELEASE NOTES FOR LIBGUESTFS 1.32" These release notes only cover the differences from the previous stable/dev branch split (1.30.0). For detailed changelogs, please see the git repository, or the ChangeLog file distributed in the tarball. .SS "New features" .IX Subsection "New features" \fINew tools\fR .IX Subsection "New tools" .PP The new \fBvirt\-v2v\-copy\-to\-local\fR\|(1) tool is an ancillary tool for \&\fBvirt\-v2v\fR\|(1) allowing you to convert source guests that virt\-v2v is unable to access directly. .PP \fINew features in existing tools\fR .IX Subsection "New features in existing tools" .PP Virt-customize knows how to write a random seed to CirrOS (Pino Toscano). .PP On Fedora, virt-customize runs \fBdnf\fR\|(8) with the \fI\-\-best\fR flag, ensuring it always updates to the latest available packages. .PP Virt-builder now provides 32 bit Fedora templates. .PP Virt-builder and virt-customize \fI\-\-install\fR option now works on 32 bit Fedora guests. Previously it would try to install 64 bit packages (Jan Sedlák). .PP Virt-builder can now fetch cloud images using Simple Streams v1.0 metadata (Pino Toscano). .PP Virt-builder can now fetch openSUSE cloud images out of the box (Cédric Bosdonnat). .PP Virt-customize will now use stronger (SHA\-512) encrypted passwords by default on openSUSE ≥ 11 (Pino Toscano). .PP Virt-builder will now correctly handle output filenames containing colon characters (\f(CW\*(C`:\*(C'\fR), and will create temporary files in the libguestfs cache directory instead of defaulting to \fI/tmp\fR (Pino Toscano). .PP Virt-resize has a new \fI\-\-unknown\-filesystems\fR option to control what to do when asked to resize a filesystem that libguestfs doesn't know how to resize. .PP Virt\-v2v now has an \fI\-\-in\-place\fR flag/mode, allowing in-place conversion of guests (Roman Kagan). .PP Virt\-v2v has a \fI\-\-compressed\fR option for creating compressed qcow2 output files. .PP Virt\-v2v can now correctly get the VMware datacenter path (dcPath) from libvirt, instead of having to calculate it using an algorithm that occasionally got the wrong answer (Matthias Bolte, Tingting Zheng). .PP Virt\-v2v now processes RAM sizes correctly for 64 bit guests when running on a 32 bit host. .PP \fILanguage bindings\fR .IX Subsection "Language bindings" .PP In Perl and Python programs, the \f(CW\*(C`get_program_name\*(C'\fR API now returns the true program name, instead of the incorrect string \f(CW\*(C`perl\*(C'\fR or \&\f(CW\*(C`python\*(C'\fR. .PP The Python bindings can now be compiled against a different version of libguestfs, allowing the pip module to be built against any version of libguestfs (instead of requiring the pip module and libguestfs to have exactly the same version). .PP The quality of the Ruby rdoc (documentation) has been improved (Pino Toscano). .PP Perl scripts no longer hard-code the location of perl in the shebang line, but use \fBenv\fR\|(1) to locate it instead (Pino Toscano). .PP In OCaml programs, the guestfs handle was incorrectly made into a global root, meaning it could never be garbage collected. If you didn't call the \f(CW\*(C`close\*(C'\fR function explicitly, the handle would not be closed until the whole program exited. This has now been fixed so handles will be garbage collected in the usual way. This changes the API of the OCaml function \f(CW\*(C`Guestfs.event_callback\*(C'\fR. Note that non-C language bindings are not covered by the libguestfs API/ABI guarantee, although we try hard not to change them, but in this case it was essential in order to fix this very serious bug. .PP \fIInspection\fR .IX Subsection "Inspection" .PP Alpine Linux and the APK package manager, ALT Linux, Frugalware, and PLD Linux are now recognized (Pino Toscano). .PP If it exists, \fI/etc/os\-release\fR will be preferred for inspecting Linux guests (Pino Toscano). .PP The correct kernel version is returned for Windows guests ≥ 10. .PP \fIDocumentation\fR .IX Subsection "Documentation" .PP The large \fBguestfs\fR\|(3) man page has been split into several separate man pages: \fBguestfs\-hacking\fR\|(1) \fBguestfs\-internals\fR\|(1) \&\fBguestfs\-security\fR\|(1). In the source tree, a new \fIdocs\fR directory contains this documentation. .PP \fIArchitectures and platforms\fR .IX Subsection "Architectures and platforms" .PP Libguestfs now supports ARM 64 bit platforms with vGICv3. .SS Security .IX Subsection "Security" See also \fBguestfs\-security\fR\|(1). .ie n .IP """CVE\-2015\-5745""" 4 .el .IP \f(CWCVE\-2015\-5745\fR 4 .IX Item "CVE-2015-5745" https://bugzilla.redhat.com/1251157 .Sp This is not a vulnerability in libguestfs, but because we always give a virtio-serial port to each guest (since that is how guest-host communication happens), an escalation from the appliance to the host qemu process is possible. This could affect you if: .RS 4 .IP \(bu 4 your libguestfs program runs untrusted programs out of the guest (using "guestfs_sh" etc), or .IP \(bu 4 another exploit was found in (for example) kernel filesystem code that allowed a malformed filesystem to take over the appliance. .RE .RS 4 .Sp If you use sVirt to confine qemu, that would thwart some attacks. .RE .IP "Virt-customize permissions on \fI.ssh\fR, \fI.ssh/authorized_keys\fR" 4 .IX Item "Virt-customize permissions on .ssh, .ssh/authorized_keys" https://bugzilla.redhat.com/1260778. .Sp Previously when asked to inject an SSH key into a guest, virt-customize (hence virt-builder too) would create the \fI.ssh\fR directory and \fI.ssh/authorized_keys\fR file with too broad permissions, allowing other users to read. They are now created as \f(CW0700\fR and \&\f(CW0600\fR respectively, which is the same as the \fBssh\-copy\-id\fR\|(1) utility. .SS API .IX Subsection "API" \fINew APIs\fR .IX Subsection "New APIs" .ie n .IP """guestfs_get_identifier""" 4 .el .IP \f(CWguestfs_get_identifier\fR 4 .IX Item "guestfs_get_identifier" .PD 0 .ie n .IP """guestfs_set_identifier""" 4 .el .IP \f(CWguestfs_set_identifier\fR 4 .IX Item "guestfs_set_identifier" .PD Get/set a per-handle identifier. The main effect of this is to change trace output from: .Sp .Vb 1 \& libguestfs: trace: foo .Ve .Sp to: .Sp .Vb 1 \& libguestfs: trace: ID: foo .Ve .Sp making it easier to follow traces in multi-threaded programs, or where a program uses multiple handles (especially virt\-v2v). .ie n .IP """guestfs_vfs_minimum_size""" 4 .el .IP \f(CWguestfs_vfs_minimum_size\fR 4 .IX Item "guestfs_vfs_minimum_size" Return the minimum size of a filesystem (when shrunk). This supports ext2/3/4, XFS and btrfs, and can support other filesystem types in future (Maxim Perevedentsev). .PP \fIOther API changes\fR .IX Subsection "Other API changes" .ie n .IP """guestfs_disk_create"": add ""preallocation"" = ""off""/""metadata""/""full""." 4 .el .IP "\f(CWguestfs_disk_create\fR: add \f(CWpreallocation\fR = \f(CWoff\fR/\f(CWmetadata\fR/\f(CWfull\fR." 4 .IX Item "guestfs_disk_create: add preallocation = off/metadata/full." For raw, this allows \f(CW\*(C`off\*(C'\fR as a synonym for \f(CW\*(C`sparse\*(C'\fR (making it consistent with qcow2). For qcow2, this allows \f(CW\*(C`sparse\*(C'\fR as a synonym for \f(CW\*(C`off\*(C'\fR. .Sp It also adds \f(CW\*(C`full\*(C'\fR, which corresponds to fully allocated, but uses \&\fBposix_fallocate\fR\|(3) for efficiency. .ie n .IP """guestfs_tar_in"": new ""xattrs"", ""selinux"", ""acl"" parameters." 4 .el .IP "\f(CWguestfs_tar_in\fR: new \f(CWxattrs\fR, \f(CWselinux\fR, \f(CWacl\fR parameters." 4 .IX Item "guestfs_tar_in: new xattrs, selinux, acl parameters." .PD 0 .ie n .IP """guestfs_tar_out"": new ""xattrs"", ""selinux"", ""acl"" parameters." 4 .el .IP "\f(CWguestfs_tar_out\fR: new \f(CWxattrs\fR, \f(CWselinux\fR, \f(CWacl\fR parameters." 4 .IX Item "guestfs_tar_out: new xattrs, selinux, acl parameters." .PD These extra parameters control whether extended attributes, SELinux contexts and/or POSIX ACLs are restored from / saved to tarballs. .ie n .IP """guestfs_add_drive""" 4 .el .IP \f(CWguestfs_add_drive\fR 4 .IX Item "guestfs_add_drive" The existing \f(CW\*(C`username\*(C'\fR and \f(CW\*(C`secret\*(C'\fR parameters can be used to supply authentication for iSCSI (Pino Toscano). .SS "Build changes" .IX Subsection "Build changes" The \f(CW\*(C`./configure \-\-enable\-valgrind\-daemon\*(C'\fR option has been removed. .PP You can no longer build libguestfs on RHEL 5\-era (c.2007) machines. See the \f(CW\*(C`oldlinux\*(C'\fR branch if you need (limited) RHEL 5 support. .PP Virt\-p2v can now be built on RHEL 6\-era (c.2010) Linux distros. .PP OCaml ≥ 3.11 (released in 2008) is now required to build from git. .PP Building the Perl bindings now requires \f(CW\*(C`Module::Build\*(C'\fR (instead of \&\f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR). .PP Builds should be faster (especially when incrementally rebuilding), because work was done to reduce build times. .PP Both OCaml and the OCaml findlib module are required if you need to run the generator at build time. Previously the build would have failed if findlib was not installed. .PP \&\f(CW\*(C`make check\*(C'\fR tests now run in parallel (within each test directory). .PP \&\f(CW\*(C`make install\*(C'\fR no longer installs OCaml \fIbindtests.*\fR files incorrectly. .PP \&\f(CW\*(C`make install\*(C'\fR can now be run twice. Previously it would fail on the second run. .PP \&\f(CW\*(C`make clean\*(C'\fR should now remove nearly every file that \f(CW\*(C`make\*(C'\fR creates. .PP A new \f(CW\*(C`make installcheck\*(C'\fR rule has been added, allowing the installed copy of libguestfs to be tested. .SS Internals .IX Subsection "Internals" Some effort was put into minimizing the size of the appliance, which reduces temporary disk space and time needed by libguestfs handles. .PP The appliance now passes the NIC name to dhcpd, fixing hangs when running the appliance on some distros (Cédric Bosdonnat). .PP OCaml \f(CW\*(C`Guestfs.Errno\*(C'\fR is now generated (Pino Toscano). .PP In OCaml tools, common code now handles \fI\-\-debug\-gc\fR, \fI\-\-verbose\fR and other common options (Roman Kagan, Pino Toscano). .PP The virt\-v2v test harness allows us to boot the test guests at fixed dates in the past, ensuring that Windows reactivation doesn't kick in. .PP There is a new internal API for reading/writing a subprocess via a pipe from library code. .PP Used \f(CW\*(C`deheader\*(C'\fR program to remove unused \f(CW\*(C`#include\*(C'\fR directives. .PP In OCaml tools, the \f(CW\*(C`Char\*(C'\fR and \f(CW\*(C`String\*(C'\fR modules now implicitly reference the \f(CW\*(C`Common_utils.Char\*(C'\fR and \f(CW\*(C`Common_utils.String\*(C'\fR modules (instead of the ones from stdlib). The \f(CW\*(C`Common_utils\*(C'\fR modules contain a number of extra char/string utility functions, and also hide some unsafe functions in stdlib. .PP Many more virt\-v2v tests will now be run even if you don't have rhsrvany and virtio-win installed (Roman Kagan). .PP The huge \fIconfigure.ac\fR file has been split into several smaller files called \fIm4/guestfs_*.m4\fR. .PP The old \fItests/data\fR and \fItests/guests\fR directories have been moved to \fItest\-data/\fR. This new top level directory carries all test data which is common, large and/or shared between multiple tests. .PP There is a new top level \fIwebsite/\fR directory containing the public http://libguestfs.org website (or most of it). .PP The fuzz testing of inspection (\fItests/fuzz\fR) has been removed. .PP Virt\-p2v now saves the source physical machine dmesg output into the conversion server debug directory, making it simpler to debug cases of missing drivers, firmware etc. .SS "Bugs fixed" .IX Subsection "Bugs fixed" .IP https://bugzilla.redhat.com/1294956 4 .IX Item "https://bugzilla.redhat.com/1294956" set-label returns wrong error message when set the ext3/ext4 filesystem label .IP https://bugzilla.redhat.com/1288733 4 .IX Item "https://bugzilla.redhat.com/1288733" Add a Fedora 23 32\-bit base image for virt-builder .IP https://bugzilla.redhat.com/1288201 4 .IX Item "https://bugzilla.redhat.com/1288201" virt-builder writes temporary files to /tmp .IP https://bugzilla.redhat.com/1285847 4 .IX Item "https://bugzilla.redhat.com/1285847" virt-resize does not copy logical partitions .IP https://bugzilla.redhat.com/1281578 4 .IX Item "https://bugzilla.redhat.com/1281578" virt-inspector returns version 6.3 for win10 images (should return 10.0) .IP https://bugzilla.redhat.com/1281577 4 .IX Item "https://bugzilla.redhat.com/1281577" virt-inspector \-\-xpath segfault on attribute get .IP https://bugzilla.redhat.com/1280029 4 .IX Item "https://bugzilla.redhat.com/1280029" libguestfs can run commands with stdin not open (or worse still, connected to arbitrary guest-chosen random devices) .IP https://bugzilla.redhat.com/1279273 4 .IX Item "https://bugzilla.redhat.com/1279273" About compression option for qcow2 .IP https://bugzilla.redhat.com/1278878 4 .IX Item "https://bugzilla.redhat.com/1278878" guestfish should be able to handle LVM thin layouts .IP https://bugzilla.redhat.com/1278382 4 .IX Item "https://bugzilla.redhat.com/1278382" DNF python programming error when run from virt-builder .IP https://bugzilla.redhat.com/1278371 4 .IX Item "https://bugzilla.redhat.com/1278371" inspection returns arch="unknown" for Windows guest if file command is not installed .IP https://bugzilla.redhat.com/1277274 4 .IX Item "https://bugzilla.redhat.com/1277274" Document permissions needed for non-admin users to use virt\-v2v .IP https://bugzilla.redhat.com/1277122 4 .IX Item "https://bugzilla.redhat.com/1277122" RFE: virt-sparsify: make '\-\-in\-place' sparsification safe to abort (gracefully or ungracefully) .IP https://bugzilla.redhat.com/1277074 4 .IX Item "https://bugzilla.redhat.com/1277074" Virt\-p2v client shouldn't present the vdsm option because it's not usable .IP https://bugzilla.redhat.com/1276540 4 .IX Item "https://bugzilla.redhat.com/1276540" virt\-v2v fails to convert Windows raw image: error "device name is not a partition" .IP https://bugzilla.redhat.com/1275806 4 .IX Item "https://bugzilla.redhat.com/1275806" virt-builder: error: [file] is not a regular file in the guest .IP https://bugzilla.redhat.com/1270011 4 .IX Item "https://bugzilla.redhat.com/1270011" Simplestreams test fails: virt-builder: error: the value for the key 'size' is not an integer .IP https://bugzilla.redhat.com/1267032 4 .IX Item "https://bugzilla.redhat.com/1267032" guestfish copy-in command behaves oddly/unexpectedly with wildcards .IP https://bugzilla.redhat.com/1262983 4 .IX Item "https://bugzilla.redhat.com/1262983" python: Cannot compile pip module if installed libguestfs != pip guestfs version .IP https://bugzilla.redhat.com/1262127 4 .IX Item "https://bugzilla.redhat.com/1262127" Better diagnostic message when virbr0 doesn't exist .IP https://bugzilla.redhat.com/1261436 4 .IX Item "https://bugzilla.redhat.com/1261436" No warning shows when convert a win7 guest with AVG AntiVirus installed .IP https://bugzilla.redhat.com/1260778 4 .IX Item "https://bugzilla.redhat.com/1260778" virt-builder \-\-ssh\-inject doesn't set proper permissions on created files .IP https://bugzilla.redhat.com/1260689 4 .IX Item "https://bugzilla.redhat.com/1260689" RFE: V2V to check and warn user to disable group policy and anti virus on Windows guests .IP https://bugzilla.redhat.com/1260590 4 .IX Item "https://bugzilla.redhat.com/1260590" Wrong graphics protocal and video type set for guest after convert to rhev 3.6 by virt\-v2v .IP https://bugzilla.redhat.com/1258342 4 .IX Item "https://bugzilla.redhat.com/1258342" extra slashes in vcenter URL confuses virt\-v2v .IP https://bugzilla.redhat.com/1257895 4 .IX Item "https://bugzilla.redhat.com/1257895" [RHEV][V2V] virt\-v2v ignores NIC if interface source/@network or source/@bridge is an empty string .IP https://bugzilla.redhat.com/1256405 4 .IX Item "https://bugzilla.redhat.com/1256405" virt-builder created Fedora 22 32bit disk image cannot be updated .IP https://bugzilla.redhat.com/1256222 4 .IX Item "https://bugzilla.redhat.com/1256222" virt\-p2v no GUI mode:error opening control connection to \f(CW$ip:22:unexpected\fR …rompt .IP https://bugzilla.redhat.com/1251909 4 .IX Item "https://bugzilla.redhat.com/1251909" Option \-oa preallocated \-of qcow2 of virt\-v2v didn't work efficiently .IP https://bugzilla.redhat.com/1250715 4 .IX Item "https://bugzilla.redhat.com/1250715" v2v: spaces need to be escaped as \f(CW%20\fR in paths .IP https://bugzilla.redhat.com/1248678 4 .IX Item "https://bugzilla.redhat.com/1248678" Close all incoming ports on virt\-p2v ISO .IP https://bugzilla.redhat.com/1246882 4 .IX Item "https://bugzilla.redhat.com/1246882" man virt-customize shows synopsis twice .IP https://bugzilla.redhat.com/1242853 4 .IX Item "https://bugzilla.redhat.com/1242853" mount-loop failed to setup loop device: No such file or directory .IP https://bugzilla.redhat.com/1237136 4 .IX Item "https://bugzilla.redhat.com/1237136" BUG: unable to handle kernel NULL pointer dereference at in function _\|_blkg_lookup .IP https://bugzilla.redhat.com/1230412 4 .IX Item "https://bugzilla.redhat.com/1230412" virt\-v2v should ignore bogus kernel entries in grub config .IP https://bugzilla.redhat.com/1229119 4 .IX Item "https://bugzilla.redhat.com/1229119" Unrelated info in fstab makes virt\-v2v fail with unclear error info .IP https://bugzilla.redhat.com/1227609 4 .IX Item "https://bugzilla.redhat.com/1227609" virt\-p2v: Using "Back" button causes output list to be repopulated multiple times .IP https://bugzilla.redhat.com/1225789 4 .IX Item "https://bugzilla.redhat.com/1225789" Wrong video driver is installed for rhel5.11 guest after conversion to libvirt .IP https://bugzilla.redhat.com/1204131 4 .IX Item "https://bugzilla.redhat.com/1204131" RFE: virt-builder creates qcow v3 images, add build option for qcow v2 .IP https://bugzilla.redhat.com/1176801 4 .IX Item "https://bugzilla.redhat.com/1176801" File /etc/sysconfig/kernel isn't updated when convert XenPV guest with regular kernel installed .IP https://bugzilla.redhat.com/1174551 4 .IX Item "https://bugzilla.redhat.com/1174551" "lstatnslist" and "lstatlist" don't give an error if the API is used wrongly .IP https://bugzilla.redhat.com/1168223 4 .IX Item "https://bugzilla.redhat.com/1168223" koji spin-livecd cannot build a working live CD .IP https://bugzilla.redhat.com/1165785 4 .IX Item "https://bugzilla.redhat.com/1165785" mount-loop command fails: mount failed: Unknown error \-1 .IP https://bugzilla.redhat.com/1164708 4 .IX Item "https://bugzilla.redhat.com/1164708" set-label can only set <=127 bytes for btrfs and <=126 bytes for ntfs filesystem which not meet the help message. Also for ntfs it should give a warning message when the length >128 bytes .IP https://bugzilla.redhat.com/1020216 4 .IX Item "https://bugzilla.redhat.com/1020216" libvirt fails to shut down domain: could not destroy libvirt domain: Requested operation is not valid: domain is not running .IP https://bugzilla.redhat.com/1011907 4 .IX Item "https://bugzilla.redhat.com/1011907" mount-loop failed to setup loop device: No such file or directory .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBguestfs\-examples\fR\|(1), \&\fBguestfs\-faq\fR\|(1), \&\fBguestfs\-performance\fR\|(1), \&\fBguestfs\-recipes\fR\|(1), \&\fBguestfs\-testing\fR\|(1), \&\fBguestfs\fR\|(3), \&\fBguestfish\fR\|(1), http://libguestfs.org/ .SH AUTHOR .IX Header "AUTHOR" Richard W.M. Jones .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (C) 2009\-2023 Red Hat Inc. .SH LICENSE .IX Header "LICENSE" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. .PP This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. .PP You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301 USA. .SH BUGS .IX Header "BUGS" To get a list of bugs against libguestfs, use this link: https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools .PP To report a new bug against libguestfs, use this link: https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools .PP When reporting a bug, please supply: .IP \(bu 4 The version of libguestfs. .IP \(bu 4 Where you got libguestfs (eg. which Linux distro, compiled from source, etc) .IP \(bu 4 Describe the bug accurately and give a way to reproduce it. .IP \(bu 4 Run \fBlibguestfs\-test\-tool\fR\|(1) and paste the \fBcomplete, unedited\fR output into the bug report.