Of course you know that Veeam B&R on Hyper-V Server can be used only as on/off-host. No GUI, no PowerShell scripts, just no!
You should install B&R on another PC or VM and start any action on it, aiming to Hyper-V Server.
That's no good, I don't want to act like that. I want to make Hyper-V (Free one) to backup VMs itselt by trigger in scheduller.
And here it is my howto:
First of all you should install Veeam B&R v8 (I use Free version) with all components included. In addition install VeeamHvIntegration.msi and VeeamTransport.msi, ypu can get it in Packages folder.
The second step is installing Patch #2b, because only Patch 2 grants you access to PowerShell snapin.
But if you just install the Patch, it won't be applied as it should be. Why? Because of this:
After installing the update, please start the Veeam services, open the console and allow Veeam B&R to update its components.
There's no way to start console in Hyper-V and that's why we should use a hint - Unattended Mode installation.
Steps:
1) Change all Veeam services start states to Disabled
2) Reboot Hyper-V (next time I'll use just "Reboot")
3) Download Patch, unpack it using command line
Code: Select all
%PatchFullPath% /q /c /t:<path_to_tmp_folder>
Code: Select all
%path_to_tmp_folder%\HotFixRunner.exe noreboot log <log_path> [color=#FF0000]VBR_AUTO_UPGRADE=1[/color]
5) Change all Veeam services start states to Automatic and DO NOT start any service!
6) Reboot
After rebbot you'll get fully working Veeam B&R with latest patch.
Next step is registering PSSnapin via PowerShell because it's not registered automaticly upon the installation (why? I don't know, ask Veeam).
To do this start PowerShell and do next:
1) Check if it's registered
Code: Select all
get-pssnapin -registered
Code: Select all
set-alias installutil $env:windir\Microsoft.NET\Framework64\v4.0.30319\installutil.exe
installutil "c:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.dll"
Code: Select all
get-pssnapin -registered
Code: Select all
Add-VBRHvHost -Name "*name*" -User *DOMAIN\user* -Password *password* -Description "*Paste_your_description*"
Code: Select all
Get-VBRServer -Name "*name*"
Now you can use PowerShell scripts with Veeam in Hyper-V!!!
I use a script by Vladimir Eremin. Thanks a lot, Vladimir!
Schedulling is not so hard to do neighter script editing.
Thanks everyone for reading this post! Keep backup!