Scripting VMware Power Tools: Automating Virtual Infrastructure Administration

Chapter 5: Modifying VMs

Introduction

This chapter expands on the virtual machine s creation that was introduced in Chapter 4. To begin, we will discuss the two main components of a virtual machine, the .vmx and the .vmdk files. Then we will look at the hardware and version level of these files, as well as how we can change the files to be able to migrate a virtual machine s disk file from one VMware platform to another.

Virtual machines are made up of two files. The vmx file is the virtual machine s configuration file, while the virtual machine disk format (VMDK) file is the virtual machine s disk file or hard drive. We will examine these files and the different settings that can be used. Afterward, as an example, we will change a virtual machine s IDE disk to a SCSI disk.

To conclude, we will dynamically create a virtual machine using a script, as well as modify the script to build the virtual machine in a few different ways.

Tip

As a best practice, always make a backup of the files you are going to edit before you edit.

The Virtual Machine VMDK File

When working with virtual machines, there are two main components or files that need to be understood. The first is the VMDK file. But what exactly is the VMDK file? A virtual machine disk (VMDK) file is an encapsulation of an entire server or desktop environment in a single file. In a way, it can be seen as the...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Data Security Software
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.