A virtual machine is a software computer that, like a physical computer, runs an operating system and applications. Virtual machines are compatible with all standard x86 computers. Each virtual machine encapsulates a complete computing environment and runs independently of underlying hardware.
What to read next
VirtualMachine Management Objects and Methods Virtual machines are the central elements of your vSphere environment.
Creating Virtual Machines and Virtual Machine Templates To create a virtual machine, you use the Folder.CreateVM_Task method. The method takes a VirtualMachineConfigSpec data object as input argument. VirtualMachineConfigSpec allows you to specify the attributes of the virtual machine you are creating.
Configuring a Virtual Machine You can configure a virtual machine during creation (Folder.CreateVM_Task ) or cloning (VirtualMachine.CloneVM_Task ). You can also reconfigure a virtual machine using VirtualMachine.ReconfigVM_Task .
Adding Devices to Virtual Machines You can add devices to a virtual machine during creation using the VirtualMachineConfigSpec.deviceChange property, which is a VirtualDeviceSpec . You specify the host device that the virtual device should map to by using a backing object. A backing object represents the host device associated with a virtual device.
Performing Virtual Machine Power Operations Just like physical machines, virtual machines have power states.
Registering and Unregistering Virtual Machines When you create a virtual machine, it becomes part of the inventory (inside the folder from which you called the creation method by default), and it is registered. If you copy virtual machine files to relocate the virtual machine, or if you remove the files from the inventory using the vSphere Client, it becomes unregistered and unusable. You cannot power on a virtual machine that is not part of the inventory.
Customizing the Guest Operating System You install the guest operating system on the virtual machine just as you would install it on a physical machine. Afterwards, you can use the Web Services API to retrieve information and perform some customization if VMware Tools is installed on top of the guest operating system.
Installing VMware Tools VMware Tools is a suite of utilities that enhances the performance of a virtual machine's guest operating system and improves virtual machine management. For each guest OS, VMware provides a specific binary-compatible version of VMware Tools. The SDK requires that you install VMware Tools, or some operations related to the guest operating system fail.
Upgrading a Virtual Machine You can upgrade virtual machine hardware by running the VirtualMachine.UpgradeVM_Task method. The method upgrades this virtual machine's virtual hardware to the latest revision that is supported by the virtual machine's current host. You can specify the version number as an argument. This method is useful if you want to run your virtual machine on a newer hypervisor that supports newer versions of the hardware.