Working with the Veeam Powershell toolkit

After the short introduction of the Veeam Powershell toolkit in my earlier post, It was about time to play with the Toolkit. In this post I will show you how to create a Backup Job and how to add VM’s to the backup job.

Lets start to add a new Veeam and Replication backup job called “Production” and add the following VM’s: DC01, VC01 and MC01:

$vbrserver = Get-VBRServer | Where {$_.Type -eq "Local"}
$vbrjobname = "Production"
$vbrfolder = "C:\veeam\production\"
$vbrfile = "production.vbk"
$vbrobjects = "DC01","VC01","MC01"

Add-VBRBackupJob -Name $vbrjobname -Type VDDK -Server $vbrserver `
-Folder $vbrfolder -FileName $vbrfile -Objects $vbrobjects

The backup job is created and the following output will be generated on the console:

image

You can verify the Job settings and the selected VM’s inside the GUI:

image

If you want to add an extra VM to the backup job. You can run the following code to add a VM called NAGIOS:

$vbrjobname = "Production"
$vbrjob = Get-VBRJob | Where {$_.Name -eq $vbrjobname}
$vbrserver = Get-VBRServer | Where {$_.Type -eq "VC"}
$vbrobjects = "NAGIOS"

Add-VBRJobObject -Job $vbrjob -Server $vbrserver -Object $vbrobjects

Annotation: the $vbrserver parameter is different than the first script in this post. When you want to add an Object to an existing job, you need to use the vCenter server as the backup source instead of the Veeam Backup server because you need to add an object from vCenter server to the backup job. See help for more info:

get-help Add-VBRJobObject -Detailed

The output from the command:

NAME

    Add-VBRJobObject

SYNOPSIS

    Add VMs or VM containers to the existing job.

SYNTAX

    Add-VBRJobObject [-Job] <CBackupJob> [-Server] <CHost> [-Objects] <String[]

    > [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonP

    arameters>]

    Add-VBRJobObject [-Job] <CBackupJob> [-Server] <CHost> [-Entities] <CEntity

    []> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<Commo

    nParameters>]

DESCRIPTION

    Add VMs or VM containers to the existing backup, replication or copy job.

PARAMETERS

    -Job <CBackupJob>

        Provide an object of the existing backup, replication or copy job.

    -Server <CHost>

        Provide an object of the ESX/ESXi server on which VMs or VM containers

        reside.

    -Objects <String[]>

        Provide objects of VMs or containers of VMs that you want to back up, r

        eplicate or copy.

When the command completed successfully you will see the following output:

image

To be continued…

Device eth0 has different MAC address than expected, ignoring.

After testing the Instant Recovery of a Linux web server. See my previous post about this Recovery process. The Linux web server has no network connection. I quick look at ifconfig only showed the loopback adapter. So I tried ifup eth0 and run into to following error:

image

This can simply be fixed by changing the MAC address. Open the Virtual Machine Properties and write down the MAC Address:

image

open the /etc/sysconfig/network-scripts/ifcfg-eth0 in your favorite editor and change the HWADDR to the new MAC address and save the file.

image

The final step is to restart networking via /etc/init.d/network restart.

Veeam Backup PowerShell Toolkit

We start with some information from the user guide veeam_backup_5_0_user_guide_pg.pdf :

Veeam Backup & Replication 5.0 comes with PowerShell extension — a snap-in to Microsoft Windows PowerShell 2.0. Windows PowerShell is a powerful command-line tool that allows administrators to automate some Veeam Backup & Replication activities. Veeam extends functionality of Windows PowerShell 2.0, and now administrators may use PowerShell to automate Veeam backup, replication and copy job creation and editing, VMs restores, replica failover and other operations.

Before installing Veeam PowerShell snap-in, make sure that Microsoft Windows PowerShell 2.0 is installed on the Veeam Backup & Replication console. To download Microsoft Windows PowerShell, use the following link: http://support.microsoft.com/kb/968929.

PowerShell uses cmdlets — simple single-function commands that can be run in the command-line shell. Cmdlets are specialized .NET classes that implement specific actions. Veeam PowerShell provides a set of its own cmdlets which correspond to actions you can perform via Veeam Backup & Replication UI. Please keep in mind that actions performed with PowerShell have the same force as actions performed via Veeam Backup & Replication 5.0 — for example, if you delete some job with PowerShell scripts, the job will be removed from the VeeamBackup database, and you will not be able undo changes.

To start the Veeam Backup PowerShell Toolkit, open Veeam Backup and Replication to Tools –> PowerShell:image

The Veeam Backup PowerShell Toolkit starts:

image

There are 75 cmdlets. You can verify this via:

(Get-VBRCommand).Count

image

If you need more information about a cmdlet you can use the get-help cmdlet:

Get-Help Add-VBRBackupJob
Get-Help Add-VBRBackupJob -Full

image

More information about the Veeam Backup PowerShell Toolkit can be found on page 164 of the veeam_backup_5_0_user_guide_pg.pdf user guide,

You can expect some more posts about the Veeam Backup PowerShell Toolkit in the coming weeks.

Veeam: Instant Recovery Fails – Unable to Mount filesystem

Before I start with the solution to the error mentioned in the title of this post I want to share some information about Veeam Instant Recovery. I wanted to test the new feature Instant Recovery. So how does Instant Recovery work? This quote comes from the veeam_backup_5_0_user_guide.pdf user guide:

With Veeam Backup & Replication, you can immediately recover a VM from a created backup file. Instant VM recovery accelerates VM restore, allowing you to improve recovery time objectives and decrease downtime of production VMs.

When performing instant recovery, Veeam Backup & Replication creates an independent temporary copy of a VM in your VMware environment and immediately starts it (if necessary). You can then move this copy to your production storage using Storage vMotion and cold migration to finalize recovery, or alternatively, replicate a restored VM with Veeam Backup & Replication and then fail over to the created replica during the next maintenance window. You can also use a recovered VM for testing purposes to make sure VM guest OS and applications are functioning properly.

Similar to the SureBackup recovery verification technology, instant VM recovery does not require you to extract a VM from a backup and move it across datacenter — it mounts a VM directly from a compressed backup file on a selected ESX host. The archived image of a VM remains in a read-only state to avoid unexpected modifications. All changes to a virtual disk that take place while a VM is running are logged to an auxiliary file on the Veeam Backup server or any datastore you select. These changes are discarded as soon as a restored VM is removed.

Let’s start an Instant Recovery restore job:

image 

Read more of this post

Veeam Backup & Replication 5.0 installation

The 20th of October was vPower Wednesday. This was the day that Veeam Backup & Replication was released to the public. So go to http://www.veeam.com/vmware-esx-backup/download.html to download your trial today:

image

In this post I will show the Setup process of Veeam Backup & Replication v5 with vPower.

Read more of this post

Release: Veeam Backup 3.1.1.295

image

@Gostev has published the news on Twitter:

image

The Release Notes:

New Features
• Added support for replication and remote backup over slow and unreliable links with moderate packet loss.
Resolved Issues
• .NET Framework bug affecting some non-English locales (confirmed to exist on Norwegian locale) results in sporadic corruption of backup files chain (missing VBK files, extra VRB files).
• Backup file repair after unsuccessful backup cycle fails if backup storage is low on free disk space.
• Network backup in service console agent mode may fail with the following error: “Failed to validate command "dd if="/vmfs/volumes/…”.
• Attempting to enable SSH connection to ESX host on Japanese locale fails with the following error: ["Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "VeeamSSH.strings.ja.resources" was correctly embedded or linked into assembly "Veeam.SSH" at compile time, or that all the satellite assemblies required are loadable and fully signed."].
• Veeam VSS processing fails on specific OS configurations with various “Access denied” errors while specified VSS account has suffient permissions.
• Veeam VSS processing fails on specific OS configurations with the following error: "The specified service does not exist as an installed service".
• Veeam VSS integration does not support guests with Datacenter Edition of Microsoft Windows 2003.

You can download the new release here: http://www.veeam.com/vmware-esx-backup/download.html

Source: http://www.veeam.com/forums/viewtopic.php?f=2&t=1565

Veeam Backup 3.1 and File Level Restore

image

After the installation of Veeam Backup 3.1 a  new icon will be installed on your desktop. The icon is called Veeam File Level Restore.

image

So what does the Veeam File Level Restore do? I got this from the help file:

The Veeam File Level Restore wizard is intended for performing restore of VM guest files and folders from image-level backups created with Veeam Backup 3.1.

At restoring VM guest files, Veeam Agents are deployed on the target localhost/Linux-based server and the source host — a local machine running Windows OS.  To mount the VM file system, the Veeam File Level Restore wizard uses the virtual appliance image that copied to your computer at the installation process. Once the restore job is completed, the virtual machine file system is displayed in the file browser window. You can copy necessary files and folders to your local machine drive or save them anywhere within the network.

To install the Veeam File Level Restore wizard, run the setup file from the downloaded archive and follow the installation wizard steps.

Tip:
To parse the VM disks content, the Veeam File Level Restore wizard uses VMware player that is launched as soon as you start restoring files from a VM. Please make sure that VMware Player is installed on your computer – otherwise the wizard will not be able to perform file-level restore operation.

De following file systems are supported by the File Level Restore Plugin:

image

You can download the VMware Player here: http://www.vmware.com/download/player/

In the rest of this post you will see the screenshots of the new File Level Restore wizard.

Read more of this post

Veeam FastSCP3 on Windows 7 X64

image

If you try to install Veeam FastSCP3 on Windows 7 X64. You’ll get the following error:

veeam_fastscp3_win7_error

I asked a question about this error in the Veeam Forums: http://forum.veeam.com.

Gostev suggested the following:

the workaround is to hack installation package and remove OS version check (if you know how to do this) :wink:

So this is exactly what i did. I found a script on this page: http://lazynetworkadmin.com. This script does exactly what i needed. It removes the OS Version Check from the MSI.

These are the steps:

  1. Download Veeam FastSCP 3 from here: http://www.veeam.com
  2. Extract the zip file.
  3. Download winrar and extract the veeam_fastscp_3.0.exe.
  4. Get the scrtipt from: http://lazynetworkadmin.com and save it on the desktop.
  5. Grab the extracted FastSCPSetup.msi and drop it on the script. After a couple of seconds, the following screens will popup: 
    image     image  image image
  6. You can install FastSCP 3 by running the FastSCPSetup.msi.

Installing Veeam Backup 3.01

image

After reading the post about the release of Veeam Backup 3.01 over at http://virtualfuture.info/. I downloaded the software and upgraded to version 3.01. In this post you’ll find the information you need about the upgrade process.

image

1. Uninstall Veeam Backup 3.0. Your Product configuration will be preserved in the Veeam Backup configuration database.
2. Download Veeam Backup 3.0.1 from http://www.veeam.com/download_all.asp
3. Extract the downloaded archive and run the Veeam_Backup_Setup.exe setup file.
4. Accept the terms of Veeam Backup and FastSCP License Agreement to install the product.
5. Provide setup program with your license file.
6. Specify the installation folder.
7. Specify the Microsoft SQL server database and instance to use for storing Veeam Backup configuration. You should select the same database and instance you have used for Veeam Backup 3.0.

image

8. Confirm that you want to use existing Veeam Backup configuration database when prompted.

image

9. Specify the administrative credentials to run the Veeam Backup service. The account must have Local Administrator privileges on the computer where you are installing Veeam Backup.
10. Click Install to start the installation.
11. Launch the Veeam Backup product by clicking the Veeam Backup and FastSCP product icon on your desktop.

Source:  veeam_backup_3.0.1_release_notes.pdf

Release: Veeam Backup 3.0

image

What’s new:

  • Support for ESXi and ESXi Free
  • Linux File-Level Recovery
  • Windows 2008 VSS Support
  • VM Templates Backup
  • Improved Performance

Be sure to check the following pdf’s:

veeam_backup_3.0_whats_new.pdf

veeam_backup.pdf

Veeam_Backup_User_Guide_3.0.pdf

veeam_backup_3.0_release_notes.pdf

You can download the software here: http://www.veeam.com/vmware-esx-backup.html

Follow

Get every new post delivered to your Inbox.

Join 962 other followers