Use the Virtual Machine Manager to quickly deploy Hyper-V
Network Administration - One of the benefits of virtualization is a copy-and-paste of a virtual machine copy (VM). If you need a new virtual machine, theoretically you just need to copy its file to another location. However, this simple process often lacks some other important steps that administrators need to take.
The tips in this article will show you how to quickly deploy virtual machines using the System Center Virtual Machine Manager (SCVMM) management program of Hyper-V and the steps needed to customize a pre-existing VM to Create a sample VM.
Quickly deploy virtual machines in Hyper-V with SCVMM
When it comes to creating a copy for a virtual machine, copy and paste action is only half of what you need to do. When you make a copy, you will have a copy of the source VM, but you still need to do some extra work to customize the virtual machine for your environment. Hyper-V and its SCVMM management technology are equipped with a function that automates the remaining half of this procedure. Although it is easy to get complicated at first, the end result will be the ability to quickly deploy new virtual machines through a few clicks. Here is a step-by-step introduction to how to use the Virtual Machine Manager to create and deploy virtual machines.
Step 1: Create a source virtual machine
Start, you need a source virtual machine. This virtual machine should be configured as you would with all other virtual machines, in all aspects such as applications, configurations, updates or other utilities you need. Similar to the Ghost application, the source virtual machine is an image used to create other virtual machines.
This is the 'backward' part of the VM deployment process: The protocol that Virtual Machine Manager uses to create a template from a source virtual machine will invalidate the virtual machine during execution. Therefore, before you start, you need to create a copy of this VM into your library and use the disabled original as the source VM. This is because SCVMM's use of Sysprep tool (a utility used in Windows operating system deployment) requires powering off during execution. SCVMM also does not support creating templates from Hyper-V virtual machines that have multiple checkpoints, so you need to delete checkpoints in virtual machines that you plan to use as a sample source.
Step 2: Create hardware profile and guest operating system
To create a sample VM, Virtual Machine Manager requires three things: the source machine, the hardware profile, and the guest operating profile. The hardware profile will outline the virtual machine hardware configured for what will become the deployed VM. The guest operating system profile will identify the operating system specific information. Finally, a source has to be created.
The first step in building a sample VM is to create a hardware profile. In the Library view, click the New Hardware Profile link and name the profile. Next, click the Hardware Settings tab. You will then be taken to the hardware profile view just like the views you see when creating new virtual machines from scratch. The difference with the hardware profile here is, you can set the profile for each VM you will create with this template.
When your virtualized hardware is identified through its profile, you need to create a guest operating profile. In the Library view, click the New Guest OS Profile link and name the profile. Under the Guest OS tab, you will see several options related to the operating system, as well as some components that will be applied to the virtual machine when deployed. Components such as hostname, local administrator password, product key for Windows, time zone, installed operating system, and connected domain need to be imported into the profile.
As you can see, most of the Sysprep configuration has been completed in the guest operating profile. If you're familiar with the Sysprep tool's answer file, you can add a file to the script location. You can also set the GUIRunOnce key, which launches a command line executable file, or script, the first time a user logs in to the virtual machine, providing deeper customization. With virtual machine deployment, the combination of these components within the guest OS profile is the point where SCVMM plays an important role.
Step 3: Create and deploy VM templates
When all three components are complete, you are now ready to create the first virtual machine. In the Library view, click New Template to start the process. The first screen of the wizard will ask you to specify the Virtual Hard Disk source (VHD) for this model. This source may be a virtual machine that has been turned off as discussed above or another template or VHD stored in the library. It should be noted that using an existing virtual machine to complete this process will destroy the virtual machine.
The remaining steps in the configuration process are to assign the hardware profile and guest OS profile, then select the Library Server and the path to save the template. Setting up the hardware and guest OS profile in the respective screens, or the template will have the default settings, these are settings that will force you to start a process again. The wizard will start creating the first template by running Sysprep on the machine. If the process is done properly, it will take a certain amount of time to complete.
Once the template has been created, the source VM will not exist and a new template will be added to the Library. Deploying the template with its related profiles is done by right-clicking on the template and selecting the New Virtual Machine option . Now your new VM will be deployed in a new way.
You should read it
- Monitor Hyper-V with the command line (Part 3): Check virtual machine status
- How to change the default directory for hosting Hyper-V virtual machines in Windows 10
- How to import Hyper-V virtual machines in Windows 10
- How to export Hyper-V virtual machines in Windows 10
- Collect the Process ID information or GUID of Hyper-V Virtual Machine
- Use Quick Migration to move virtual machines between Hyper-V hosts
- Instructions for using Hyper-V on Windows 8 (Part 1)
- Monitor Hyper-V with the command line (Part 2): Basic monitoring commands
May be interested
- Create virtual machines in Hyper-V on Windows Server 2008after hyper-v is installed, the first thing to do here is to create a virtual machine - virtual machine. in the following article, we will introduce you to some basic steps to do this, with the general implementation process almost just clicking next> next> finish.
- Collect the Process ID information or GUID of Hyper-V Virtual Machinewhen it comes to identifying a certain virtual machine component in the system, for some reason, such as changing hardware-related settings, fixing ntfs permissions problems ... then they we need to know the id or guid parameters of that virtual machine
- Install Ubuntu on Windows 8this article will guide users to install the windows 8-based ubuntu operating system with the built-in hyper-v virtual machine software built into windows 8.
- Monitor Hyper-V with the command line (Part 2): Basic monitoring commandsin this article, we will learn how to access the virtual machine list and see general information about virtual machines with simple powershell statements. we will also look at stop commands and start virtual machines from the command window.
- Create virtual machines with Hyper-V on Windows 8 and Windows 10if you're using windows 8 or windows 10, you've probably heard of hyper-v, a virtual machine software built into the windows operating system. at first hyper-v was part of windows server 2008, but microsoft later integrated on windows 8 and windows 10, and this feature is only available on pro and enterprise versions.
- Setting up Ubuntu virtual machine with Hyper-V Quick Create on Windows 10how to use hyper-v quick create and install ubuntu virtual hard disk to set up ubuntu linux virtual machine
- How to create a virtual machine repository for Hyper-V Quick Createquick create is a feature in hyper-v that allows users to set up new virtual machines with just a few mouse clicks.
- How to create a virtual machine in Windows Server 2012in this article, we will look at how to create a virtual machine. first, you need to open the hyper-v manager and then follow the steps below.
- How to change the default directory for hosting Hyper-V virtual machines in Windows 10as we know, hyper-v allows running virtual computer systems on a physical server. these virtualization systems (also known as guest clients) can be used and managed similarly as physical computer systems.
- Configure Hyper-V security using Authorization Manager - Part 2in this article, i will show you how to secure virtual machines when running on hyper-v.