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

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

KB ID: 4013
Product: Veeam Agent for Linux | 3.0 | 4.0 | 5.0
Published: 2020-09-16
Last Modified: 2021-12-28
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Policy.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please try again later.

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.

Click here to send feedback regarding this KB, or suggest content for a new KB.
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

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 try again later.