Objective 7.3 of VCAP6-Deploy exam covers following topics:
-
Backup and restore distributed switch configurations
-
Backup and restore resource pool configurations
-
Export Virtual Machines to OVA/OVF format
-
Use a Host profile to recover an ESXi host configuration
Lets learn about these topics one by one
2: Select the Export the distributed switch configuration or Export the distributed switch configuration and all port groups option.
3: Click Yes to save the configuration file to your local system.
4: Select a location your computer where you want to save the backup file and also provide a name for the backup file.
You now have a configuration file that contains all settings for the selected distributed switch and distributed port group.
Importing Distributed Switch configurations
To import a vSphere Distributed Switch Configuration, login to vCenter using the vSphere Web Client and navigate to Networking view.
1: Right-click on virtual datacenter and click Distributed Switch > Import Distributed Switch.
2: Browse to the location of your saved configuration file. Select the Preserve original distributed switch and port group identifiers option. Click Next.
3: Review the import settings before completing the import. Click Finish.
Restore a vSphere Distributed Switch Configuration
Use the restore option to reset the configuration of an existing distributed switch to the settings in the configuration file. Restoring a distributed switch changes the settings on the selected switch back to the settings saved in the configuration file.
1: Browse to a distributed switch in the vSphere Web Client navigator and right-click the distributed switch and select Settings > Restore Configuration.
2: Browse for the configuration backup file to use.
You can either choose to restore only vDS settings or portgroup as well along with vDS configuration
3: On Ready to complete page, review the summary information for the restore and hit finish to initiate restore process.
Note: Restoring a distributed switch will overwrite the current settings of the distributed switch and its port groups. It will not delete existing port groups that are not part of the configuration file.
Restore vDS using PowerCLI
vDS settings can also be restored using below one liner command
1 |
<span style="color: #000000;"><em>New-VDSwitch -BackupPath c:\vDS_backup.zip -Location SDDC -KeepIdentifiers:$true</em></span> |
Where -BackupPath is path to vDS backup file, -Location is datacenter we restore vDS to and -KeepIdentifiers:$true preserves port groups IDs
Backup and Restore Resource Pool Configurations
When DRS is disabled on a cluster, it removes all the resource pools that are part of the cluster and the resource pool hierarchy and affinity rules are not re-established when DRS is turned back on.
Now if you really want to disable DRS and want to save yourself from the pain of re-creating resource pools and configuring share/limits etc, you can take backup of resource pools and and restore it later post completing the maintenance and enabling DRS again.
When you disable DRS on a cluster, vSphere gives you an opportunity to save the resource pool tree in a file which can be used later to restore the resource pool hierarchy.
Just click on yes on the warning window presented.
Save the file on your local PC.
Restoring Resource Pool Tree
Turn ON DRS and right click on cluster and choose Restore Resource Pool Tree.
Note that a resource tree can only be restored to the cluster it came from. Also restoring resource pool tree is only feasible via vSphere Web Client.
Browse to the path where you have saved the snapshot file and hit OK.
Important Note: If you are disabling DRS on a cluster which is part of the vCenter associated with vCloud Director, then engage VMware technical support team for restoring the resource pool config.
Export Virtual Machines to OVA/OVF format
A VM can be exported as an OVF/OVA template so that it can be used to export a VM as into another vCenter. The VM must be in shutdown state for export task.
To export a VM, right click on it and select Template > Export OVF Template
Provide a name for the exported template and select wether export will be an .ovf or .ova export.
Choose to export BIOS UUIS, MAC address and extra configuration under the advanced options.
Use a Host profile to recover an ESXi host configuration
Objective of this topic is a bit unclear but in order to recover an Esxi host configuration using host profile we have to remediate it. I already cover host profile creation steps under VCAP6-Objective 5.2 and not going to repeat steps here.
Typically these are steps to remediate an Esxi host:
- Put the host in maintenance mode
- Attach the host profile to that host
- Check for compliance
- Remediate the host.
I hope you enjoyed reading this post. Feel free to share this on social media if it is worth sharing. Be sociable 🙂