How to Create a Virtual Machine Template in VMM 2012
there is a several ways you can create a template in Vmm2012 you can place a preconfigured VHD in the library share ,select a preexisting VM in the library or on a host
we will see how to create a template from a Vm on a host server
first open the VMM console lick and select the machine that we will need to make it a template
the same warring as the old VMM
now the create a template wizard appears
select the hardware profile (note that everything are dimmed ) if you need to change something cancel and change it in the Vm
in the operating system customization window we notice two major differences
the first is the admin password window
the second is the roles and feature (windows 2008 R2 or above )
select the library server
select the location on the library
and we done
in case you face this error
The folder name c:\windows 2008R2 with sp1\windows 2008 R2 with sp1_disk_1.vhd is not valid on the VMM12.DEMOLAB.local server.
The directory name is invalid (0x8007010B)
Ensure that c:\windows 2008R2 with sp1\windows 2008 R2 with sp1_disk_1.vhd is a valid folder name, and then try the operation again.
try using the default library or double check the permissions
in case you get this error
The user name provided is not a valid local administrator user name for this operating system.
Provide a valid user name other than the built-in Administrator account name and then try the operation again.
go to the properties of the template and change the user name
Creating, Deploying, and Managing Services in VMM 2012
In VMM 2012, a service is a group of virtual machines that work together. By a creating service template in VMM 2012, you can deploy a multi-tier service, installing applications and configuring the operating system with Windows roles and features to support those applications. You can place a machine tier behind a network load balancer. After the service is deployed, you can scale the service out to deploy a new virtual machine instance for a tier. And you can use VMM 2012 to update applications and virtual machine configurations in place or through image-based servicing, in which new virtual machines are deployed.
VMM 2012 supports the deployment of virtual applications that have been sequenced by using the Server Application Virtualization (Server App-V) Sequencer. Application Frameworks resources – including the Server App-V Sequencer, Windows PowerShell cmdlets for Server App-V, a Server App-V client, and the Microsoft Web Deployment tool, and scripts that can be added to machine tier configurations to install the required Web Deployment tool and Server App-V client during service deployment – are added o the default library share when the VMM management server is deployed.
The service template stores machine tier definitions, hardware descriptions, operating system settings, application settings, and network configurations for a service. In VMM 2012, you can export service templates (and virtual machine templates) to an .XML file. Template exports can be used to back up your service and virtual machine configurations. If you have deployed multiple instances of VMM 2012, you can import a template into another VMM environment. VMM validates references to physical and logical resources during the template import, and allows you to update the references to resources that are available in the current environment.
a simple service that I will be using is to Deploy Virtual machine as a service
How to Create a Service Template in VMM 2012
go to library and select create service template
give it a name lets call it APP-V seq
this is the service designer
now we drag windows 2008R2 template to the white area in the middle please note the options in the bottom
now we add logical network
I have to say ITS super COOOOOLLLL
now we go to the properties of the windows to set the application and the network requirements
If you configure a virtual machine to obtain its IP address from a static IP address pool, you must also configure the virtual machine to use a static MAC address. You can either specify the MAC address manually or have VMM automatically assign a MAC address through the MAC address pool. When a static IP address is assigned, VMM needs to determine the MAC address before the virtual machine starts. VMM uses the MAC address to identify which network adapter to set the static IP address to. This is especially important if there is more than one network adapter on the virtual machine. If the MAC address is assigned dynamically through Hyper-V, VMM cannot identify which network adapter to set the static IP address to if there is more than one network adapter.
now the final results
next step we configure deployment
you will receive the following error if you did not join the machine to the domain
deploying applications as part of a service deployment require a valid domain
so in order to join our domain we need to do the following
- set a static IP (so it can communicate with our domain )
- set the domain username and password to join the domain in the template properties
so to set IP
next define the user name and password to join the domain
now this is the window we receive
VMM 2012 performs a placement check and then opens the Deploy Service window. If you are deploying the service as an administrator, the deployment map shows the target host group and the recommended host for each virtual machine instance in each machine tier. If you are deploying the service as a self-service user, the placement map shows the private cloud on which the service will be deployed.
when we click deploy we receive
and we done
to understand the service deployment a bit better this is the flow the service deployment is based on