UCS Director 5.4 Windows/Linux CSV Workflow Deployment

Similar documents
Managing VMware vcenter Site Recovery Manager

Creating Application Containers

Creating Application Containers

Multiple Disk VM Provisioning

Cisco UCS Director Baremetal Agent Installation and Configuration Guide, Release 5.2

Cisco Virtual Application Container Services 2.0 Lab v1

Cisco VDS Service Broker Software Installation Guide for UCS Platforms

Overview of the Self-Service Portal

Using a Virtual Machine for Cisco IPICS on a Cisco UCS C-Series Server

Installing and Upgrading Cisco Network Registrar Virtual Appliance

Securing Containers Using a PNSC and a Cisco VSG

Cisco Prime Service Catalog Virtual Appliance Quick Start Guide 2

Managing ReadyClones

ECDS MDE 100XVB Installation Guide on ISR G2 UCS-E and VMWare vsphere Hypervisor (ESXi)

Installing Cisco WebEx Social

Installing and Configuring vcloud Connector

Securing Containers Using a PNSC and a Cisco VSG

Multiple Disk VM Provisioning

Installing and Configuring vcloud Connector

Cisco Prime Collaboration Deployment

Managing Virtual Data Centers

IaaS Integration for Multi- Machine Services. vrealize Automation 6.2

Managing the VM Lifecycle

Redhat OpenStack 5.0 and PLUMgrid OpenStack Networking Suite 2.0 Installation Hands-on lab guide

Installation of Cisco Business Edition 6000H/M

Orchestration Workflow Tasks for PXE Boot

KEMP360 Central - VMware vsphere. KEMP360 Central using VMware vsphere. Installation Guide

FileCruiser VM Quick Configuration Guide For Trial Version V1.0

IaaS Integration for Multi-Machine Services

UCS Director: Tenant Onboarding Cisco ACI & Microsoft HyperV. Dec. 2016

Deploying the Cisco Tetration Analytics Virtual Appliance in Microsoft Azure

Deploying Cisco UCS Central

Controller Installation

akkadian Provisioning Manager Express

Creating Workflows. Viewing the Task Library. Creating a Workflow. This chapter contains the following sections:

EventTracker: Virtual Appliance

EventTracker: Virtual Appliance

How to Deploy a Barracuda NG Vx using Barracuda NG Install on a VMware Hypervisor

Installing the Cisco Nexus 1000V Software Using ISO or OVA Files

IBM Single Sign On for Bluemix Version December Identity Bridge Configuration topics

VMware ESX ESXi and vsphere. Installation Guide

Virtual Appliance User s Guide

Preparing Virtual Machines for Cisco APIC-EM

Preparing Virtual Machines for Cisco APIC-EM

VMware vsphere 5.5: Install, Configure, Manage Lab Addendum. Lab 3: Configuring VMware ESXi

Installation Prerequisites

How to Deploy vcenter on the HX Data Platform

TCPWave DDI Virtual Machine Installation Guide

Configuring High Availability for VMware vcenter in RMS All-In-One Setup

UDP Director Virtual Edition Installation and Configuration Guide (for Stealthwatch System v6.9.0)

Managing System Administration Settings

HiveManager Virtual Appliance QuickStart

Deploying the Cisco ASA 1000V

Multi-Machine Guide vcloud Automation Center 5.2

Tenant Onboarding. Tenant Onboarding Overview. Tenant Onboarding with Virtual Data Centers

Creating Workflows. Viewing the Task Library. Creating a Workflow. This chapter contains the following sections:

FlexPod Infrastructure Automation. September 2016 SL10295 Version 1.0.0

Application Provisioning

Using the vcenter Orchestrator Plug-In for vcloud Director 1.0

Network Configuration for Cisco UCS Director Baremetal Agent

Cisco Mini ACI Fabric and Virtual APICs

vsphere Host Profiles 17 APR 2018 VMware vsphere 6.7 VMware ESXi 6.7 vcenter Server 6.7

vcloud Director Tenant Portal Guide 04 OCT 2018 vcloud Director 9.5


EventTracker: Virtual Appliance

Cisco Business Edition 7000 Installation Guide, Release 10.6

Installing Cisco MSE in a VMware Virtual Machine

Using the vcenter Orchestrator Plug-In for vcloud Director 5.5. vrealize Orchestrator 5.5

Installing Cisco Virtual Switch Update Manager

If you re not using VMware vsphere Client 4.1, your screens may vary. ITEM Example s Values Your Values

Quest VROOM Quick Setup Guide for Quest Rapid Recovery for Windows and Quest Foglight vapp Installers

Cisco Unified Communications Manager (CallManager) 11.5 Virtual Server Template (OVA)

Installing or Upgrading ANM Virtual Appliance

Smart Install in LMS CHAPTER

Managing Virtual Machines

Quick Start Guide for Vmware. Version 2.5 Vmware vsphere Instance

Migrating vrealize Automation 6.2 to 7.1

Deploying the Cisco Tetration Analytics Virtual


Customizing Workflow Components

Plexxi HCN Plexxi Connect Installation, Upgrade and Administration Guide Release 3.0.0

Quest VROOM Quick Setup Guide for Quest Rapid Recovery for Windows and Quest Foglight vapp Installers

Reset the Admin Password with the ExtraHop Rescue CD

VMware Adapter for SAP Landscape Management Installation Configuration and Administration Guide for VI Administrators

VMware Adapter for SAP Landscape Management Installation Configuration and Administration Guide for VI Administrators

Cisco Modeling Labs OVA Installation

MOVE AntiVirus page-level reference

Using the vrealize Orchestrator OpenStack Plug-In 2.0. Modified on 19 SEP 2017 vrealize Orchestrator 7.0

VMware vcloud Director Evaluator s Guide TECHNICAL WHITE PAPER

vrealize Suite Lifecycle Manager 1.0 Installation and Management vrealize Suite 2017

Configure the Cisco DNA Center Appliance

vrealize Suite Lifecycle Manager 1.1 Installation, Upgrade, and Management vrealize Suite 2017

KEMP 360 Central for vsphere. Installation Guide

Using the VMware vrealize Orchestrator Client

Archiware Pure Quick Start Guide

Cisco UCS Director Red Hat Enterprise KVM Management Guide, Release 6.0

VPN Solutions for Zerto Virtual Replication to Azure. IPSec Configuration Guide

Using vrealize Operations Tenant App as a Service Provider

Implementing Infoblox Data Connector 2.0

EMC ViPR Controller. Create a VM and Provision and RDM with ViPR Controller and VMware vrealize Automation. Version 2.

Transcription:

UCS Director 5.4 Windows/Linux CSV Workflow Deployment The purpose of this document is to illustrate the steps to implement the CSV Workflow that can be used for Windows or Linux VM deployments. The CSV File can contain a single VM or Multiple VMs. This CSV VM Deployment workflow is a modification to the VM Deployment with USER IP INPUT which can be found here: https://communities.cisco.com/docs/doc-56868. The original workflow was built on UCSD 5.2.0.1 this new workflow addresses some script changes to address going to UCSD 5.4. Other additional features include cleaning up/deleting the CSV file from /opt/infra/uploads/ when the workflow is complete, added vdc Template Input for the CSV Inputs, removed the second future workflow input and rearranged the CSV Inputs in the CSV File. For details on how and why this workflow works including the script itself can be found at the link above. Also included in this document are the steps to create a vdc and vdc Template and all of the policies needed to create them. Assumptions/Requirements You have a Single or Multi-Node Deployment of UCS Director 5.4. You have access to vcenter where your UCS Director has been deployed. You have existing Windows and Linux Templates in your vcenter and have been tested for Guest Customization. Useful Documents Cisco UCS Director Administration Guide, Release 5.4 Software/OS levels Listed below are the software and OS versions that were used for the testing and building this document. UCS Director 5.4 VMware 5.1 VMWare Windows Server 2008 R2 Enterprise Template VMware RHEL 6.2 Template

Table of Contents Table of Contents... 2 1. Perquisites - Create Virtual/Hypervisor Policies... 3 1.1. Add VMware Network Policy... 3 1.2. Add VMware Storage Policy... 9 1.3. Add Virtual Storage Catalog... 11 1.4. Add VMware Computing Policy... 13 1.5. Add VMware System Policy... 16 1.6. Add End User Self-Service Policy for VMware... 18 1.7. Add Virtual Data Center... 20 1.8. Add vdc Service Profile... 23 2. Create Standard Catalog item for Windows 2012... 25 3. Create Standard Catalog item for Linux... 30 4. Setup File Browser... 35 4.1. Download File Browser files and extract to local PC... 35 4.2. Upload fileupload.jar to UCS Director Primary Node... 36 4.3. Add fileupload.jar to run.sh file to load during boot up... 37 4.4. Import File Browser... 39 4.5. Execute File Browser Workflow... 41 4.6. Verify/Test File Browser is working... 43 5. Deploy CSV Workflow... 44 5.1. Download CSV Workflow... 44 5.2. Import CSV Workflow... 45 5.3. Configure CSV Workflow... 47 5.4. Create CSV File... 55 6. Execute Workflow... 56 7. Create Advanced Catalog item for CSV Workflow... 62 8. Test CSV Workflow... 66

1. Perquisites - Create Virtual/Hypervisor Policies Before Importing the Windows/Linux CSV workflow, we configure the following prerequisites. 1.1. Add VMware Network Policy Create a VMware Network Policy. From UCSD GUI, Navigate to Policies -> Virtual Hypervisor Policies -> Network -> VMware Network Policy -> select Add. You will notice a Default policy with errors. This policy was automatically created when we added the vcenter Virtual Account. We will delete this policy after we create the new one. Enter a Policy Name, Policy Description, drop down and select a Cloud Name(vCenter Virtual Account) and select + for VM Networks.

Enter a Name for the NIC Alias, select Show policy level portgroups check box, select Allow end user to override IP Address check box, drop down and select VMXNET3, click + to add Port Groups. Click Select for Port Group Name. Enter your Port Group name in the filter on the right to narrow down the results. Select one of your Port Groups from the list and then click Select. Note: This Port Group name is specifically named to work with the Windows/Linux CSV Workflow from the UCSD Communities Site.

Drop down and select Static for IP Address Type, drop down and select Inline IP Pool for IP Address Source, enter any IP Address for Static IP Pool, Enter a Subnet Mask, enter a Gateway IP Address for that subnet and click Submit. Note: The IP Address can literally be any IP Address because this will get overwritten by the workflow but you have to have something in these field as they are mandatory. Click OK.

Review and Click Submit. Click OK.

Review and click Submit. Click OK.

Delete the original Default Policy. Policies -> Virtual/Hypervisor Policies -> Network -> VMware Network Policy -> select the Default Policy -> click Delete. Click Delete. Click OK.

1.2. Add VMware Storage Policy Add Virtual Storage Policy. From UCSD GUI, Navigate to Policies -> Virtual Hypervisor Policies -> Storage -> VMware Storage Policy -> select Add. Enter a Policy Name, Policy Description, drop down and select your Cloud Name/vCenter, select Use Shared Data Store only, deselect Use Local Storage, deselect Use NFS, select Allow Resizing of Disk, leave everything else default and click Next.

On the Additional Disk Policies section, leave everything default and click Submit. Click OK. Delete the Default Storage Policy. Navigate to Policies -> Virtual Hypervisor Policies -> Storage -> VMware Storage Policy -> select the Default Storage Policy -> select Delete. Click Delete. Click OK.

1.3. Add Virtual Storage Catalog Add Virtual Storage Catalog. From UCSD GUI, Navigate to Policies -> Virtual Hypervisor Policies -> Storage -> Virtual Storage Catalog -> select Add. Enter a Catalog Name, optional Catalog Description, drop down and select your vcenter/cloud Name and click Next.

Enter a name for the Storage Entry Name, select the Storage Policy we created in the previous section and click Submit. Click OK.

1.4. Add VMware Computing Policy Add VMware Computing Policy. From UCSD GUI, Navigate to Policies -> Virtual Hypervisor Policies -> Computing -> VMware Computing Policy -> select Add. Enter a Policy Name, Policy Description, select your Cloud Name/vCenter Account, drop down and select Include Selected Clusters for Host Node/Cluster Scope and click Select for Selected Clusters. Select the cluster(s) you want to deploy VMs to and click Select.

Leave everything else default and click Submit. Click OK.

Delete the Default Computing Policy. Navigate to Policies -> Virtual Hypervisor Policies -> Computing -> VMware Computing Policy -> select the Default Computing Policy -> select Delete. Click Delete. Click OK.

1.5. Add VMware System Policy Add VMware System Policy. From UCSD GUI, Navigate to Policies -> Virtual Hypervisor Policies -> Service Delivery -> VMware System Policy -> select Add. Enter a Policy Name, Policy Description, ${VMNAME} for VM Name Template, select End User VM Name or VM Prefix, enter ${VMNAME} for Host Name Template, select the timezone where this vcenter resides, enter your domain name, drop down and select Windows and Linux for VM Image Type. Continued on next Page

Enter your Windows Product ID, License Owner Name, Organization, select Create a unique SID, enter the Administrator Password, select your timezone, select Workgroup and enter a Workgroup name and click Submit. Click OK.

1.6. Add End User Self-Service Policy for VMware Add an End User Self-Service Policy. From UCSD GUI, Navigate to Policies -> Virtual Hypervisor Policies -> Service Delivery -> End User Self-Service Policy -> select Add. Drop down and select VMware for Account type. Click Submit.

Enter a Policy Name, Policy Description, select all options and click Submit. Click OK.

1.7. Add Virtual Data Center Add a Virtual Data Center. From UCSD GUI, Navigate to Policies -> Virtual Hypervisor Policies -> Virtual Data Centers -> vdc -> select Add. Drop down and select VMware for Account Type. Click Submit.

Enter a vdc Name, vdc Description, drop down and select the Cloud Name/vCenter and click Select for Group. Find and select the Group Name you want and click Select.

Select all the Policies we created in the previous sections, including VMware All Buttons and click Add. Click OK.

1.8. Add vdc Service Profile Add vdc Service Profile. From UCSD GUI, Navigate to Policies -> Virtual Hypervisor Policies -> Virtual Data Centers -> vdc Service Profiles -> select Add. Enter a vdc Profile Name, vdc Description, drop down and select the Cloud Name/vCenter and click Select for Group. Find and select the Group Name you want and click Select.

Select all the Policies we created in the previous sections, including VMware All Buttons and click Add. Click OK.

2. Create Standard Catalog item for Windows 2012 Add Windows 2012 R2 Standard Catalog item. From UCSD GUI, Navigate to Policies -> Catalogs -> All User Groups (Should be selected by default) -> select Add. This standard catalog is used to select the VMware Windows 2012 R2 Template that will be used/cloned to create the Windows 2012 R2 VMs. This template must be created and available in vcenter. Drop down and select Standard for Catalog Type. Click Submit.

Enter a name for the Catalog Name, enter a description for Catalog Description, drop down and select an icon for Catalog Icon and click Select for Selected Groups. Enter your group name in the filter on the right and then select your group then click Select. Deselect Publish to end users and click Select for Image. Enter your Windows 2012 Template name in the filter on the right, select the template check box and click Select.

Review and click Next. Accept all the defaults and click Next.

Leave default and click Next. Leave default and click Next. Leave default and click Next.

Review and click Submit. Click OK.

3. Create Standard Catalog item for Linux Add a Linux Standard Catalog item. From UCSD GUI, Navigate to Policies -> Catalogs -> All User Groups (Should be selected by default) -> select Add. This standard catalog is used to select the VMware Linux Template that will be used/cloned to create the Linux VMs. This template must be created and available in vcenter. Drop down and select Standard for Catalog Type. Click Submit.

Enter a name for the Catalog Name, enter a description for Catalog Description, drop down and select an icon for Catalog Icon and click Select for Selected Groups. Enter your group name in the filter on the right and then select your group then click Select. Deselect Publish to end users and click Select for Image. Enter your Linux Template name in the filter on the right, select the template check box and click Select.

Review and click Next. Drop down and select Linus OS, accept all other defaults and click Next.

Leave default and click Next. Leave default and click Next. Leave default and click Next.

Review and click Submit. Click OK.

4. Setup File Browser In order to use the CSV File Upload, you will need to setup UCS Director to be able to browse for the CSV file on your local PC. 4.1. Download File Browser files and extract to local PC Download fileupload.zip and FileUpload.wfx.zip from the Cisco UCS Director Community site. Link to communities site: https://communities.cisco.com/docs/doc-60370 Download both fileupload.zip and FileUpload.wfx.zip to your local PC. Extract FileUpload.wfdx.zip to your local PC. Extract fileupload.zip to your local PC.

4.2. Upload fileupload.jar to UCS Director Primary Node Using WinSCP, upload the fileupload.jar to /opt/infra/inframgr on the UCSD Primary Node as root user account. SSH to the Primary Node to verify the fileupload.jar is in the /opt/infra/inframgr directory. enter the following command: ls -lr /opt/infra/inframgr grep fileupload

4.3. Add fileupload.jar to run.sh file to load during boot up SSH to the Primary Node using the root account. Use vi to edit run.sh to include fileupload.jar : vi /opt/infra/inframgr/run.sh Enter i for insert and cursor to the i in inframgr.jar and type fileupload.jar: Press esc, then enter :wq! to write the changes and quit vi editor verify the changes have been saved: cat /opt/infra/inframgr/run.sh Reboot the Primary Node to load the fileupload.jar file. During system startup, you should see a screen similar to the one below.

When the system is completely up, you will see the login screen as seen below.

4.4. Import File Browser Log into the UCS Director GUI and Navigate to Policies -> Orchestration -> Workflows -> Click Import. Click Upload. Select Click and select a file from your computer. Browse to the FileUpload.wfdx workflow and select Open.

You will see a status of the upload and then once complete you will see the following File Ready for use.. Click the x to close the window. You should see the following screen, click Next. Here you could leave everything default but I decided to create a new folder, File Browser, to place these workflows in and then click Import. Click OK for complete status.

4.5. Execute File Browser Workflow You should see the following workflows under the File Browser workflow folder. Execute the custom-workflow RegisterFileUploadInputType. It will register the new input type file upload. You can then use this type for file uploading. Right Click on the workflow and select Execute now. Select Submit.

Click Show Detail Status. Wait until you see a Complete status then click Close.

4.6. Verify/Test File Browser is working Execute the workflow FileUploadTask. Right Click on the FileUploadTask workflow and select Execute now. If you get the following screen, then you have successfully implemented the file browser workflow. Note: If your File Browser quits working, you may have to re-execute the custom-workflow RegisterFileUploadInputType.

5. Deploy CSV Workflow 5.1. Download CSV Workflow Download CSV VM (Windows Linux) Deployment.zip file from the UCS Director Communities Site to your local PC. The file can be found here: https://communities.cisco.com/docs/doc-63855 Extract the CSV VM (Windows Linux) Deployment.zip file.

5.2. Import CSV Workflow Log into the UCS Director GUI and Navigate to Policies -> Orchestration -> Workflows -> Click Import. Click Upload. Select Click and select a file from your computer. Browse and select CSV VM (Windows Linux) Deployment.wfdx then click Open.

Wait until you see File ready for use. then click the x in the top right corner to close the window. Review and click Next. Optional Select Import Workflows to Folder, enter a new folder name and click Import. Click OK.

5.3. Configure CSV Workflow Gather Rest API Access Key. Click on admin to open admin properties. Click Advanced and then select Copy Key Value. Close the window by pressing the x. Navigate to Policies -> Orchestration -> Workflows -> expand Sam Workflows -> select CSV VM Deployment v5 -> right click and select Workflow Designer. Click Edit Workflow Properties. Review and click Next.

Select vdc Input Label and then select the pencil to edit it. Choose any VDC from the Drop down. The CSV file will overwrite this so it isn t important but a valid one needs to be chosen. Click Submit. Click OK. Select Password Input Label and then the pencil to edit the UCSD Password.

Enter the UCSD Admin GUI password and click Submit. Click OK. Select Key Input Label and then the pencil to edit the UCSD Password. Paste the Key we copied earlier from the admin properties and click Submit.

Click OK. Choose Catalog and select the pencil to edit it. Select any valid Catalog and click Submit. The CSV input value will override this value. Click OK. Select VM_Owner and select the pencil to edit it.

Select any valid VM Owner and click Submit. The CSV input value will override this value. Click OK. Select VDC_Template and select the pencil to edit it. Select any valid vdc Template and click Submit. The CSV input value will override this value.

Click OK. Select rpassword and select the pencil to edit it. Enter the UCSD Root password and click Submit. Click OK.

Review and click Next. Leave default and click Submit. Click OK. Click Validate Workflow.

Click OK.

5.4. Create CSV File Open a new txt document and populate with the following fields: VM Name, Comment about VM, CPU, Memory, DiskSize, vdc, vdc Template, Catalog, IP,Netmask,Gateway,SecondaryNetwork(0,1),SecondaryIP,SecNetmask,SecGateway,VMOwner VM Name: Name of VM (Hostname) Comment: Comments CPUs: Number of CPUs Memory: Memory Size Disk Size: Disk Size in GB VDC: vdc Name VDC Template: vdc Template Catalog: Name of the Standard Catalog (Defines the OS) IP: IP address Netmas : Netmask Gatewa: Default Gateway Secondary Network FLAG: Either 0 if no 2nd Network, 1 to add 2nd NIC Secondary IP: IP address of 2nd NIC SecNetmask: Netmask of 2nd NIC 2nd Default Gateway: Default Gateway of 2nd nic (if real address is used, will override default gateway in Linux) normally use 127.0.0.1 VM Owner: Valid UCSD user Example contents of CSV file (One line per VM): vmname6,comment6,2,2048,20,operations-vdc2,vdc- Template2,RHEL6,192.168.40.75,255.255.255.0,192.168.40.1,0,0.0.0.0,255.255.255.0,127.0.0.1,operator vmname7,comment7,2,2048,20,operations-vdc2,vdc- Template2,RHEL6,192.168.40.76,255.255.255.0,192.168.40.1,0,0.0.0.0,255.255.255.0,127.0.0.1,operator Save the file as.txt. I saved mine as samcsvsinglevmv4.txt as you will see in the next section.

6. Execute Workflow Navigate to Policies -> Orchestration -> Workflows -> expand Sam Workflows -> select CSV VM Deployment v5 -> right click and select Execute now. Click Browse. Select the CSV File and then click Open.

Click Upload. Click OK. Click Submit.

Click Show Detail Status. Click the Log tab and the click Refresh. This will bring you to the end of the log. Once you see Waiting for Child Workflow to Finish, you can open a new tab to director and Navigate to the Child workflow service request to monitor the VM Build.

On a new tab in your browser, Navigate to Organizations -> Service Requests -> Service Requests -> click Refresh -> double click on the Service Request Create VM to see the details and status. Similarly to the Admin Workflow, you can select the Log tab and monitor the status or stay on the Workflow Status and wait until you see the status change to Complete, then click Close. Go back to the Admin Workflow Service Request to see its status.

Wait until you see the Complete Status and then click Close. Verify your VM was created in vcenter. Verify the CSV file samcsvsinglevmv4.txt has been deleted from /opt/infra/uploads on the Primary Node.

To delete/cleanup this test VM, Rollback both the Create VM request. To delete/cleanup this test VM, Rollback both the Admin Workflow request.

7. Create Advanced Catalog item for CSV Workflow Create an Advanced Catalog Item to call the CSV VM Deployment workflow. Navigate to Policies -> Catalogs -> Catalogs -> click Add. Select Advanced. Select Submit.

Enter a Catalog Name, Catalog Description, select a Catalog Icon, click Select for Selected Groups. Select the Group you want to see this item when they log into the portal. Click Select. Click + to add a Folder. Enter a Folder Name and click Add.

Click OK. Verify details and click Next. Click Select to select a Workflow. To narrow the results, enter CSV in the Filter on the right. Select the CSV VM Deployment workflow and click Select.

Verify and click Next. Verify details and click Submit. Click OK. Verify Folders.

8. Test CSV Workflow Use a different browser and log into UCS Director with a user in the NSS-Admin group. My ucsduser is in that group so I will use this account for the test. Double click All Data Centers folder to open it. Double click the CSV VM Deployment All DCs workflow to create a request (execute the workflow). Review and click Next.

Click Browse to browse for the CSV file. Browse and select the file then click Open. Click Upload. Click OK then click Next. Review and click Submit. Click OK.

Click the Services icon. You will see both the Admin Workflow and the Create VM In Progress. Double click on both workflows to monitor the status. You will notice the information is much less verbose than the admin sees. You can go back to the other browser where you are logged in as admin to see the details. Create VM Status.

Admin Workflow Status.

To delete/cleanup this test VM, Rollback Admin Workflow request. Select Skip user approval who initiated the Service Request and click Submit. Click OK.

To delete/cleanup this test VM, Rollback Create VM request. Select Skip user approval who initiated the Service Request and click Submit. Click OK.