How To Install guestfs-tools on Fedora 36
Introduction
In this tutorial we learn how to install guestfs-tools
on Fedora 36.
What is guestfs-tools
guestfs-tools is a set of tools that can be used to make batch configuration changes to guests, get disk used/free statistics (virt-df), perform backups and guest clones, change registry/UUID/hostname info, build guests from scratch (virt-builder) and much more. Virt-alignment-scan scans virtual machines looking for partition alignment problems. Virt-builder is a command line tool for rapidly making disk images of popular free operating systems. Virt-cat is a command line tool to display the contents of a file in a virtual machine. Virt-customize is a command line tool for customizing virtual machine disk images. Virt-df is a command line tool to display free space on virtual machine filesystems. Unlike other tools, it doesn’t just display the amount of space allocated to a virtual machine, but can look inside the virtual machine to see how much space is really being used. It is like the df(1) command, but for virtual machines, except that it also works for Windows virtual machines. Virt-diff shows the differences between virtual machines. Virt-edit is a command line tool to edit the contents of a file in a virtual machine. Virt-filesystems is a command line tool to display the filesystems, partitions, block devices, LVs, VGs and PVs found in a disk image or virtual machine. It replaces the deprecated programs virt-list-filesystems and virt-list-partitions with a much more capable tool. Virt-format is a command line tool to erase and make blank disks. Virt-get-kernel extracts a kernel/initrd from a disk image. Virt-inspector examines a virtual machine and tries to determine the version of the OS, the kernel version, what drivers are installed, whether the virtual machine is fully virtualized (FV) or para-virtualized (PV), what applications are installed and more. Virt-log is a command line tool to display the log files from a virtual machine. Virt-ls is a command line tool to list out files in a virtual machine. Virt-make-fs is a command line tool to build a filesystem out of a collection of files or a tarball. Virt-resize can resize existing virtual machine disk images. Virt-sparsify makes virtual machine disk images sparse (thin-provisioned). Virt-sysprep lets you reset or unconfigure virtual machines in preparation for cloning them. Virt-tail follows (tails) a log file within a guest, like ’tail -f'.
We can use yum
or dnf
to install guestfs-tools
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install guestfs-tools.
Install guestfs-tools on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install guestfs-tools
using dnf
by running the following command:
sudo dnf -y install guestfs-tools
Install guestfs-tools on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install guestfs-tools
using yum
by running the following command:
sudo yum -y install guestfs-tools
How To Uninstall guestfs-tools on Fedora 36
To uninstall only the guestfs-tools
package we can use the following command:
sudo dnf remove guestfs-tools
guestfs-tools Package Contents on Fedora 36
/etc/virt-builder
/etc/virt-builder/repos.d
/etc/virt-builder/repos.d/libguestfs.conf
/etc/virt-builder/repos.d/libguestfs.gpg
/etc/virt-builder/repos.d/opensuse.conf
/etc/virt-builder/repos.d/opensuse.gpg
/usr/bin/virt-alignment-scan
/usr/bin/virt-builder
/usr/bin/virt-builder-repository
/usr/bin/virt-cat
/usr/bin/virt-customize
/usr/bin/virt-df
/usr/bin/virt-diff
/usr/bin/virt-edit
/usr/bin/virt-filesystems
/usr/bin/virt-format
/usr/bin/virt-get-kernel
/usr/bin/virt-index-validate
/usr/bin/virt-inspector
/usr/bin/virt-log
/usr/bin/virt-ls
/usr/bin/virt-make-fs
/usr/bin/virt-resize
/usr/bin/virt-sparsify
/usr/bin/virt-sysprep
/usr/bin/virt-tail
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/3ca97642d17590bac4b3b819fbdab97eb848fb
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/6f0dd88ef5f0d434aabba01c0382e551feb3a1
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/fd4f0e912496a3e2125f8d85696713dbbfd183
/usr/lib/.build-id/32
/usr/lib/.build-id/32/4e94b130de29e6374be72faddace23bfd7393d
/usr/lib/.build-id/51
/usr/lib/.build-id/51/92baba57fa74c5a4ec46112aa665eb6ce92563
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/6658bec7f10f5190428b1a2680ff5bfc47b77d
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/cef56f64990a3498ab4ea72950323de2343427
/usr/lib/.build-id/65
/usr/lib/.build-id/65/f84b64f988c06f0b4af9e2300c017819046e94
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/4b066edef0fda011169af1731e6587fef19921
/usr/lib/.build-id/83
/usr/lib/.build-id/83/5c24a5d7762c2e8c3b35a45f54aa94727503bf
/usr/lib/.build-id/85
/usr/lib/.build-id/85/4dc9903f7c3505e66c9acaf6a86436a528f373
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/fb0305d8c2323a2e86a430a99566c5702f5039
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/b338095bbb33e2f992574a7333a1464f324812
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/716f188cbe3b1fb5233d0a0bd265381c002cd2
/usr/lib/.build-id/af
/usr/lib/.build-id/af/fef25db2bebe7b8fdee734dc5e4e8d99ce68aa
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/9c44d9608eb9f6955904c9f267c48d95cef30e
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/75266665c2bfddc692ca9df281f0d0d9f33d0b
/usr/lib/.build-id/de
/usr/lib/.build-id/de/e15173d5d31006c7436edd361fe7cb6ba2074e
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/c383ba8dc5b3ca197a895d6a62f3f7a6ae1e8b
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/ebf8849d38dc3eb4133de644cfd5e5d0caf941
/usr/share/doc/guestfs-tools
/usr/share/doc/guestfs-tools/README
/usr/share/doc/guestfs-tools/example-debian.xml.gz
/usr/share/doc/guestfs-tools/example-fedora.xml.gz
/usr/share/doc/guestfs-tools/example-rhel-6.xml.gz
/usr/share/doc/guestfs-tools/example-ubuntu.xml.gz
/usr/share/doc/guestfs-tools/example-windows.xml.gz
/usr/share/doc/guestfs-tools/virt-inspector.rng
/usr/share/licenses/guestfs-tools
/usr/share/licenses/guestfs-tools/COPYING
/usr/share/locale/cs/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/de/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/en_GB/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/es/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/eu/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/fr/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/gu/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/hi/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/ja/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/kn/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/ml/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/mr/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/nl/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/or/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/pa/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/pl/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/ru/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/ta/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/te/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/tg/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/uk/LC_MESSAGES/guestfs-tools.mo
/usr/share/locale/zh_CN/LC_MESSAGES/guestfs-tools.mo
/usr/share/man/man1/guestfs-tools-release-notes-1.48.1.gz
/usr/share/man/man1/virt-alignment-scan.1.gz
/usr/share/man/man1/virt-builder-repository.1.gz
/usr/share/man/man1/virt-builder.1.gz
/usr/share/man/man1/virt-cat.1.gz
/usr/share/man/man1/virt-customize.1.gz
/usr/share/man/man1/virt-df.1.gz
/usr/share/man/man1/virt-diff.1.gz
/usr/share/man/man1/virt-edit.1.gz
/usr/share/man/man1/virt-filesystems.1.gz
/usr/share/man/man1/virt-format.1.gz
/usr/share/man/man1/virt-get-kernel.1.gz
/usr/share/man/man1/virt-index-validate.1.gz
/usr/share/man/man1/virt-inspector.1.gz
/usr/share/man/man1/virt-log.1.gz
/usr/share/man/man1/virt-ls.1.gz
/usr/share/man/man1/virt-make-fs.1.gz
/usr/share/man/man1/virt-resize.1.gz
/usr/share/man/man1/virt-sparsify.1.gz
/usr/share/man/man1/virt-sysprep.1.gz
/usr/share/man/man1/virt-tail.1.gz
References
Summary
In this tutorial we learn how to install guestfs-tools
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).