This content is part of the Essential Guide: Cut data center sprawl to improve IT capacity
Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

How can automation help with VM creation and maintenance?

Is developing an automation strategy to aid in VM deployment and patching worth the time investment?

Server virtualization is more than hardware consolidation. A well-built virtualized environment can be used to automate routine tasks. Although there is some effort involved in setting up this process, automation will usually save administrators a considerable amount of work in the long run. Automation also ensures that routine tasks are performed in a manner that is consistent with the organization's needs.

The most commonly automated task is VM creation. Products such as VMware's vCenter and Microsoft's System Center Virtual Machine Manager allow for template-based VM creation. Administrators are able to build VM templates that align with the organization's requirements and then use those templates for future VM creation. This ensures that new VMs are properly configured.

Some hypervisor vendors also allow for automated host provisioning. This process makes it possible to automatically install a hypervisor to a bare-metal host. Automated host provisioning can save a lot of time for large organizations that frequently bring new host servers online.

Automation is also commonly used for patch management. Typically, VMs are kept up to date via a patch-management system. For example, Windows VMs might be configured to receive patches from Windows Server Update Services. Patch management at the hypervisor level, however, needs to be handled differently because it often requires a disruptive reboot.

Automation can ease host-level patch management. Microsoft, for example, has a rolling update feature for clustered Hyper-V deployments. When a patch needs to be applied to an organization's host servers, the patch-management process performs a live migration of the VMs off of one host server. The host is then patched and rebooted, and the VMs are shifted back onto the host via live migration. The process is then repeated for the other hosts in the cluster. While it is possible to complete this process manually, doing so would be extremely tedious.

Hypervisor-level automation is not the best choice for every maintenance task. Storage provisioning, for one, might be better handled separately. Hypervisors such as ESX and Hyper-V can be configured to perform some storage-related tasks, but automation systems provided by the storage vendors are much more capable than those offered by hypervisor vendors.

Next Steps

Designing an automation strategy

FAQs on virtualization automation tools

Dig Deeper on Virtual machine provisioning and configuration

Join the conversation


Send me notifications when other members comment.

Please create a username to comment.

How do you use automation tools in your virtual environment?
One thing that we use automation for, and save a lot of time and effort by doing so, is spinning up and down load generators and monitors for our cloud-based load tests. Each load generator or monitor is derived from a standard image so, rather than having the team spend their time spinning them up, we’ve automated the process. which allows the team to focus on more complex tasks, such as preparing the scripts that drive the load.
I've seen a lot of automation for deploying into VM environments, and then configuring them, but none yet about actually spinning up the new VMs yet.   I can see areas where having something like that would help though.
I think, like the article pointed out, automation can help with some of the routine tasks. This is essentially the same thing that drives a lot of test automation - better resource utilization. Automate those routine, tedious, error prone tasks. Automate them and then delegate them to the machine, which excels at handling repetitive tasks, and allow people to use their brains to address the larger, more interesting and complex tasks. So yes, in my opinion, an automation strategy is worth the time investment.