Host-based backup of Nutanix AHV VMs.
Post Reply
Tech-T
Lurker
Posts: 2
Liked: never
Joined: Jan 12, 2023 3:24 pm
Full Name: Terry Mikkelsen
Contact:

Restore AHV VM for testing

Post by Tech-T »

I am looking for a way to automate some of our testing procedures. We have a schedule to restore VMs (to the same Nutanix cluster, but with a different name and network adapter) on a regular basis. I was trying to impliment a powershell script to help with this, but I'm not sure that the commands I am using support AHV VMs.
I can get a successful restore point to reference with the following code:

Code: Select all

$restorepoint = Get-VBRRestorePoint -Name T-VEEAM_Test | Sort-Object –Property CreationTime –Descending | Select-Object -First 1
...but when trying to restore (even with the same name/network settings) it doesn't seem to work:

Code: Select all

Start-VBRRestoreVM -RestorePoint $restorepoint -Reason "Test restore" -ToOriginalLocation -StoragePolicyAction Default
I get the following error:
Start-VBRRestoreVM : Unable to get auxiliary data from restore point 2ecbde36-9411-4e19-8c73-eee82f4f89ef
Does anyone have known working powershell examples for AHV restore? Thanks!
Mildur
Product Manager
Posts: 8349
Liked: 2173 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Restore AHV VM for testing

Post by Mildur »

Hello Terry

Start-VBRRestoreVM only works for VmWare VMs.
Nutanix AHV doesn't have PowerShell integration in Veeam Backup & Replication.

Best,
Fabian
Product Management Analyst @ Veeam Software
Tech-T
Lurker
Posts: 2
Liked: never
Joined: Jan 12, 2023 3:24 pm
Full Name: Terry Mikkelsen
Contact:

Re: Restore AHV VM for testing

Post by Tech-T »

Thanks Fabian!
Do you know if this is something that is planned to be integrated or a timeline for it?
Are there any other suggestions for automated restore procedures for testing?
Mildur
Product Manager
Posts: 8349
Liked: 2173 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Restore AHV VM for testing

Post by Mildur »

Hello Terry

Our upcoming release V4 will introduce a public REST API for the Veeam Nutanix Proxy. It will allow you to restore vm or disks per API calls. I believe this should solve your use case for scripted restore.

Best,
Fabian
Product Management Analyst @ Veeam Software
mario.trangoni
Lurker
Posts: 1
Liked: never
Joined: Jun 26, 2023 7:54 am
Full Name: Mario Trangoni
Contact:

Re: Restore AHV VM for testing

Post by mario.trangoni »

Hi Fabian,
I was reading this thread, and wondering if you have already released a Powershell module for this? Thank you!
Mildur
Product Manager
Posts: 8349
Liked: 2173 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Restore AHV VM for testing

Post by Mildur »

Hi Mario

We don't have a PowerShell Module explicitly for Veeam Backup for Nutanix. But you can use PowerShell to talk to the new Rest API which was released in Veeam Backup for Nutanix V4:
https://helpcenter.veeam.com/docs/vbahv ... tml?ver=40

What tasks are you trying to script?

Best,
Fabian
Product Management Analyst @ Veeam Software
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests