I had to capture this in a blog as soon as possible so this article might be rough. I just successfully deployed a Linux VM from a VMM Template using an Orchestrator Runbook. This might sound simple, but I couldn’t find help online as Microsoft’s documentation lacks some important details.
I’ll document how to setup the Linux VMM Template in another post. For now I’ll just cover the Orchestrator Runbook. For the Orchestrator VMM Activities I’m using the SC 2012 Virtual Machine Manager integration pack.
- Create a new Runbook in Orchestrator
- Add the Initialize Data (from Runbook Control) and Create VM From Template (from SC 2012 Virtual Machine Manager) activities.
- To the Initialize Data activity, add the following parameters:
- destinationType (Host|Cloud)
- destinationHost (FQDN)
- vmName
- Within the Create VM From Template activity: If your SC 2012 Virtual Machine Manager integration pack is configured correctly (pointed to the service), open the Create VM From Template activity and select the correct VMM Configuration. Fill out the activity as follows:
- Destination Type: Select destinationType (Host|Cloud) from the databus.
- Destination: Select destinationHost (FQDN) from the databus.
- Path: C:\ProgramData\Microsoft\windows\hyper-v\Virtual Machines\
- VM Name: Select vmName from the databus.
- Source Template Name: Select the Linux VM Template from the VMM Library.
- Cloud Capability Profile: Select appropriately.
- Click on Optional Properties and add and fill out the following: Computer Name, Guest OS Profile, Hardware Profile, Linux Administrator SSH Key File, Linux Domain Name, Operating System, Start Action, Stop Action, Time Zone.
- That should do it. Run the Runbook and note any errors. Add additional activities to the Runbook, such as Get VM and Start VM to complete the Runbook.