3.2.1 Vsphere Virtual Machines
3.2.1 Vsphere Virtual Machines
A vSphere virtual machine running on an ESXi hypervisor has its own virtualized hardware that is
abstracted from the physical hardware in the hypervisor host. This virtual computing
environment is almost identical to a physical computing environment. The guest operating
system running within a virtual machine sees the virtual hardware assigned to it as physical
hardware and will load hardware drivers to support each device.
● Manually create a new virtual machine and then install a guest operating system within
it. This option will display a wizard to configure the following:
○ The virtual machine name and location in the datacenter.
○ The hypervisor where the VM will run.
○ Which datastore its files will be saved on.
○ The guest OS that will be installed.
○ The virtual hardware that will be assigned.
● Clone an existing virtual machine. With this option, a copy is made of an existing virtual
machine. The new virtual machine is configured with the same virtual hardware and
installed software as the original virtual machine. This option is usually much faster than
the previous option because the VM itself is already configured and the guest OS is
already installed within it. Be aware that several important settings will need to be
manually reconfigured after the cloning process is complete to prevent network conflicts
with the source VM:
○ The computer name must be changed.
○ Any static IP address assignments must be changed.
○ For Windows systems, the security identifier (SID) must be changed to a unique
value.
● Deploy a new virtual machine from a template. In this process, the virtualization
administrator first creates a generic base virtual machine with a guest OS installed, but
configured with very generic settings. In fact, when creating a template for Windows
virtual machines, you should run SYSPREP.EXE (located in C:\Windows\System32\
Sysprep) on the base VM before converting it to a template to remove the SID, computer
name, static IP address assignments, and any other information that uniquely identifies
that VM. Once complete, this generic VM can be cloned to a template. Then, new VMs
can be cloned from the template.
Unlike Hyper-V, which automatically installs Integration Services for you, vSphere requires
VMware Tools to be manually installed. To do this, select the VM in the vSphere Web Client and
then click on Actions > Guest OS > Install VMware Tools. This will mount the VMware Tools
installation ISO file as a virtual optical disc within the VM. You must then run the installer from
the root of the optical disc within the guest OS and complete the installation.
To do this, select the VM in the vSphere Web Client and then click on Actions > Edit Settings.
You can edit the number of vCPUs, the amount of vRAM, etc. You can also add additional
storage devices. You can edit which virtual switch the VM’s network board is connected to. You
can also add new virtual hardware devices.
Many virtual machine settings can’t be modified if the VM is currently running. By default, the
number of vCPUs or the amount of vRAM assigned to the VM can’t be modified if it is in a
running state. However, these two parameters can be modified while the VM is running if you
enable Hot Plug hardware for each one. When enabled, the number of vCPUs and vRAM
assigned to the VM can be modified while it is running.