First, you deploy a new SDDC Manager appliance by using the OVA file that you downloaded during the preparation for the restore. After that, you restore the file-based backup on the newly deployed SDDC Manager appliance.
Procedure
- In a web browser, log in to management domain vCenter Server by using the vSphere Client (https://<vcenter_server_fqdn>/ui).
- Select Menu > VMs and templates.
- In the inventory expand vCenter Server > Datacenter.
- Right-click the management folder and select Deploy OVF template.
- On the Select an OVF template page, select Local file, click Upload files, browse to the location of the SDDC Manager OVA file, click Open, and click Next.
- On the Select a name and folder page, in the Virtual machine name text box, enter a virtual machine name, and click Next.
- On the Select a compute resource page, click Next.
- On the Review details page, review the settings and click Next.
- On the License agreements page, accept the license agreement and click Next.
- On the Select storage page, select the vSAN datastore and click Next.
The datastore must match the
vsan_datastore
value in the metadata.json file that you downloaded during the preparation for the restore. - On the Select networks page, from the Destination network drop-down menu, select the management network distributed port group and click Next.
The distributed port group must match the
port_group
value in the metadata.json file that you downloaded during the preparation for the restore. - On the Customize template page, enter the following values and click Next.
Setting
Description
Enter root user password
You can use the original root user password or a new password.
Enter login (vcf) user password
You can use the original vcf user password or a new password.
Enter basic auth user password
You can use the original admin user password or a new password.
Enter backup (backup) user password
The backup password that you saved during the preparation for the restore. This password can be changed later if desired.
Enter Local user password
You can use the original Local user password or a new password.
Hostname
The FQDN must match the
hostname
value in the metadata.json file that you downloaded during the preparation for the restore.NTP sources
The NTP server details for the appliance.
Enable FIPs
Selected
Default gateway
The default gateway for the appliance.
Domain name
The domain name for the appliance.
Domain search path
The domain search path(s) for the appliance.
Domain name servers
The DNS servers for the appliance.
Network 1 IP address
The IP address for the appliance.
Network 1 netmask
The subnet mask for the appliance.
- On the Ready to complete page, click Finish and wait for the process to complete.
- When the SDDC Manager appliance deployment completes, expand the management folder.
- Right-click the SDDC Manager appliance and select Snapshots > Take Snapshot.
- Right-click the SDDC Manager appliance, select Power > Power On.
- On the host machine, copy the encrypted backup file to the /tmp folder on the newly deployed SDDC Manager appliance by running the following command. When prompted, enter the vcf_user_password.
scp filename-of-restore-file vcf@sddc_manager_fqdn:/tmp/
- On the host machine, obtain the authentication token from the SDDC Manager appliance in order to be able to execute the restore process by running the following command:
TOKEN=`curl https://<sddc_manager_fqdn>/v1/tokens -k -X POST -H "Content-Type: application/json" -d '{"username": "admin@local","password": "<admin@local_password>"}' | awk -F "\"" '{ print $4}'`
- On the host machine with access to the SDDC Manager, open a terminal and run the command to start the restore process.
curl https://<sddc_manager_fqdn>/v1/restores/tasks -k -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \ -d '{ "elements" : [ { "resourceType" : "SDDC_MANAGER" } ], "backupFile" : "<backup_file>", "encryption" : { "passphrase" : "<encryption_password>" } }'
The command output contains the ID of the restore task.
- Record the ID of the restore task.
- Monitor the restore task by using the following command until the status becomes Successful.
curl https://<sddc_manager_fqdn>/v1/restores/tasks/<restore_task_id> -k -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN"
What to do next
Refresh the SSH keys that are stored in the SDDC Manager inventory. See VMware Cloud Foundation SDDC Manager Recovery Scripts (79004).