VMware VSphere Install Configure Manage V8 Lab 1734890594
VMware VSphere Install Configure Manage V8 Lab 1734890594
---------------------------------------------------------------------------------------------------------------------------------------
Ahmed Abdelwahed
ahmed@abdelwahed.me
LinkedIn
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Contents
Importance of Virtualization: ........................................................................................................................................ 5
VMware vSphere Introduction: .................................................................................................................................... 5
ESXi Installation and Configuration: .............................................................................................................................. 6
DNS Configuration for all ESXi Hosts and vCenter Servers ........................................................................................... 7
Basic Configuration for a Virtual Machine to Host ESXi Server inside VMware Workstation ...................................... 8
Set up the hostname and network configurations. ................................................................................................ 12
vCenter ........................................................................................................................................................................ 15
Deploy vCenter........................................................................................................................................................ 16
Configuring and managing using ESXi host. ................................................................................................................ 24
Add a welcome message and assign license ........................................................................................................... 24
Create new local datastore (VMFS) using ESXi ....................................................................................................... 28
Extend Existing Datastore ....................................................................................................................................... 30
Upload the ISO file to the datastore. ...................................................................................................................... 32
Create and configure VM through ESXi02 host ...................................................................................................... 33
Creating a Virtual Machine in ESXi .............................................................................................................................. 34
Download and Install VMRC........................................................................................................................................ 39
Set up VMware Tools. ............................................................................................................................................. 41
Edit VM settings. ..................................................................................................................................................... 42
Configuring and Managing ESXi Servers Using vCenter .............................................................................................. 43
Integrate vSphere with Active Directory................................................................................................................. 48
sign in using domain accounts and privileges ......................................................................................................... 49
Create VM using vCenter ............................................................................................................................................ 51
Edit VM Settings from vCenter. .............................................................................................................................. 55
Configuring NFS Server on Windows Server - NFS Datastore ..................................................................................... 57
Add ISCSI disk to both ESXi servers using vCenter. ..................................................................................................... 60
Migrate VM to Another iSCSI Datastore ..................................................................................................................... 67
Cold Migration Without the Need for vMotion ...................................................................................................... 68
Disk Migration ..................................................................................................................................................... 68
VM Migration (Power off required) .................................................................................................................... 69
Live Migrate (vMotion needed) .............................................................................................................................. 70
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Importance of Virtualization:
• Efficiency:
o Maximizes hardware usage.
o Reduces the need for multiple physical machines.
• Cost Savings:
o Reduces power consumption.
o Lowers cooling and hardware costs.
• Flexibility:
o Enables rapid VM deployment.
o Supports scaling and migration.
• Business Continuity:
o Simplifies backup processes.
o Bolsters disaster recovery.
o Ensures high availability.
• Isolation:
o Provides distinct environments for applications.
o Enhances both security and performance.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
• Before installing ESXi, you need to ensure that the hardware is compatible. You can check the hardware
compatibility by visiting the VMware Compatibility Guide - System Search.
• Once you have downloaded the ESXi ISO image, you can burn it to a CD/DVD or USB drive using a tool like
Rufus or the built-in Windows USB/DVD Download Tool.
• Insert the CD/DVD or USB drive into the server and boot from it. The ESXi installer will start.
4. Install ESXi:
• Follow the on-screen instructions to install ESXi. You will need to select the disk on which to install ESXi
and provide basic networking information like IP address, subnet mask, default gateway, and DNS server.
5. Configure ESXi:
• After installing ESXi, you can configure it by logging in to the vSphere Web Client or vSphere Client. You
can configure settings like hostname, network configuration, time zone, and NTP server.
• Once ESXi is installed and configured, you can create virtual machines using the vSphere Web Client or
vSphere Client. You will need to provide settings like virtual machine name, guest operating system,
number of CPUs, amount of RAM, and storage.
• After creating the virtual machine, you can power it on and access it using a remote desktop or a console
connection. You can also install an operating system and other software on the virtual machine.
Note: All instructions are explained in detail below with screenshots to guide you through each step of the
process.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Basic Configuration for a Virtual Machine to Host ESXi Server inside VMware
Workstation
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Now, all ESXi servers are manageable directly through a web browser.
Repeat these steps for every ESXi server you intend to set up.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
vCenter
vCenter is a management software platform for VMware vSphere, a virtualization platform used by many
organizations to host and manage virtual machines. vCenter allows administrators to manage multiple ESXi hosts
and their virtual machines from a single centralized location, providing a more streamlined and efficient way to
manage a virtual infrastructure. Here are some of the key features and benefits of vCenter:
1. Centralized Management:
o With vCenter, administrators can manage multiple ESXi hosts and their virtual machines from a
single, unified console.
o This provides a more streamlined and efficient way to manage virtual infrastructure, as well as
more control over the virtual environment.
2. High Availability:
o vCenter supports high availability features, such as vCenter High Availability (vCHA), that ensure
that vCenter remains available in the event of hardware or software failures.
3. Automation:
o vCenter includes automation features, such as vSphere Auto Deploy and vSphere PowerCLI, that
allow administrators to automate tasks and workflows in the virtual environment, reducing the
workload and potential for human error.
4. Security:
o vCenter includes security features, such as vCenter Single Sign-On (SSO), that help ensure that the
virtual environment is secure and protected from unauthorized access.
5. Performance Monitoring:
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Deploy vCenter
Install vCenter by mounting the VCA ISO onto a Domain Controller or any virtual machine that is part of the
abdelwahed.me domain. Begin the installation process with ESXI1 designated as the host for deploying vCenter.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Prior to installing vCenter, it's crucial to create DNS A and PTR records for the server to ensure that other
systems can identify the vCenter's hostname and IP, which is essential for seamless interaction within
the vSphere infrastructure.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
ESXi hosts have the ability to create and manage local user accounts. Local user accounts can be used to allow
users to log in to the ESXi host using the vSphere Web Client, vSphere Client, or SSH. Once you have added local
user accounts to the ESXi host, users can log in to the host using their username and password. Local user
accounts have a limited set of privileges, which can be modified using the vSphere Web Client or vSphere Client.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
To create and configure a virtual machine (VM) through ESXi02 host, follow these steps:
1. Log in to the vSphere Web Client or vSphere Client using the credentials for the ESXi02 host.
2. Select the ESXi02 host from the inventory and go to the Virtual Machines tab.
4. In the New Virtual Machine wizard, select the type of VM that you want to create, such as a typical VM or
a custom VM.
5. Follow the prompts to configure the settings for the VM, such as the VM name, guest operating system,
virtual hardware, and storage.
6. After the VM is created, select it in the inventory and go to the Configure tab to configure additional
settings.
7. Configure the VM settings as appropriate for your environment, such as the network adapter, storage
adapter, CPU and memory allocation, and advanced settings.
9. To access the console of the VM, select the VM in the inventory and go to the Console tab.
10. Use the console to install the guest operating system, install applications, and configure the VM as
needed.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
• Thin Provisioned:
Selected option,
which allocates
storage space as
needed.
• Thick Provisioned,
Lazily Zeroed:
Allocates storage
space immediately
but zeros out
blocks as they are
written.
• Thick Provisioned, Eagerly Zeroed: Allocates and zeroes out storage space immediately.
Options for NIC and DVD (choose an ISO file from the datastore)
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
beginning installation
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Click the "Download" button to download the VMRC installer for your operating system.
You will need to log in with your VMware account or create a new one if you don't have one already.
Install VMRC:
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
VMware Tools comprises various utilities and drivers that improve the performance and capabilities of virtual
machines within vSphere.
If VMware Tools do not appear in this VM area, edit the CD/DVD VM settings (connect at power) as shown below.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Edit VM settings.
By editing the settings of a VM using ESXi, you can modify its configuration to meet the needs of your
environment.
With the ESXI01 server, you are able to adjust few settings such as AutoStart directly.
As indicated, the management of VMs via ESXi comes with a set of limited features; therefore, we transition to
using Vcenter which offers an expanded suite of management tools including migration, cloning, and high
availability options.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
By adding ESXi servers to vCenter, you can centralize the management of your virtual environment and perform
tasks such as creating virtual machines, configuring storage and networking, and monitoring performance. It's
important to follow best practices for managing ESXi servers, such as keeping them up-to-date with the latest
patches and updates, monitoring their performance and usage, and securing them with appropriate permissions
and firewall rules.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Apply the same process to ESXi02 for integration into our data center.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
You are now able to log in, however, you lack the necessary permissions to access vCenter resources.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Using vCenter, we will increase the VM's hard drive size from 20 GB to 22 GB.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
The upcoming configuration will enable NFS on all ESXi servers in the datacenter, and these steps can be
replicated at the ESXi level.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
• NVMe over RDMA Adapter: Enable this option if using NVMe storage devices that are shared over an
RDMA network for high performance.
• Software FCoE Adapter: Discover and use software Fibre Channel over Ethernet (FCoE) adapters.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
The ISCSI Disk becomes visible and is available for addition as a datastore.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Now, do the same for ESXi02. We won't add a new datastore; we just want to connect it.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Without vMotion enabled, it is not possible to move a virtual machine (VM) during its powered-on state. The only
way to move a VM in this state is through a process called "cold migration," which involves powering off the VM,
moving its files to another location, and then powering it back on.
On the other hand, with vSphere vMotion, it is possible to move a VM while it is in a powered-on state, without
any disruption to its services. This type of migration is often referred to as "hot migration" or "live migration," and
it is a key feature of vSphere that allows for more flexibility and agility in managing virtual environments.
• Live Migration: vSphere vMotion enables the live migration of a running virtual machine from one host to
another with zero downtime.
• Use Cases: You can move virtual machines between hosts for load balancing, maintenance, or other
reasons, without any disruption to their services.
• Requirements:
o Shared Storage: vMotion relies on shared storage accessible by both the source and target hosts.
• Monitor Network and Storage Performance: Ensure that network and storage resources are sufficient to
handle the migration process.
• Check VM Compatibility: Verify that the virtual machines are compatible with the target hosts.
• Secure vMotion: Implement appropriate permissions and firewall rules to secure the vMotion process.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
To adjust the hardware settings of a virtual machine, opt for the second choice.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Post-cloning, all attributes remain unchanged except for the IP address and UUID.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Now I'm going to restore the virtual machine to its previous state to observe the modifications.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
You can now import the OVF into either the same environment or a different one by following these steps:
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
VM Files
Virtual machines (VMs) in VMware vSphere are encapsulated by a set of files stored on a VMFS (Virtual Machine
File System) datastore. These files collectively define the VM's behavior, configuration, and content.
Overview of VM Files
.vmx Main configuration file for the Stores settings like the VM's CPU and memory Always Present
VM. configuration.
.vmdk Represents the VM's hard The VM's 80GB hard drive data is stored here. Always Present
drive.
.nvram Contains the VM's BIOS or EFI Changes to the boot order in the VM's BIOS are Always Present
configuration. saved here.
.log Log files for operational Provides logging while the VM is managed by Always Present
activities of the VM. vSphere.
.vswp vSwap file used for virtual If a VM with 8GB RAM and 2GB reservation uses Powered On
memory. its physical RAM, ESXi might swap memory pages
to this file.
.vmsn Represents the state of a Captures the running state of a VM at the time a When VM has
snapshot. One for each snapshot was taken. Snapshots
snapshot
.vmss Suspended state file. Captures the exact running state of a VM at the Suspended
time of suspension.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
This library can be made public, allowing another vCenter to link to it and utilize its resources.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
You now have the ability to upload various kinds of data to it.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
You have the option to change this local library into a subscription-based web library.
You can also utilize this link as a local library for another vCenter.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
You can now use the ISO that's been uploaded to the library to set up a new virtual machine.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Using Alarms
In a VMware vSphere environment, alarms can be created to monitor events and conditions related to virtual
machines (VMs). Alarms can be configured to alert administrators when specific events or conditions occur,
allowing them to quickly take action to resolve issues and maintain the health of the virtual infrastructure.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
To set this profile as default, clear all current configurations to prevent conflicts before adding your custom
settings.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
A host is now connected to that profile, and you can also link it to a cluster.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
2. During the boot process, access the GRUB menu by pressing "e."
3. Edit the selected entry and append "rw init=/bin/bash" to the end of the line starting with "linux
/$photon"
8. After the server restarts, log in to vCenter using the new root password.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
3. Look for the "Access" tab or similar option that provides SSH and Bash access settings. Enable SSH and
Bash access if they are not already enabled.
4. Open an SSH client (such as PuTTY) and connect to the vCenter server using the SSH protocol on port 22.
Use the IP address or hostname of the vCenter server. using root user.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Explanation:
• Phys.Sw: Physical Switch
• Uplink1/Uplink2: Uplinks connecting ESXi hosts to physical switches.
• ESXi: ESXi hosts
• N1 | N2: Network interfaces (NICs) on the ESXi hosts.
• vSw1: Virtual Switch 1 for VM connections.
• vSw2: Virtual Switch 2 for ESXi management connections.
• PortG: Port Group on Virtual Switch 1 for VMs.
• VMKern: VMkernel Port on Virtual Switch 2 for ESXi management.
• VM: Virtual Machine network traffic.
• Mgmt: Management network traffic.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Insert an additional network interface card via the ESXi VM settings and reboot the server.
Below are two methods to add a network adapter: directly using 'Add Networking' or via the settings menu.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
• Setting both NICs to "Active" on a vSphere vSwitch activates load balancing, which distributes network
traffic between the NICs for better bandwidth utilization and improved network efficiency.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Upon disconnection of the primary network interface card, ESXi02 maintains continuous operation due to the
failover capabilities in place on the secondary NIC. This guarantees consistent performance and provides network
redundancy.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Up next on standby.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Please be aware that it's advisable for each VMkernel to serve a single purpose, possess a distinct IP address,
and be set up on a separate VLAN.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
• MTU (Maximum Transmission Unit) represents the largest packet or frame size, specified in bytes, that
can be sent over a network interface without fragmentation.
• Ethernet Default: For Ethernet, the default MTU size is typically 1500 bytes.
• Jumbo Frames: In modern Ethernet networks, especially in data centers and for specific use-cases, the
MTU can be increased to up to 9000 bytes. This is often referred to as using "jumbo frames".
• Example: Jumbo frames might be used within a storage area network (SAN) because larger frames can
improve efficiency by reducing the overhead of the header information for each packet.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
On a different computer, assign an additional IP address to the Network Interface Card and attempt to connect to
the VMKernel port of ESXi01, then apply the same configuration to ESXi02.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Modify VMkernel port settings to enable vMotion capability (for storage and VM migration).
Please be aware that for executing storage or VM migration across ESXi hosts, it's crucial to set up a dedicated
VMKernel adapter to handle vMotion traffic. This task can be accomplished by creating a new adapter or enabling
the vMotion capability on an existing one, allowing the live relocation of virtual machines between hosts
seamlessly and without any interruptions.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Choose the earliest version of ESXi available if you're working with various versions, and remember that this
choice cannot be downgraded later.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Uplinks correspond to the count of Network Interface Cards (NICs), which you can later adjust by adding or
reducing the number. For instance, if there are initially 2 uplinks per server, you can increase the total to 4.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Now transfer the VM network to the new production DSwitch (currently, we have only the Web-Server on ESXi01).
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
For the following labs, you must add a VMware cluster using vCenter and move the ESXi servers to it.
Overview
VMware DRS (Distributed Resource Scheduler) is a feature available with a vCenter cluster. Once DRS is enabled, it
monitors CPU and memory utilization on each ESXi host in the cluster and will automatically migrate included
virtual machines to another ESXi host if the utilization of a particular host exceeds a certain threshold.
• Workload Balancing: Ensures that each host is used efficiently and that VMs have access to the resources
they need.
1. Manual:
o DRS makes recommendations for VM placement, requiring manual approval for migrations.
2. Partially Automated:
o DRS automatically migrates VMs in response to resource imbalances but prompts for approval if
disruptions may occur.
3. Fully Automated:
• Fully Automated Mode: Effective at balancing workloads but may cause frequent migrations that could
impact performance.
DRS Rules
Even if DRS is set to fully automated mode, you can still add DRS rules to guide its behavior:
o Ensure that critical VMs, such as domain controllers and Active Directory servers, are always
separated across different ESXi hosts in case of hardware failure.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
o Ensure that application servers and database servers are always kept together on the same ESXi
host to reduce latency and improve performance.
o Prevent VMs from being migrated to ESXi hosts in different compute racks in case of power
disconnects to ensure high availability.
4. Predictive DRS:
o Use historical performance data to predict and initiate VM migrations before resource utilization
reaches critical levels.
1. Automation Level:
o Determines how much automation DRS uses to manage resource allocation and workload
placement (Manual, Partially Automated, Fully Automated).
2. Migration Threshold:
o Determines the threshold at which DRS will initiate a migration of VMs to balance resource
utilization (Conservative, Moderate, Aggressive).
3. Power Management:
o Allows you to enable or disable vSphere Distributed Power Management (DPM) to dynamically
power on and power off hosts to balance resource utilization and save energy.
4. CPU Overcommitment:
o Allows you to enable or disable CPU overcommitment, allowing multiple VMs to share a physical
CPU core.
5. Memory Overcommitment:
o Allows you to enable or disable memory overcommitment, allowing VMs to share memory
resources.
o Allows you to configure CPU affinity rules to control the placement of VMs on physical hosts.
7. VM Distribution:
o Allows you to configure how DRS distributes VMs across physical hosts (Spread, Pack, Evenly
Balanced).
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
1. Resource Allocation:
o Purpose: Ensure that VMs are distributed across ESXi hosts to maximize resource utilization.
o Example: Group VMs based on CPU or memory requirements and distribute them across capable
ESXi hosts.
2. High Availability:
o Example: Group critical VMs and ensure they are distributed across ESXi hosts in different
compute racks or datacenters to ensure high availability in case of hardware failure.
3. Simplified Management:
o Example: Group VMs based on their application and ensure they are patched and updated
together to minimize disruptions.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Begin by choosing the virtual machine (VM) on which to apply various DRS settings.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
We have previously configured an ISCSI datastore of 500GB size; now we are proceeding to add an additional ISCSI
datastore with a capacity of 300GB.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Set a pingable default gateway for both hosts (using the vCenter IP as an example).
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
• Power off and restart VMs: VMs on the isolated host are powered off and restarted on another host.
• Shut down and restart VMs: VMs on the isolated host are gracefully shut down and then restarted on
another host.
• Issue events: No action taken on the affected VMs, but events are generated.
• Power off and restart VMs: All affected VMs are terminated, and vSphere HA attempts to restart them on
hosts with datastore connectivity.
• Issue events: No action taken on the affected VMs, but events are generated.
• Power off and restart VMs - Conservative restart policy: A VM is powered off if HA determines it can be
restarted on a different host.
• Power off and restart VMs - Aggressive restart policy: A VM is powered off if HA determines it can be
restarted on a different host or if it cannot detect resources on other hosts due to network partition.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
• Disabled: Host Monitoring is turned off. vCenter will not respond to host failures.
• Restart VMs: When a host failure is detected, VMs are restarted in the order determined by their restart
priority.
• Options to set the default restart priority for VMs (e.g., Medium).
• Resources Allocated: vSphere HA proceeds with the next VM restart priority after the condition is met.
• VM Dependency Restart Condition Timeout: Set a timeout period for VM dependency restart conditions
(e.g., 600 seconds).
• Use Datastores Only from the Specified List: Restrict to specified datastores.
• Use Datastores from the Specified List and Complement Automatically if Needed: Allows automatic
selection of additional datastores if necessary.
o Datastore5-ISCSI
o Datastore04-ISCSI
• Percentage (%): Indicates the percentage of performance degradation the VMs in the cluster are allowed
to tolerate during a failure (e.g., 100%).
o 0% raises a warning if there is insufficient failover capacity to guarantee the same performance
after VMs restart.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Remediation dictates the response (for HA) when a server is flagged for hardware degradation.
- When a server is in quarantine mode, it's excluded from high-availability tasks such as being selected for
server transfers or chosen as the master.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
VMware Fault Tolerance (FT) provides a way to achieve zero downtime by duplicating a virtual machine (VM) on
another host in the cluster and maintaining real-time synchronization of storage and memory between the
primary and secondary VMs. If the primary VM fails or becomes unavailable, the secondary VM takes over
seamlessly without any interruption.
Requirements and Considerations
1. Network Interface Cards (NICs):
o Each host in the cluster must have at least two dedicated NICs with 1 Gbps speed or higher.
2. Storage:
o The VM must be running on a datastore hosted on SSD storage to ensure optimal performance.
3. Licensing:
o A valid VMware Fault Tolerance license must be available for each host in the cluster.
4. VMware High Availability (HA):
o VMware HA must be enabled on the cluster.
Configuration Steps
1. Add and Configure NICs:
o Add the additional NICs to each ESXi host.
o Ensure that the network settings are properly configured.
2. Enable Fault Tolerance:
o Use the vSphere Client or vSphere Web Client to enable Fault Tolerance for the VM.
o This process creates a duplicate VM on another host in the cluster and synchronizes the storage
and memory between the primary and secondary VMs.
Important Notes
• Not a Replacement for Backups:
o Fault Tolerance helps maintain zero downtime but does not protect against data loss or other
types of disruptions.
o Maintain a comprehensive disaster recovery plan, including regular backups, replication, and
other measures to ensure data availability and integrity.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Include both adapters that were attached to the ESXi in the virtual switch.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Now enable F
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
For testing purposes, I am utilizing a RedHat VM that operates at 1GHZ CPU speed.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
I plan to escalate CPU utilization by running the command dd if=/dev/zero of=/dev/null and will observe the
changes in CPU performance.
Now,
move
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
the RH VM into the new resource pool. Additionally, we can make a sub-pool, and deleting a resource pool won't
affect the included VMs; it will just sever their connection to that pool.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Benefits
• Improved Efficiency: Streamlines the process of managing ESXi host lifecycles from a central location.
• Enhanced Compliance: Helps ensure hosts meet security and regulatory standards.
• Better Visibility: Provides detailed insights into hardware and software components, aiding in proactive
management.
Best Practices
• Regular Updates: Frequently update baselines and apply patches to keep hosts secure and up-to-date.
• Compliance Monitoring: Continuously monitor host compliance to avoid potential security and regulatory
issues.
• Proactive Management: Use the hardware and software management features to proactively address
potential issues before they impact operations.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Performance Monitoring
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Troubleshooting
Troubleshooting VMware vCenter can encompass a broad range of issues, as vCenter is a complex product with
various components and dependencies. Here's a structured approach to troubleshooting vCenter:
1. Identify the Problem:
• Symptoms: Understand the specific issues being faced. Are there errors in the vCenter UI? Is vCenter
unresponsive? Are there issues with specific functionalities like vMotion or provisioning VMs?
2. Check vCenter Server Status:
• Services: Ensure all necessary VMware services are running.
• For Windows-based vCenter, check using the Services console.
• For vCenter Server Appliance (VCSA), check using the VAMI interface or service-control command.
• Logs: Examine the vCenter logs for any errors or warnings. The logs can be found at:
• Windows: C:\ProgramData\VMware\vCenterServer\logs
• VCSA: /var/log/vmware
3. Database Issues:
• Check the health of the database. Ensure there's enough space and that the database service is running.
• Look for database connection errors in the logs.
4. Networking:
• Connectivity: Test the network connectivity to the vCenter server using tools like ping and traceroute.
• Firewall: Ensure required ports for vCenter are open and not blocked by a firewall.
• DNS: Confirm that DNS resolution is working for the vCenter server and ESXi hosts.
5. Authentication:
• SSO (Single Sign-On): If there are authentication issues, check the status of the SSO service.
• AD/LDAP: If vCenter is integrated with Active Directory or another LDAP service, ensure it can connect and
authenticate users.
6. Performance:
• If vCenter is slow or unresponsive, check CPU, memory, and disk utilization.
• Monitor database performance, especially if the database is external.
7. Licensing:
• Confirm that licenses haven't expired.
• Ensure there are no errors related to licensing in the logs.
8. Integration with Other Components:
• If you're using solutions integrated with vCenter (like NSX, vSAN, etc.), check their status and logs.
9. Backup and Recovery:
• If there's a critical failure, consider restoring from a backup.
• Always make backups before making significant changes or upgrades.
10. Reach Out to VMware Support:
• If you can't identify the issue, consider creating a support bundle and contacting VMware support. The
support bundle contains logs and configurations that can help VMware support diagnose the issue.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Services
Component Service Name Alias Description Default
State
vCenter vCenter Server vpxd Core service of vCenter, enabling VM Running
provisioning, vMotion, DRS, etc.
VMware vmdir Manages Single Sign-On (SSO) Running
Directory Service capabilities and security tokens.
VMware Content content-library Manages content libraries: containers Running
Library for VM templates, vApp templates,
etc.
vCenter Profile- vpxd-profile Manages VM storage profiles and Running
Driven Storage associated policies (SPBM).
Service
VMware vCenter vmware-stsd Supports authentication services for Running
Identity Services VMware components.
VMware vSphere vmware- Automates tracking, patching, and Running
Update Manager updatemgr updating VMs, appliances, and ESXi
hosts.
VMware vmcad Manages certificates for vCenter Running
Certificate services ensuring secure
Authority communication.
vSphere Lifecycle vLCM Streamlines ESXi host lifecycle Running
Manager (v7 and management.
later)
ESXi Hostd hostd Manages most operations on the ESXi Running
host, including HA.
Vpxa vpxa Acts as a communication bridge Running
between the ESXi host and vCenter,
assisting in DRS operations.
Fdm fdm VMware High Availability (HA) service. Running (if
Manages VM restarts on other hosts in HA is
case of host failure. enabled)
vLockstep vLockstep Part of VMware Fault Tolerance. Running (if
Provides lockstep replication of VMs FT is
for zero downtime and data loss enabled)
protection.
ESXi Shell Service esx.shell Provides shell access to administer Stopped (can
ESXi hosts. be enabled)
VMware vSAN vsanvpd (vSAN Offers VASA provider services for Running (if
service VASA Provider) vSAN. vSAN is
enabled)
NTP Daemon ntpd Maintains time synchronization on Stopped (can
ESXi hosts. be enabled)
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
After establishing an SSH connection to an ESXi host, you have the ability to deploy numerous commands for host
management and observation. Below is a list of typical SSH commands that can aid in the administration of ESXi:
ESXi Description Example
Command
esxcli system This command allows you Example: You run the command and get output similar to
version get to see the version and "VMware ESXi 6.7.0 build-8169922".
build number of your ESXi
host.
esxcli This command displays all Example: Running this command shows an output including
network ip network interfaces on interfaces like "vmk0", "vmk1", with their associated IP
interface list your ESXi host, along with addresses.
their respective IP
addresses.
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
esxcli With this command, you Example: The command output shows "DNS servers:
network ip can see the DNS servers 192.0.2.53, 203.0.113.53", indicating these are the configured
dns server that your ESXi host is DNS servers.
list configured to use.
esxcli storage This command reveals Example: Running this command might display devices like
core device the storage devices that "naa.6006016045502500a7e03a8b8b7ed411" with additional
list your ESXi host can access. information about the device.
esxcli storage Use this command to see Example: The output might include volumes like "datastore1",
vmfs extent the VMFS volumes and along with the extent information.
list their extents on your ESXi
host.
esxcli This command provides Example: You might see output like "CPU0, core 0, HT 0,
hardware detailed information Socket 0" which gives detailed info about each CPU.
cpu list about the CPUs on your
ESXi host.
esxcli You can use this Example: The command might output something like
hardware command to get the "Physical Memory: 32 GB", showing the total physical
memory get memory information memory.
from your ESXi host.
esxcli This command will show Example: Output may include VIBs like "esx-base", "vsan",
software vib you the installed VIBs each with version and installation dates.
list (vSphere Installation
Bundles) on your ESXi
host.
esxcli vm This command provides a Example: You might see an output including VM names like
process list list of the running virtual "vm1, vm2", with additional information such as World ID,
machines on your ESXi UUID, and display name.
host.
Keep in mind that the examples provided are for illustration purposes only and the real results will vary based on
your ESXi host's particular setup and condition.
Action Command
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
VMware vSphere Install, Configure, Manage | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me