Host-based backup of Nutanix AHV VMs.
Post Reply
HYF_JE
Enthusiast
Posts: 50
Liked: 7 times
Joined: Jan 24, 2023 11:14 pm
Contact:

How To - Nutanix AHV Proxy v4 with Multihoming

Post by HYF_JE » 2 people like this post

Disclaimer

I am not a representative of Veeam. I am a user. No warranty, no guarantees. YMMV.

Preamble

I'm almost positive this configuration is not officially supported by the Veeam team, but I wanted to share the steps for our environment of Nutanix clusters and AHV proxies. These are not the steps to do this, I'm sure there's other methods. I simply found this (after much experimentation/failure) to be the fastest and cleanest method in our environment.

We have about 5 AHV clusters. Each of our AHV proxies are configured similarly - a proxy with one NIC in the "backup management" subnet/VLAN which has firewall rules permitted to the Veeam infrastructure, and a second NIC on the same subnet/VLAN as the Nutanix cluster (AHV hosts, CVMs, data services/iscsi IP). Additionally all of our Nutanix clusters have a certificate applied which is issued from our enterprise ADCS PKI for improved security.

Obvious advantages of this configuration - less firewall rules required when one NIC is in the same subnet as the Nutanix cluster, no need to "hop" gateways when transferring large quantities of data from the AOS storage, and better security.

Unfortunately as of writing, this is still not an officially supported workflow, so I provide the steps below that worked for me when deploying v4 of the AHV proxy.

I will assume Nutanix network segmentation is not in use, as we don't take advantage of that (yet).

Steps
  1. Add your Nutanix AHV cluster to the VBR console, nothing new here.
  2. Start the wizard for deploying a new AHV backup proxy.
  3. When configuring the network for the proxy, setup for the "management" interface (DNS resolution, NTP sync, updates, gateway/forwarding, SSH, web interface).
  4. On the apply page, just wait it out. It will look like nothing is happening and that's mostly correct. For me, it takes between 15-20 minutes of waiting for the system to exit with a warning similar to "Nutanix AHV proxy has been deployed with warnings". At this time the proxy is not usable and if you try to access the web interface, you are likely to get an "ajax" error. Close the wizard.
  5. From your Prism UI, gracefully shutdown the proxy VM. Add a second NIC and connect it to the same VLAN as your Nutanix AHV hosts/CVMs. Power on the proxy VM.
  6. Optional - Activate SSH If you're like me, you want SSH immediately to avoid working with the laggy console. After the VM has booted, login with your configured username/password. Execute the command

    Code: Select all

    sudo ufw allow ssh
    The SSH service is already enabled and running, all you need is to permit SSH access in the firewall.
  7. Execute the command

    Code: Select all

    ip link
    You should now see the new interface in a DOWN state. For me, it has always been ens4 but YMMV.
  8. Configure netplan for your new NIC. I've found the easiest method is to use a command similar to:

    Code: Select all

    sudo netplan set "ethernets.ens4.addresses=[198.51.100.1/24]"
    Adjust the link (ens4) and CIDR-formatted address (198.51.100.1/24) as necessary to your environment.
  9. Execute the command

    Code: Select all

    sudo netplan apply
    Use the commands ip addr and ip route to confirm your networking has updated.
  10. Optional If you are using custom certificates for your Nutanix clusters, I strongly advise to follow KB4433 to install your root CA's certificate.
  11. Execute the command...

    Code: Select all

    openssl s_client -brief NUTANIX_FQDN_OR_IP:9440
    ...to confirm connectivity via TLS to your cluster from the AHV proxy, substituting in the FQDN or vIP address of your Nutanix cluster. You should see messaging that the connection was established and if your PKI is setup, you should have a line in the output showing "Verification: OK". Exit the s_client with CTRL+D. If this test does not succeed, you likely made a mistake in your networking.
  12. Return to the VBR console. Browse to backup proxies, right click your previously added proxy and click remove. DO NOT delete the proxy VM from the cluster. We only need to remove the proxy from the console.
  13. In the VBR console, add a proxy and select the AHV type. Select the option to connect to an existing proxy and follow all your normal steps, connecting to the existing cluster and AHV proxy already present. Getting a certificate warning for the AHV proxy itself is normal and not unexpected. The apply page should complete very quickly this time (< minute) due to everything being configured now on the AHV proxy.
  14. I'm not exactly sure why, but I have better success at this stage if I reboot the AHV proxy a final time before trying to use it/access the management console.
  15. Perform any other configurations and testing (NTP, updates, email notifications, backup, VM restore, FLR, etc).
  16. Enjoy your proxy!
HannesK
Product Manager
Posts: 14881
Liked: 3098 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: How To - Nutanix AHV Proxy v4 with Multihoming

Post by HannesK » 1 person likes this post

Hello,
thanks for sharing with the community, especially the certificate part.

Overall, we know that it's working in general (it's just not tested / documented). AHV proxy is just a normal Ubuntu and to NICs result in normal IP routing.

Best regards,
Hannes
magnusvr
Novice
Posts: 9
Liked: 1 time
Joined: Jan 29, 2019 3:25 pm
Full Name: Magnus von Rosen
Contact:

Re: How To - Nutanix AHV Proxy v4 with Multihoming

Post by magnusvr » 1 person likes this post

Wonderful stuff, I'm bookmarking this! Thank you!
ronnmartin61
Veeam Software
Posts: 541
Liked: 195 times
Joined: Mar 07, 2016 3:55 pm
Full Name: Ronn Martin
Contact:

Re: How To - Nutanix AHV Proxy v4 with Multihoming

Post by ronnmartin61 » 1 person likes this post

I wanted to updated this thread to let you all know that we've released a private beta which adds support for multiple NIC's for both the AHV appliance and workers (Prism Central support is thrown in for good measure :wink:). If you're interested in testing please contact your Veeam SE who can set up access to the beta bits. We're of course very interested in your feedback as well!
ronnmartin61
Veeam Software
Posts: 541
Liked: 195 times
Joined: Mar 07, 2016 3:55 pm
Full Name: Ronn Martin
Contact:

Re: How To - Nutanix AHV Proxy v4 with Multihoming

Post by ronnmartin61 » 1 person likes this post

@magnusvr, @HYF_JE version 6.0 of our AHV integration is now available featuring built-in multi network interface support
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests