Source:Installing guestfs-tools on Linux: Difference between revisions

From SEPsesam
m (Fixed links to new Quick Install)
(Added a guestfs known issue (RS))
Line 107: Line 107:
You also have to add lines for these package names to
You also have to add lines for these package names to
  /usr/lib64/guestfs/supermin.d/packages
  /usr/lib64/guestfs/supermin.d/packages
on the system.
on the system.</translate>


<!--T:43-->
<div class="noprint">
<div class="noprint">


==Known issues== <!--T:21-->
==<translate><!--T:21--> Known issues==
If you have problems with VMs single file restore, check the [[Special:MyLanguage/Troubleshooting_Guide|Troubleshooting Guide]].


==See also== <!--T:22-->
On SLES 15 SP4, when running <tt>guestfs</tt> tool to mount a saveset, the mount fails with the following error message: </translate>
error while loading shared libraries: libgcrypt.so.20: cannot open shared object file: No such file or directory
 
<translate>To solve this problem, run the following commands on the affected SEP sesam Server:</translate>
*<code>echo '/usr/lib64/libgcrypt.so*' > /usr/lib64/guestfs/supermin.d/zz-libgcrypt</code>
*<code>echo '/usr/lib64/libgpg-error.so*' > /usr/lib64/guestfs/supermin.d/zz-libgpg-error</code>
 
<translate>==See also== <!--T:22-->
[[Special:MyLanguage/Web_Single_File_Restore_for_Virtual_Machines|Web Single File Restore for Virtual Machines]] – [[Special:MyLanguage/SEP_sesam_Quick_Install_Guide#linux|SEP sesam Quick Install Guide]] – [http://libguestfs.org/ <tt>libguestfs</tt> tools for accessing and modifying virtual machine disk images]</div></translate>
[[Special:MyLanguage/Web_Single_File_Restore_for_Virtual_Machines|Web Single File Restore for Virtual Machines]] – [[Special:MyLanguage/SEP_sesam_Quick_Install_Guide#linux|SEP sesam Quick Install Guide]] – [http://libguestfs.org/ <tt>libguestfs</tt> tools for accessing and modifying virtual machine disk images]</div></translate>

Revision as of 15:33, 10 January 2023

Other languages:

Template:Copyright SEP AG en

Docs latest icon.png Welcome to the latest SEP sesam documentation version 4.4.3/5.0.0 Jaglion. For previous documentation version(s), check VMware archive.


Overview

On Linux, SEP sesam single file restore (SFR) from virtualization platform backups, e.g., VMware vSphere, requires the guestfs-tools package to be installed to be able to access and mount the file system of an image on Linux. If the package is not installed on your SEP sesam Server or RDS Linux server, you cannot mount the VMDK and consequently, perform a single file restore.

To learn more about the guestfs-tools, see libguestfs tools for accessing and modifying virtual machine disk images.

Installing guestfs-tools package

Use the command line to install the guestfs-tools package according to your specific Linux distributions, i.e., SLES, Debian, Ubuntu, RHEL, or CentOS. For details on Linux installation, see SEP sesam Quick Install Guide.

Depending on your Linux distribution, specify the relevant command:

  • On SLES (SUSE Linux Enterprise Server)
  • zypper install guestfs-tools
  • On Debian and Ubuntu
  • apt-get install libguestfs-tools
  • On RHEL and CentOS
  • yum install libguestfs-tools

Restrictions and extra steps required on RHEL/CentOS

Due to restrictions on RHEL mounting Windows VMs will not work. Check the libguestfs FAQ for more information.

Additional steps are required on RHEL and its derivatives for single file restore to work:

  1. Open /etc/libvirt/qemu.conf and change the variable user from qemu to root.
  2. Restart the service libvirtd, by using
  3. systemctl restart libvirtd
  4. Add a new line to /usr/lib64/guestfs/supermin.d/packages containing libgpg-error.
  5. Remove old guestmount appliances
  6. rm -rf /var/tmp/.guestfs-*
  7. Test if the guestmount appliance builds without error by running the following
  8. libguestfs-test-tool This has to exit with ===== TEST FINISHED OK =====

If selinux is set to enforcing, guestfs-tools cannot access the virtual hard disks provided by SEP sesam, so mount will still fail.

Restrictions and extra steps required on SUSE

  1. Install augeas augeas-lenses e2fsprogs on your SEP sesam Server or RDS Linux server.
  2. Add new lines to /usr/lib64/guestfs/supermin.d/packages containing the following
  3. libaugeas0 augeas augeas-lenses

Checking the guestmount capabilities on your system

To check whether guestmount works on your system, run

libguestfs-test-tool

If the last line is

===== TEST FINISHED OK =====

guestmount works correctly.

You can check what things guestmount currently supports on your system, by running

guestfish -a /dev/null run : supported

on your SEP sesam Server or the SEP sesam RDS, where the savesets you want to mount are located.

This will show you whether VMs with filesystems like btrfs or ntfs can be mounted. You may add this functionality by installing the required packages on your system. You also have to add lines for these package names to

/usr/lib64/guestfs/supermin.d/packages

on the system.

Known issues

On SLES 15 SP4, when running guestfs tool to mount a saveset, the mount fails with the following error message:

error while loading shared libraries: libgcrypt.so.20: cannot open shared object file: No such file or directory

To solve this problem, run the following commands on the affected SEP sesam Server:

  • echo '/usr/lib64/libgcrypt.so*' > /usr/lib64/guestfs/supermin.d/zz-libgcrypt
  • echo '/usr/lib64/libgpg-error.so*' > /usr/lib64/guestfs/supermin.d/zz-libgpg-error

See also

Web Single File Restore for Virtual MachinesSEP sesam Quick Install Guidelibguestfs tools for accessing and modifying virtual machine disk images