Table of Contents Lab Overview - - Self-service data protection using the EMC Plugin for vrealize Automation and Avamar... 2 Lab Guidance... 3 Module 1 - Tenant user backup and restore (30 minutes)... 4 Backing up a newly provisioned VM within vrealize Automation... 5 Restore the VM... 23 Conclusion... 28 Module 2 - Tenant user backup and file level restore (30 minutes)... 29 Setup for file level restore... 30 Running backups from hol-dev-06... 34 File Level Restore... 39 Conclusion... 56 Module 3 - Cloud and Data Protection Admin operations (30 minutes)... 57 As a cloud/data protection admin enable data protection for new blueprints... 58 Provision and backup your new VM... 73 Conclusion... 89 Module 4 - Admin restore to an alternate location (30 minutes)... 90 As a cloud/data protection admin perform a restore to an alternate destination.. 91 Analyze the restored VM... 99 Conclusion... 105 Conclusion... 106 Conclusion... 107 Page 1
Lab Overview - HOL- PRT-1671 - Self-service data protection using the EMC Plugin for vrealize Automation and Avamar Page 2
Lab Guidance : Can I do my own backups and restores? Yes, yes you can. Learn how you can implement the EMC Plugin for vrealize Automation for user level backup and file level restores of their virtual machines. In this lab you'll be backing up and restoring VMs provisioned via vrealize Automation, as a Cloud/Data Protection admin you'll be enabling data protection for new blueprints. Also you'll be running various level of restores: in-place, out of place, and file level restore from VM image level backups. Lab Module List: Module 1 - Tenant user backup and restore (30 minutes) Module 2 - Tenant user backup and file level restore (30 minutes) Module 3 - Cloud and Data Protection Admin operations (30 minutes) Module 4 - Admin restore to an alternate location (30 minutes) Lab Captains: Eddie Pavkovic, Tony Mullen (All Modules) For more information about the products in this lab visit: EMC Data Protection Suite: http://www.emc.com/data-protection/data-protection-suite/ index.htm EMC Avamar: http://www.emc.com/data-protection/avamar.htm EMC Data Protection: http://www.emc.com/data-protection/index.htm Page 3
Module 1 - Tenant user backup and restore (30 minutes) Page 4
Backing up a newly provisioned VM within vrealize Automation The goal of this module is to allow you as a tenant user to perform your own backups and restores of your virtual machines. Getting Started This module demonstrates the tenant's user ability to perform their own backup and restore from the same vrealize Automation interface. PLEASE NOTE: If you receive login, single-sign-on, or certificate errors when you start the lab, it probably means that the lab has not completed its startup process. Wait a few minutes and try again. If the issue persists, please contact a proctor for assistance. PLEASE NOTE #2: If you have problems typing in any of the required commands throughout this lab, please use the Keyboard Cheat Sheet found in the README.txt file on the desktop to Copy/Paste the correct commands. Page 5
For users with non-us Keyboards NOTE: If you are using a device with non-us keyboard layout, you might find it difficult to enter CLI commands, user names and passwords throughout the modules in this lab. The CLI commands, user names and passwords that needs to be entered, can be copied and pasted from the file README.txt on the desktop. Alternatively, you can use the On-Screen Keyboard. Page 6
On-Screen Keyboard Another option for having issues with the keyboard is to use the On-Screen Keyboard. To open the On-Screen Keyboard go to Start - All Programs - Accessories - Ease of Access - On-Screen Keyboard Windows Activation prompt or Watermark When you first start your lab, you may notice a watermark on the desktop indicating that Windows is not activated. One of the major benefits of virtualization is that virtual machines can be moved and run on any platform. The Hands-on Labs utilizes this benefit and we are able to run the labs out of multiple datacenters. However, these datacenters may not have identical processors, which triggers a Microsoft activation check through the Internet. Rest assured, VMware and the Hands-on Labs are in full compliance with Microsoft licensing requirements. The lab that you are using is a self-contained pod and does not have full access to the Internet, which is required for Windows to verify the activation. Page 7
Without full access to the Internet, this automated process fails and you see this watermark. This cosmetic issue has no effect on your lab. If you have any questions or concerns, please feel free to use the support made available to you either at VMworld in the Hands-on Labs area, in your Expert-led Workshop, or online via the survey comments as we are always looking for ways to improve your hands on lab experience. Launch Chrome Click on the Google Chrome icon in the taskbar Page 8
Login to vrealize Automation 1. Click on a New Tab 2. Click on the vrealize Automation bookmark. 3. Username: devuser@corp.local 4. Password: VMware1! 5. Login Page 9
vrealize Automation Home Page This is the home page of vrealize Automation which provides a dashboard of useful information. 1. In the upper right in the My Items section you'll see a VMs already provisioned, these will be used in upcoming modules in the lab. 2. New & Noteworthy are new Catalog Items available. You'll be able to add to this list in a later module. Page 10
Select Catalog In the Catalog tab you'll see a list of items that are available for requests. 1. Click Catalog 2. Request the "Small Linux (dp)" Note: (dp) indicates this VM will be provisioned with EMC data protection. Page 11
Choose a Data Protection policy 1. Scroll down to display the EMC Data Protection Policy 2. Select Rainpole_Bronze 3. Click Submit 4. Click OK when the request is made. Page 12
Check on the Request 1. In vrealize Automation click on the Requests tab 2. Click on the Refresh icon 3. Ensure the Small Linux (dp) VM was provisioned successfully Page 13
Select the new VM 1. Click on Items 2. Locate the most recent VM created with the Linux Penguin Icon. The number should be greater than 16 and created today. 3. Click on the link hol-dev-nn Page 14
Select Run data protection As part of the EMC Plugin for vrealize Automation deployment additional actions items related to data protection are added. They all have the EMC icon. 1. To run a backup Click on Run data protection Page 15
Select the policy and submit backup 1. Select the Rainpole_Bronze backup policy 2. Click Submit 3. Click OK once the request is submitted Page 16
Monitor Request 1. Click on the Requests tab 2. You'll notice the VM is now be being protected. Launch EMC Avamar GUI While the VM is being backed up lets login to EMC Avamar From the desktop double click on the Avamar Icon Page 17
Login to Avamar 1. Select the server: ave-01a.corp.local 2. Password: VMware1 3. Click Login Page 18
Monitor backup in Avamar 1. Click on Activity Page 19
Avamar Activity Window 1. In the Avamar Activity window you'll see the status of the backup. 2. Click Refresh in the upper right hand corner. 3. Until the backup is Completed Page 20
Back into vrealize Automation, verify the request is Successful 1. From the taskbar Click on vrealize Automation 2. Click Refresh 3. Verify Status is Successful Page 21
Optionally run another backup Nice work running the backup and monitoring the status. Optionally you can run another backup from the Item Details > Actions > Run data protection Or you can proceed with the restore in the next part of the module. Page 22
Restore the VM In this part of the module we'll now do a restore of the VM using the EMC Plugin for vrealize Automation. The cool part about this feature is it can bring down the VM prior to the restore and power it back up afterwards. This eliminates the requirement to contact virtualization admins. Lets do a Restore... 1. In vrealize Automation Click on Items 2. Click once to focus on the hol-dev-nn VM (the one that was created in the previous module) 3. Select the Actions dropdown 4. Select Restore data Page 23
Start the restore... 1. Select the latest backup 2. Keep defaults to Power off before restore and Power on afterwards. 3. Click Submit 4. Click OK when the request is submitted Page 24
Monitor the restore... 1. in vrealize Automation Click on Requests 2. Click on Refresh until the status is Successful Here is why the restore completed quickly: EMC Avamar Engineering worked with VMware to implement change block tracking (CBT) for backup and restore of virtual machines. This allows Avamar to query VMware on what blocks have changed since the last backup, also the same for in-place restore. Avamar queried VMware using CBT and found a very small number of blocks changed. This meant Avamar did not need to restore the entire VM, only the changes made during the backup. Page 25
Verify the VM restore 1. Click on Items 2. Click on the Linux hol-dev-nn link Verify your VM is On and Open the console 1. Verify status is On 2. Connect to Remote Console Page 26
Login to linux host 1. The console opens in a new browser tab 2. Username: root Password: VMware1! 3. Type in date Close the console window Page 27
Conclusion In this module as a tenant user you performed the following: Provisioned your own VM with EMC Data Protection Ran one or more backups. Continuing with vrealize Automation you ran a in-place restore of your VM. Page 28
Module 2 - Tenant user backup and file level restore (30 minutes) Page 29
Setup for file level restore In this module we'll be using more of the features of EMC Data Protection for VMware. Now we'll connect to a Windows 2012 system, Update a text file, Perform a VMware image backup and run a file level restore. If necessary Login to vrealize Automation 1. Click on a New Tab 2. Click on the vrealize Automation bookmark. 3. Username: devuser@corp.local 4. Password: VMware1! 5. Login Page 30
Bring up the Items list 1. Click on Itemsin vrealize Automation 2. Locate and click on the link for the Windows system hol-dev-06 Connect by using RDP 1. Ensure the status is On 2. Connect by Using RDP Page 31
From the taskbar on the Windows 2012 VM Launch Windows File Explorer 1. Launch the Windows File Explorer Open Documents 1. Open the Documents folder Edit the Hands On Lab text file 1. Double Click on the file hol-prt-1761_textfile Page 32
Append today's date 1. Add todays date in the file Save the file 1. Select File 2. Save 3. Close Page 33
Running backups from hol-dev-06 In this part of the module we'll be running backups via vrealize Automation from the provisioned Windows 2012 VM: hol-dev-06 Launch Internet Explorer 1. Launch IE from the Task Bar Connect to vrealize Automation 1. In the Favorites Bar select vrealize Automation vra Login Credentials 1. Username/Password: devuser@corp.local/vmware1! 2. Login Page 34
Locate hol-dev-06 1. From the Home tab click on the link for hol-dev-06 Page 35
Run data protection 1. Select Run data protectionfrom the Actions: menu on the right. Page 36
Submit the backup 1. Select Rainpole_Platinum for the policy which retains the backup for a year. 2. Click Submit 3. Click OK when request submitted. Page 37
Monitor Backup progress 1. Click on Requests 2. Monitor the Run data protection request 3. Periodically Refresh 4. Until the status is Successful Note: The backup will take a few minutes. How are you doing? Page 38
File Level Restore Now comes the fun part of the module. We've run a full image backup of the Windows VM. With Avamar technology we're able to browse the individual items that were backed up and select one or more of them for restore. There's no additional overhead of cataloging because the Avamar solution figures it out as its browsing the tree of items. Select the VM hol-dev-06 1. Click on Items 2. Click on hol-dev-06 link. Page 39
Select File level restore 1. Select File level restore Page 40
Select the most recent backup 1. Select the most recent backup 2. Click Next Page 41
Launch the File Level Restore Web Interface 1. Click on the generated URL to launch the File Level Restore interface. Page 42
Login to FLR interface 1. Username: administrator 2. Password: VMware1! 3. Login Using the FLR interface Note: When using the FLR interface use a Single Click to browse the item, Double click to select the item. Page 43
Select the backup 1. Single Click on the backup to browse Page 44
Select the Disk 1. Single Click for [Disk#1] Page 45
Select Users This opens up the C:\ of the system. 1. Scroll down and 2. Single Click for Users Page 46
Select devuser 1. Single Click for devuser Page 47
Select Documents 1. Single Click for Documents Page 48
Select the file for restore Now you should see the hol-prt-1671_textfile.txt file. 1. Double click on the file hol-prt-1671_textfile.txt 2. Notice it shows up in the list of Selected Items 3. Click Next Page 49
Restore Options Now we'll be setting the destination for the restore: 1. Single Click for the C:drive Page 50
Select restore directory 1. Single Click on the restore directory 2. Click Finish to start the restore. 3. On the following Restore Confirmation click Yes Page 51
Monitor the restore 1. On the bottom right hand side click on the triangle to view the restore request. 2. Continue to click refresh to see the restore status 3. When the Green checkbox appears the restore has completed. Page 52
View the restored file 1. On the taskbar click on Windows File Explorer 2. Navigate to C:\restore 3. Double click on the restored file hol-prt-1671_textfile.txt Page 53
Contents of file 1. Note the date of the file should match what you set before the backup. This is a sample of what the output would look like. Close the RDP session 1. Go ahead and close the RDP session. Page 54
Logout from devuser 1. Click on logout to set up the next lab. Page 55
Conclusion As you can see the file level restore process is easy and quick. In the EMC plugin for vrealize Automation we provide you the URL to directly access the backup for restore. Then launching the file level restore web based user interface you can navigate and locate the files or directories for restore. This requires no intervention from the virtualization admins. Truly self-service. Page 56
Module 3 - Cloud and Data Protection Admin operations (30 minutes) Page 57
As a cloud/data protection admin enable data protection for new blueprints The goal of this module is to show you as a cloud/data protection administrator how easy it is to enable data protection for new blueprints in vra. This way users can manage their own data protection during provisioning as new applications are available and new tenants are created. Page 58
In Chrome login as devmgr a data protection admin The devmgr user has the entitlement as a data protection admin for the Rainpole Developers business group. 1. In Chrome click on vrealize Automation on the bookmarks bar 2. Username: devmgr@corp.local 3. Password: VMware1! 4. Login Page 59
Navigate to Blueprints 1. Click on Infrastructure 2. Click on Blueprints Page 60
Click on Blueprints 1. Click on Blueprints Page 61
New Blueprint 1. New Blueprint 2. Virtual 3. vsphere (vcenter) Page 62
Copy from existing blueprint 1. Copy from the Small Linux blueprint Page 63
Set blueprint information 1. Set name to Linux S1 2. Click OK Page 64
Publish the blueprint 1. Hover over Linux S1 with the mouse. 2. and select Publish Page 65
Confirm Publish 1. Click OK to confirm and publish Catalog Management 1. Click on Administration 2. Click on Catalog Management to manage the Catalog Items Page 66
Navigate to Catalog Items 1. Click on Catalog Items Page 67
Configure the new Catalog Item 1. Click on Linux S1 to configure the catalog item Page 68
Set the Icon 1. Click on Browse... to locate the Icon file. Page 69
Icon pathname 1. Icon: C:\Documents\Linux.png 2. Click: Open Page 70
Finalizing the Catalog Item 1. Scroll down to activate the catalog item 2. Preview the new Icon 3. Set status to Active 4. Set Service: Infrastructure 5. Check New and noteworthy 6. Click Update Page 71
View the new item on home page 1. in vrealize Automation Click on Home 2. In the New & Noteworthy section you'll see the new Linux S1 catalog item. In the next part of the lab we'll provision it... Page 72
Provision and backup your new VM In this part of the module you will be provisioning a new VM from the Linux S1 catalog item, adding protection and running a backup. Request the new VM 1. Click on Linux S1 Page 73
Review Catalog Item Details Select Request Page 74
Select data protection policy 1. Scroll Down to fill in the following fields: 2. Fill in a brief description 3. Enter in a Reason for the request 4. Click Submit 5. Click OK when request submitted Page 75
Monitor the request 1. Click on the Requests tab 2. Click on Refresh 3. Until the VM provision is Successful Page 76
Select the new VM 1. Click on Items 2. Select the new VM Page 77
Adding data protection In a previous module we provisioned a VM with data protection. But say in this instance there were some apps installed and configured. Now can proceed to protect the VM. 1. Click on Add data protection Page 78
Selecting protection policies Note during the configuration of the EMC Plugin for vrealize Automation we configured a build profile that will query Avamar on the data protection policies for this tenant. This allows different schedules and retentions per tenant. In this lab we've created 4 policies to choose from for the Rainpole tenant. 1. Select both Rainpole_Bronze & Rainpole_Gold 2. Click Submit 3. Click OK when the request is submitted. Page 79
Monitor the request 1. Click on the Requests tab 2. Click on Refresh 3. Until the Add data protection is Successful Page 80
Select Items 1. Select Items 2. Click on the link for the new VM: hol-dev-nn Page 81
Select Run data protection 1. Move the scroll bar down 2. Select Run data protection Page 82
Submit the request for backup 1. Select Rainpole_Gold 2. Click on Submit 3. Click OK Page 83
Ensure the backup is In Progress 1. Click on Requests 2. The most recent VM backup should be In Progress If necessary Login to Avamar While the VM is being backed up lets login to EMC Avamar From the desktop double click on the Avamar Icon Page 84
If necessary provide Avamar Credentials 1. Select the server: ave-01a.corp.local 2. Password: VMware1 3. Click Login Page 85
Monitor the backup in Avamar 1. From the toolbar bring up the Avamar GUI 2. Click on Activity Page 86
Wait for backup to complete 1. Monitor the first row in the list for your backup 2. Click Refresh 3. Wait for it to complete Page 87
Verify vra is notified backup as Successful 1. From the taskbar Click on the vrealize Automation 2. Ensure the backup is Successful Page 88
Conclusion In this module we've shown you as a Cloud or Data Protection admin you can easily create new blueprints and wire them up immediately for data protection for your tenant users. Page 89
Module 4 - Admin restore to an alternate location (30 minutes) Page 90
As a cloud/data protection admin perform a restore to an alternate destination In this module we'll be performing an advanced out of place restore of a VM. This is done as a cloud or data protection admin via vrealize Automation so that you're able to have more granularity of destination location such as: cluster, datastore, resource pool and VM folder. Page 91
If necessary login as a data protection manager The devmgr user has the entitlement as a data protection admin for the Rainpole Developers business group. 1. In Chrome click on vrealize Automation on the bookmarks bar 2. Username: devmgr@corp.local 3. Password: VMware1! 4. Login Page 92
Navigate to Items 1. Click on Items 2. In the Owned by: Select Rainpole Developers from the pulldown menu. Page 93
Select a VM from devuser 1. Expand the Owner column so that you can view the Owner names 2. Click on the VM hol-dev-16 from devuser (Development User) Page 94
Initiate Advanced restore to new 1. Select Advanced restore to new Page 95
Advanced restore to new options Select the following restore options: 1. Select a recent 1.0GB backup. 2. The new VM name has hol-dev-16_restore<date> appended. 3. This is the blueprint associated with the VM when it was provisioned. 4. This is the vra reservation. 5. Datastore. 6. Resource Pool 7. The VM folder, Lets change this to Discovered virtual machine 8. Click on Submit to start the restore 9. Click OK once the request submitted successfully. Page 96
Monitor the restore 1. Click on Requests 2. Click on Refresh until the restore is Successful Page 97
Restore has completed. 1. After a few minutes the restore is Successful. Page 98
Analyze the restored VM In this part of the module we'll now analyze the restored VM in vra. Power it up and login. Locating the VM restored. As part of post processing of the VM the EMC Plugin for vrealize Automation will import it into vra and assign it back to the owner of the original VM. 1. Click on the Items tab 2. Expand the Name to locate the newly restored VM 3. Click on Refresh until the newly restored VM shows up in the list. 4. Notice the owner is now Development User (devuser) 5. Click on VM hol-dev-16_restored20... Page 99
Item Details Reviewing the Items Detailed Page: 1. As mentioned before the VM was imported into vra and the ownership was set to devuser. 2. All the original settings are applied. 3. Power On the system. 4. Click Submit to confirm Power On, click OK to confirm Page 100
Monitoring the request 1. Click on the Requests tab 2. Refresh 3. The VM boots quickly, but will need a minute to allow console access. Page 101
Re-establish Item Details 1. Click on Items 2. Items 3. Click Refresh until the VM is On 4. Then click on hol-dev-16_restored... Page 102
Connect to the console 1. Connect to Remote Console 2. You may need to refresh the page for the action to appear. Page 103
Login to the restored VM. 1. The console is displayed in a new tab 2. Login/Password: root/vmware1! 3. Type in date Close the console Page 104
Conclusion As you can see you're able to perform alternate location restores from within vrealize Automation. The innovation of the plugin is not only the ability to selectively choose the location, but also the VM is imported back into vrealize Automation and assigned back to the original owner. Page 105
Conclusion Page 106
Conclusion What have we learned in this lab: 1. In Module 1 you've seen how simple it was for a tenant user to perform their own backup and restore 2. In Module 2 we showed the ease of use of file level restore after performing a VMware image backup. 3. In Module 3 you were able to create a new blueprint for provisioning a VM with protection. 4. In Module 4 We wrapped up the lab by performing an advanced out of place restore. For more information about EMC Data Protection products visit: http://www.emc.com http://www.emc.com/data-protection/avamar.htm http://www.emc.com/data-protection/data-protection-suite/index.htm Page 107
Conclusion Thank you for participating in the VMware Hands-on Labs. Be sure to visit http://hol.vmware.com/ to continue your lab experience online. Lab SKU: Version: 20151005-062424 Page 108