How to Create a Virtual Machine from a Template
Aplica-se a: Virtual Machine Manager 2008, Virtual Machine Manager 2008 R2, Virtual Machine Manager 2008 R2 SP1
This topic describes how to create a virtual machine from a virtual machine template.
Considerations
You cannot change the system disk or startup disk configuration.
Templates are database objects that are displayed in Library view by clicking Library Servers in the navigation pane. Templates are displayed in the VMs and Templates folder.
Requirements
The virtual hard disk must have a supported operating system installed. For more information, see Supported Operating Systems for Virtual Machines.
The Administrator password on the virtual hard disk should be blank as part of the Sysprep process. However, the Administrator password for the guest operating system profile does not have to be blank.
For customized templates, the operating system on the virtual hard disk must have been prepared by removing computer identity information. For Windows operating systems, you can prepare the virtual hard disk by using the Sysprep tool.
Dica
Optionally, you can use a non-customized template without an operating system profile.
Procedure
To create a virtual machine from a template:
In the Virtual Machine Manager Administrator Console, in Virtual Machines view, click New virtual machine.
Complete the New Virtual Machine Wizard.
Wizard Page | Action |
---|---|
Virtual Machine Identity |
Configure the following options:
|
Configure Hardware |
To configure additional hardware for the virtual machine, use the following procedures:
|
Guest Operating System (for customizable templates only) |
Configure identity information, administrative credentials, and user access to computers based on the template.
|
Select Destination |
When creating a virtual machine from a template, you must choose the Place the virtual machine on a host option. |
Select Host |
Review the rating for each host to determine the most suitable host on which to deploy this virtual machine. Dica If many hosts are listed, you can use the Host group, Look for, or Group by fields to display a smaller set of potential hosts. All hosts that are available for placement are given a rating of 0-5 stars based on their suitability to host the virtual machine. The host ratings are based on the virtual machine's hardware and resource requirements and expected resource usage. They are also based on placement settings that you can customize for VMM or for individual virtual machine deployments. The ratings are recommendations. You can select any host that has the required disk space and memory available. For more information about how VMM rates hosts, see How Virtual Machine Manager Rates Hosts. Importante In VMM 2008 R2, for hosts that are running Windows Server 2008 R2 or for ESX Server hosts, the ratings that first appear on the Select Host wizard page are based on a preliminary evaluation by VMM. To see the host rating based on a more thorough evaluation, you must select the host by clicking it.
|
Select Path |
Accept the default virtual machine path on the host to store the files associated with this virtual machine. You can also click the down arrow to select a different path, or click Browse to specify a different path on the host. You can also choose the following options:
The wizard will continue with the Summary page. |
Select Networks |
Attach the physical network adapters to either Not Connected or to any of the virtual networks on the selected host. |
Additional Properties |
On the Additional Properties page, accept the default settings, or modify these settings as described in How to Configure Automatic Start and Stop Actions for a Virtual Machine |
Summary |
Review the configuration settings. To change settings, click Previous. Optionally, click View Script to view (and copy) the Windows PowerShell script that runs this wizard and performs the conversion. All administrative tasks in VMM can be scripted or performed at the command line. For more information, see Windows PowerShell Scripting in Virtual Machine Manager 2008 (https://go.microsoft.com/fwlink/?LinkId=110911). Optionally, select the Start the virtual machine after deploying it on the host check box. In Jobs view, monitor the progress of job as the new virtual machine is created and confirm that the virtual machine is created successfully. If the job fails, review the error message at the bottom of the Jobs pane for information about the cause of the failure and the recommended action to resolve the issue. |