• No results found

Configuring Process Automation in System Center

In document 20414B ENG TrainerHandbook (Page 180-183)

Lab: Planning and Implementing an Administration Solution for Virtualization

Exercise 1: Configuring Process Automation in System Center

Scenario

The development administration team has installed the Orchestrator Console and would like you to help configure it for creating workflows that will automate virtual machine deployment.

The main tasks for this exercise are as follows:

1. Install and Configure System Center Integration Packs 2. Configure Automation in Orchestrator

Task 1: Install and Configure System Center Integration Packs Install the System Center Integration Pack for VMM

1. On LON-DC1, from the task bar, click File Manager.

2. In File Manager, browse to E:\Labfiles\Module5.

3. Double-click System_Center_2012_Orchestrator_Integration_Packs.EXE. Click OK and then click OK again to close the Extraction complete message.

4. Close File Explorer.

5. On LON-OR1, move the mouse to the bottom left corner until the Start icon appears, click the Start icon, and then when the Start page appears, click Deployment Manager.

6. Using the Orchestrator Deployment Manager Console, register and deploy the Virtual Machine Manager Integration Pack, which is located in

\\lon-dc1\Labfiles\Module5\SC2012_Virtual_Machine_Manager_Integration_Pack.oip.

7. Deploy the pack to LON-OR1.

8. Review the Log Entries, and then close the Orchestrator Deployment Manager.

Set the Windows PowerShell execution policy to RemoteSigned

1. On LON-OR1, on the task bar, right-click Windows PowerShell, and then under Tasks, click Run as Administrator.

2. At the Windows PowerShell prompt, type set-executionpolicy remotesigned, press Enter, type Y, and then press Enter.

3. Close the Windows PowerShell window.

4. On LON-VMM1, on the task bar, right-click Windows PowerShell, and then under Tasks, click Run as Administrator.

5. At the Windows PowerShell prompt, type set-executionpolicy remotesigned, press Enter, type Y, and then press Enter.

6. Close the Windows PowerShell window.

Enabled Remote Management Trusted Hosts

1. On LON-OR1, move the mouse to the bottom left of the screen, the Start icon appears, right-click the Start icon, and then click Run. On the Run page, in the Open field, type gpedit.msc, and then click OK.

2. On the left hand side, under Local Computer Policy\Computer Configuration, click to expand Administrative Templates, and then double-click Windows Components, and double-click Windows Remote Management (WinRM).

3. Click WinRM Client, and on the right, under WinRM Client, double-click Trusted Hosts.

MCT USE ONL Y. STUDENT USE PROHIBITED

Implementing an Advanced Server Infrastructure 5-23

4. On the Trusted Hosts page, click Enabled, and in the TrustedHostList field, type LON-VMM1, and then click OK.

5. Close the Local Group Policy editor.

Configure the System Center Integration Pack for VMM

1. On LON-OR1, click to the Start screen, and then click Runbook Designer.

2. On the menu at the top, click Options, and then click SC 2012 Virtual Machine Manager.

3. On the Configurations page, click Add, and on the Add Configuration page, in the Name field, type LON-VMM1, and then click the browse button.

4. On the Item Selection page, click System Center Virtual Machine Manager, and then click OK.

5. On the Add Configuration page, add the following details:

VMM Administrator Console = LON-VMM1

VMM Server = LON-VMM1

User = Adatum\Administrator

• Domain: delete the text

Password = Pa$$w0rd

Authentication Type (Remote only) = Negotiate

6. Click OK, and then on the Configurations page, click Finish.

 Task 2: Configure Automation in Orchestrator Create a basic runbook

1. On LON-OR1, move the mouse to the bottom left corner until the Start icon appears, click the Start icon, and then when the Windows user interface appears, click Runbook Designer.

2. On the left, in the Connections pane, right-click Runbooks, click New, and then click Folder. Press the Delete key, type 20414 Runbooks, and then press Enter.

3. Right-click the 20414 Runbooks folder, click New, click Runbook, and at the top of the central pane, right-click New Runbook, click Rename, click Yes to confirm the check-out of this runbook, type VMM Library Monitor, and then press Enter.

4. On the right-hand pane under Activities, expand File Management, and then click and drag the Monitor Folder activity to the center of the central pane.

5. Right-click the Monitor Folder activity, click Rename, and then type VMM Library Monitor. Press Enter.

6. Right-click the VMM Library Monitor, click Properties, and on the left, click General. On the General Information page, in the Description field, type This Runbook monitors the VMM library for new virtual hard disks.

7. Click Details, and in the folder to monitor section, in the Path field, type \\LON-VMM1\MSSCVMMLibrary, and then click Include sub-folders.

8. In the File Filters section, click Add, and on the Filter Settings page, click the Name drop-down list box, click File Name, and in the Value field, type *.vhd, and then click OK.

9. On the left, click Triggers, and in the Trigger if section, select the Number of files is: check box, click the Number of files is: drop-down list box, select greater than, and then in the greater than field, 0.

MCT USE ONL Y. STUDENT USE PROHIBITED

5-24 Planning and Implementing a Virtualization Administration Solution

10. Click Authentication, and in the User name field, type Adatum\Administrator, and in the Password field, type Pa$$w0rd, and then click Finish.

11. Under Activities, click Notification, and then click and drag the Send Event Log Message activity to the central pane and to the right of the VMM Library Monitor activity.

12. Place the mouse pointer over the VMM Library Monitor activity, and then a small arrow should appear to the right. Place the mouse pointer over the arrow, and then the mouse pointer should change to a cross. Click the arrow, and then drag it to the Send Event Log Message. A link with an arrow should now appear between the two activities.

13. Right-click the arrow between the two activities, click Properties, and when the Link Properties page appears, review the filter, and then click Finish.

14. Right-click the Send Event Log Message, click Properties, and on the Details page, in the Properties section, in the Computer field, type LON-OR1, and then in the Message field, type A virtual hard disk file was created or updated in the LON-VMM1 library. In the Severity section, click Warning, and then click Finish.

15. On the ribbon, click Check In. On the ribbon, click Run.

16. On the Windows task bar, click the File Explorer icon, and in the address bar field, type \\lon-vmm1\MSSCVMMLibrary\VHDs.

17. In the ribbon of VHDs window, click View, select the checkbox next to File name extensions.

18. Right-click any of the Blank Disk – Large.vhd files, click Copy, and then right-click an empty space in the File Explorer window, click Paste, and a new file is created called Blank Disk – Large – Copy.vhd.

19. Switch to the Start page, type Event, and then click Event Viewer. In the center, in the Summary of Administrative Events pane, expand Warning, and then you should see there is an Event ID with the ID of 1 and a Source of Orchestrator Runbook. Double-click Orchestrator event, and then review the event.

20. Close the Event Viewer, and then close the File Explorer window.

21. In the Runbook Designer, on the ribbon, click Stop, and then on the ribbon, click Orchestration Console. Review the Orchestration Console, and then in the Summary under Instance Statistics, you should see a Success.

22. Close the Orchestration Console.

Create a basic runbook by using VMM activities

1. In the Orchestrator Runbook Designer, in the Connections pane, expand Runbooks, right-click the 20414 Runbooks folder, click New, click Runbook, and at the top of the central pane, right-click New Runbook, click Rename, click Yes to confirm the check-out of this runbook, type VM Checkpoint, and then press Enter.

2. Under Activities, click SC 2012 Virtual Machine Manager, click and drag the Shut Down VM activity to the central workspace, and then click and drag the Create CheckPoint activity to the central workspace, placing it to the right of ShutDown VM activity.

3. Click and drag the Start VM activity to the central workspace, placing it to the right of the Create CheckPoint activity.

4. Place the mouse pointer over the Shut Down VM activity, and then when a small arrow appears to the right, place the mouse pointer over the arrow, and the mouse pointer should change to a cross. Click the arrow, and then drag it to Create CheckPoint. A link with an arrow should appear between the two activities.

MCT USE ONL Y. STUDENT USE PROHIBITED

Implementing an Advanced Server Infrastructure 5-25

5. Repeat the previous step, this time creating a link between the Create CheckPoint activity and the Start VM activity.

6. Right-click the Shut Down VM activity, click Properties, and on the Properties page, in the Configuration section, click … next to the Name field. When the Item Selection page opens, click LON-VMM1, and then click OK.

7. In the Properties section, click in the VM ID field, and then click … to browse, the VM ID page options, click the ID that begins (TOR-WEB1.Adatum.com), click OK, and then click Finish.

8. Right-click the Create Checkpoint activity, click Properties, and on the Properties page, in the Configuration section, click … next to the Name field. When the Item Selection page opens, click LON-VMM1, and then click OK.

9. In the Properties section, click in the VM ID field, click … to browse the VM ID page options, click the ID that begins (TOR-WEB1.Adatum.com), click OK.

10. Click Optional Properties, and then on the Add/Remove Property page, click Description. Click

>>, click Name, click >>, click OK, and in the Properties section, in the Description field, type Initial Web service VM checkpoint, and then in the Name field, type Starting Image, and then click Finish.

11. Right-click the Start VM activity, click Properties, and then on the Properties page, in the Configuration section, click … next to the Name field. When the Item Selection page opens, click LON-VMM1, and then click OK.

12. In the Properties section, click in the VM ID field, and then click … to browse, the VM ID page options, click the ID that begins (TOR-WEB1.Adatum.com), click OK, and then click Finish.

13. On LON-OR1, in the Runbook Designer console, on theribbon click Check In.

14. On LON-VMM1, on the taskbar, click Virtual Machine Manager Console.

15. In the Connect to Server dialog box, ensure that the Use current Microsoft Windows session identity check box is selected, and then click Connect. The VMM console opens.

16. Click the VMs and Service workspace.

17. Confirm that the TOR-WEB1 virtual machine is running. If it is not, right-click TOR-WEB1, click Power On, and then wait until the virtual machine is started.

18. From the Orchestrator Runbook Designer ribbon, click Run.

19. In the Virtual Machine Manager Console, the TOR-WEB1 server should now shut down. Create the checkpoint, and then start it again. When the TOR-WEB1 VM starts, click to select TOR-WEB1, and then on the ribbon, click Manage Checkpoints. You should see the Starting Image Checkpoint. Click OK, and then close the Virtual Machine Manager Console.

20. On LON-OR1, close the Orchestrator Runbook Designer.

Results: After this lab, you will have installed the Virtual Machine Manager Integrations pack, created a basic runbook in the Orchestrator Runbook Designer, and reviewed the Orchestrator Web Console.

Exercise 2: Planning Administrative Delegation and Self-Service in System

In document 20414B ENG TrainerHandbook (Page 180-183)