1-800-691-1991 | 9am - 8pm ET
EN

How to manually collect recovery media logs for Veeam Agent for Linux

KB ID: 4013
Published: 2020-09-16
Last Modified: 2021-03-12

Challenge

You cannot collect recovery media logs for Veeam Agent for Linux from the repository. In such case, you still can collect recovery media logs manually from the Veeam Agent computer.

Cause

If the bare-metal restore is not completed, the recovery media does not export logs to the repository. As a result, the logs must be gathered from the recovery media manually.

Solution

  1. Boot the Veeam Recovery Media.
  2. Configure the network settings.
  3. In the Veeam Recovery Media menu, select Switch to command line.
  4. Determine the version of the Veeam Recovery Media by running the veeamconfig -v command.
  5. If you run the Veeam Recovery Media version 5.0, determine if you’re running init-based or systemd-based Veeam Recovery Media image by running the hostname command. Note: Veeam Recovery Media images prior to version 5.0 are all init-based.
    If the output is veeam-recovery-media, the media is init-based.
    If the output is veeam-recovery-iso, the media is systemd-based.

For init-based Veeam Recovery Media

  1. Run the cd /tmp command.
  2. Run the veeamconfig grablogs (for the Veeam Recovery Media version 4.0 or later) or veeamconfig config grablogs (for Veeam Recovery Media versions up to 3.0.2) command to create the veeam_logs_<date>_<time>.tar.gz archive in /tmp directory.
  3. Run the tar -zcvf VeeamRecoveryMediaLogs.tar.gz /var/log command.
  4. Run the /etc/init.d/sshd start command.
  5. Run the passwd command and enter a temporary password for accessing the Veeam Recovery Media.
  6. Run the ip a command to determine the ip address of the Veeam Recovery Media.
  7. Connect to the Veeam Recovery Media from another machine using the SCP protocol through a program such as WinSCP or FileZilla. Use the root account with password from step 5 and the information gathered from steps 2 (/tmp/veeam_logs_<date>_<time>.tar.gz) and 3 (/tmp/VeeamRecoveryMediaLogs.tar.gz). (The log bundle will be in /tmp).

For systemd-based Veeam Recovery Media

  1. Run the cd /tmp command.
  2. Run the sudo veeamconfig grablogs command to create the veeam_logs_<date>_<time>.tar.gz archive in /tmp directory.
  3. Run the sudo tar -zcvf VeeamRecoveryMediaLogs.tar.gz /var/log command.
  4. Run the sudo service ssh start command.
  5. Run the sudo passwd veeamuser command and enter a temporary password for accessing the Veeam Recovery Media.
  6. Run the ip a command to determine the ip address of the Veeam Recovery Media.
  7. Connect to the Veeam Recovery Media from another machine using the SCP protocol through a program such as WinSCP or FileZilla. Use the veeamuser account with password from step 5 and the information gathered from steps 2 (/tmp/veeam_logs_<date>_<time>.tar.gz) and 3 (/tmp/VeeamRecoveryMediaLogs.tar.gz). (The log bundle will be in /tmp).

More information

The recovery media is not persistent across reboots. Rebooting resets all the settings and changes made in the steps above.  

The recovery media version can be determined by running the veeamconfig -v command from the shell after step 3.

If the restore process is completed (regardless of the result), Recovery Media logs are automatically exported to the location of backup files.

KB ID: 4013
Published: 2020-09-16
Last Modified: 2021-03-12

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Your report was sent to the responsible team. Our representative will contact you by email you provided.
We're working on it please try again later

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case.

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Policy.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you for your interest in Veeam products!
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please go back try again later.