VM Ware Notes
VM Ware Notes
INTRODUCTION TO VM WARE
VM - Virtual Machine
VMware founded in 1998.
VMware is a Virtualization Platform Services.
As a VMware Admin our role is to create, manage / maintain, and troubleshoot VM.
Virtual - Creation of virtual server without physical hardware.
Versions of VMware
ESX – 1.X , 2.X , 3.X , 4.X
After 4.X version the next version was named as ESXi. ESXi –
i.4, 5.0 , 5.1 , 5.5 , 6.0 , 6.5 , 6.7 ( Latest Version )
Difference between ESX and ESXi
ESX ESXi
• It has been created by two companies • It is own Hypervisor (OS) of VMware
tie up VMware and Linux. • More secure
• Less secure. • Less time to reboot.
• Takes more time to reboot. • Management network.
• Service console.
Different companies providing VMs
Company Brand
VMware VMware
Microsoft Hyper – V
Oracle Oracle OVM
Citrix Xentre
Licenses type in VM
• Standard
• Advanced
• Enterprise plus
Type of Hypervisor
Type - 1 Type - 2
• Called as Baremetal product • Called as Hosting product
• Installing ESXi directly • We can install ESXi on a 3rd party OS
on hardware With the help of tool called
• Real time purpose Workstation
• Example : ESX , ESXi • If Workstation is installed we can run VMs
• Used for testing and practicing purpose
• Note – Workstation can only install on
Windows OS only
ESX ESXi
• 8 to 10 GB Hard disk • 20 to 40 GB Hard disk
• Intel or AMD processor • Intel or AMD processor
• Minimum 2 GB Ram • Minimum 4 GB Ram
• 2mbps n/w speed • 2 mbps n/w speed
Data center ( DC ) – It is place where all virtualization infra like cable lines, hardware lies.
DC
HP Hardware
Port
Physical switch
Command method
• Go to commands mode on your laptop / desktop
• Type ping 10.10.10.10
• If reply is coming . Then ILO IP is working.
• If request time out is coming. Then ILO IP is not working.
• If ILO IP is not working. Send Email or ping to the person who has installed and sent you the Info sheet tell that
ILO is not working and check the connectivity of the ILO
Google Chrome method
• Open Google Chrome
• Type https://10.10.10.10
• If home page is coming. Then ILO IP is working.
• If not ILO IP is not working.
• If ILO IP is not working. Send Email or ping to the person who has installed and sent you the Info sheet tell that
ILO is not working and check the connectivity of the ILO
Inventory Panel
Steps-1
Go to Inventory panel.
Click on Administration tab
Then Create Secondary user login account (In case you forgot or primary user account details are erased)
Then Update ILO License key.
Then click on Network tab
Then click on SNTP (Simple Network Time Protocol) – Select Time Zone
Then Click on IVP4 (Internet Protocol version 4) – Here we can change the IP address of ILO or we can
keep as it is if not required.
Then click on General
Then enter Host Name( It is compulsory) like USAFLDMRTESX001 (USA is Country, FL is Florida
(City), DMRT is D-Mart client, ESX001 is VM )
Jump Server / Tool server: To perform client operation remotely from anywhere.
STEP-2
Installation Of ESXi
To install ESXi first we need to download Image file of ESXi from VMware site.
Login to ILO.
Go to Inventory panel of ILO.
Click on Remote Console – To launch the console. Java and .Net will appear to run the console.
Click on any one of them.
Console will open.
Click on Virtual Drives – On these we have to mount the ESXi Image files (CD- ROM/DVD) which we
have downloaded.
Click on Power Switch then click on Momentary Press. To Run the test.
Then press F11
Then select ILO Virtual USB option coming at last.
Then Press Enter to continue.
Then press F11 to Accept and Continue VMware End User License Agreement.
Then select 279 GB Storage and click on Install.
Select Keyboard Layout (Language) i.e. US Default and press Enter.
The default Login will be Root.
Enter required Password and Press Enter.
Then press F11 to install ESXi.
Once installation is completed Unmount the installation disc (Remove the installation disc before Reboot) before Reboot.
Then Press Enter.
In very rare cases we use Putty when Vsphere and Web client are not working.
By all these tools we can Create and Manage VMs. Through we can manage and control both
Hardware and OS.
From 6.5 onwards VMs can be assessed by 2 tools.
1. Web Client
2. Putty
2.5 Creating Virtual Machines
Install Workstation.
Open Workstation
Click on Create New Virtual Machine. Then 2 option will come to choose
o Typical
o Custom
Select Typical
Next there will be options to choose that I will install OS (ESXi) Later or Include OS at that time only.
Select VMware ESXi
Name the Hardware
Select Folder Path to save the files of VM.
Enter Storage
Click on Finish
Click on Created VMs if OS is not installed. Install the ESXi OS.
Cursor
To work on VMs Double Click on the Gray and Yellow Screen.
If you want Cursor to come out press Ctrl+Alt. Cursor will come out.
2.6 Login to VMs
Click on the created VM and Power On/Run the VM.
The VM will reboot for some time.
After reboot Gary and Yellow Screen will appear.
Press F2 at that time to login.
For some Laptops we have to press Fn+F2.
By default Root will be User Login. Enter the password which you have entered while installing the OS.
On LHS different options will come.
Click Enter on Configure Management Network
o Network Adapter: In we have to make sure that all Adapters are connected. To connect or disconnect Press Space Bar.
o VLAN (Optional)
o IP Configuration: To access the particular OS and VMs
Make sure IP is Static not dynamic. Because if IP is Dynamic whenever ESXI boots the IP changes. So need to
choose Static. By choosing this we are giving permanent IP to the VM. Whenever it boots same IP will be
assigned to VM.
o IPV6: Make it Disable.
o DNS (Domain Naming System): In this we can change the IP of VM and Host Name.
o Suffixes: Domain Suffix can be given like .com, .in etc.
After all changes Press Escape (ESC) and Save Changes and Reboot.
Then click on Troubleshooting Option
o Enable ESXi shell
By default it will be Disable. Make it Enable by pressing Enter.
o SSH (Secured Shell) Enable
This should be Enable so that we can use Putty.
To enable SSH through Vcenter.
o Open Vcenter.
o Click on Host.
o Click on Configure.
o Go to Security Profile and click.
o Click Edit.
o Tick Mark SSH Server.
o Click Ok.
o SSH is Enabled
For full screen CTRL+ALT+Enter
2.7 Installing Vsphere Client
Install Vsphere client.
Open Vsphere Client
Enter Credentials like VM IP Address, Login ID and Password.
Press Enter.
Note: After installing Workstation and Vsphere client make sure that Virtualization is enabled in system. We have to enable
Virtualization because if it is disable we can’t run Vsphere client.
Installing OS in VM
Right click on VM.
Click on Edit Settings.
Go to CD/DVD option and click on it.
Choose option Data store ISO file.
Browse file and mount Server ISO image file.
Then press Enter.
Click on Host.
Go to Configuration Tab.
Click on Storage.
Then Right Click on Storage.
Then Browse file of OS.
Upload file to Data Store (DS).
Then click on Import File (Image file of OS).
After these steps the OS will start installing.
To check OS is installing or not Right Click on VM and Click on Open Console.
Removing VMs
To remove VM first the VM must be Power Off.
Right click and Click on Delete from Disk.
Then VM will be removed.
Note
ESXi is providing only CPU and RAM.
Data Store: It stores the Data of the VMs and it is present in Data Center
Step-3
2.10 Post Checks
Note: Disk volume can be Increased, New Disk can be Created, Disk can be remover but Disk volume can’t be Decreased.
All the process can be performed only when the VM is Power On.
To Extend or Decrease CPU and RAM/Memory the VM has to be Power Off. Without Power Off CPU and RAM can’t be
extended or decreased.
Note:
CPU and RAM are Hardware Resources can be Increased or Decreased.
Storage is a Datastore – Hard Disk which can’t be Decreased only can be Increased.
2.11 How to mount an ISO Image and Applications to VM
There are 3 ways.
Host Device: In this case the client asks us to install ISO Image or Application which are with him. We ask the client to copy the
ISO Image file in Pen Drive/CD and tell him to insert the Pen Drive to the USB ports of the Virtual Machine or Insert the CD in
CD Drive of the Virtual Machine. When This steps are done then we Login to VM and install the ISO Image file or Application.
Right click on VM
Click on Edit Settings
Click on CD/DVD
Then click on Host Device and Upload the ISO Image file/Application
Client Device: Local Device (Own Laptop) containing the ISO Image file/Applications which are need to be installed in VM.
Client Device will only work when the VM is Power ON.
Right click on VM
Click on Edit Settings
Click on CD/DVD
Then click on Client Device and Upload the ISO Image file/Application
Data Store ISO File:
Right click on VM
Click on Edit Settings
Click on CD/DVD
Then click on Data Store ISO File and Upload the ISO Image file/Application
2.12 How the Data is stored in VM.
VM data will always be saved in File State only. There are different types of Virtual Machines Files when VM is created.
1. VM Name.vmx - Containing Virtual Machine Configuration File( Base Files/Main Files of VM (Details like Number of
CPUs, Hard Disk, Memory etc.))
2. VM Name.vmxf – Descriptor File(Provides Teaming assistance to Base file)
3. VM Name.vmdk – Contains VM Hard Disk Files.
4. Flat.vmdk – Whenever Read/Write Operations are performed on VM Disk level all files are saved in this file.
5. VM Name.vmss – Contains Suspended State file whenever the VM is suspended. This file will automatically create
when VM is suspended and automatically removed when VM is Power ON.
6. VM Name.nvram – Contains BIOS file.
7. VM Name.vmsn – Contains Memory Snapshot Files.
8. VM Name.vmsd – Contains Data Snapshot Files
9. Delta.vmdk – Contains Snapshot Background/Mother File.
10.VMware.log – Contains the data of Users Login and Logout details and what work has been performed.
11.VM Name.vswap – Contains Virtual Memory Files.
12.VM Name.vmtx – Contains VM Templates files.
By default when VM is created these files are created. They are
.vmx
.vmxf
.vmdk
Flat.vmdk
.nvram
VMware.log
.vswap
How to Check File of VM
Click on VM whose files need to be viewed.
Click on Datastore tab.
Right click on the Datastore.
Click on Browse files.
Then we can view the Files of VM.
2.14 Can CPU and RAM/Memory increased when VM is Power On
This can be done when CPU and RAM/Memory Hot Plug is enabled.
To enable Hot Plug first we should Power Off VM.
Right Click on VM.
Click on Edit Setting.
Click on CPU
Extend it and Enable CPU Hot Plug.
Then click on RAM/Memory
Extend it and Enable RAM/Memory Hot Plug.
Then Click Ok.
After that Power On the VM.
And we can Increase/Decrease CPU and RAM/Memory even the VM is Power On/Online
Note:
According to VMware Increase/Drecrease CPU and RAM/Memory when VM is Power Off is good for better
Performance of VM. Increase/Drecrease CPU and RAM/Memory is Offline Activity because it requires Down Time.
Whereas Hard disk can be Added, Extended or Removed while the VM is Power On because it does not require
any Down Time for doing this activities.
3. VM DISK PROVISION
1. Disk Provision in VM/Disk Type in VM (How the Disk will get storage in VM)
There are 3 types.
Thick Provision Lazy Zeroed (TPLZ)
• Storage will be allocated only when the 1 st Write operation done on Disk Level.
• Until the file with some data is not created the prescribed storage is not allocated.
• For Example: If a VM is created with 100 GB storage and one Hard Disk is created under TPLZ
with 20GB. The remaining Storage should be 80GB but still it shows 100GB. The prescribed storage
will only be allocated when the 1 st file with data is created. At that point the total prescribed data
will be allocated Thick Provision Eager Zeroed (TPEZ)
• Irrespective of the data usage the storage will be allocated.
• It will not ask for data for storage.
• Estimation is easy while creating VMs.
Thin Provision
• In this Storage will be allocated based on the data of the file.
• We can create Disk with large Storage if in future we are extending the Disk.
4. VM MEMORY TECHNIQUES
1. Memory Techniques in VM
To make the Communication between ESXi Host and VM. Tools are required.
VM Tools are nothing but Set Of Drivers.
This Set Of Drivers need to be installed on VM so that VM can perform smoothly.
This Set Of Drivers need not to be downloaded because while creating VMs the ESXi Host will Automatically Grasp
the Drivers.
Whenever the ESXi Host get Updated with New Set of Drivers. The VM will not be updated with new Set of Drivers it
will be running with Old Version of Drives. If the VM is running with Old Drives it will alert us by saying that New
Drivers have been updated on ESXi Host. Then we need to update Old Drivers with the New Drivers.
When VMs are Power Off the Tools will not Run on VMs.
2. Advantages & Disadvantages of Not having VM Tools
Advantages Disadvantages
Mouse Moment will be Good. Restricted Mouse Moment.
Video Resolution will be good. Inadequate Video Resolution.
Color Depth will be good. Inadequate Color Depth.
Synchronize Time w.r.t. ESXi Host. Unable to synchronize Time w.r.t. ESXi
Takes Quiesce Snapshots. Host.
Network Speed will be good. Unable to take Quiesce Snapshots.
Copy, Paste, Drag and Network Speed can’t be predicted.
Drop options will work. Copy, Paste, Drag and
Drop options will not
work.
How to Install VM Tools (When Tools are not Present in VM)
Right click on VM.
Click on Guest OS.
Click on Install Tools if tools are not present in VM.
Click on Mount.
Then open VM Console.
Open This PC.
On DVD drive there will be a file containing Set Of Drivers.
Click and Run the DVD.
Then Click on Next until Finish come.
Click Finish and Reboot the VM.
When Updated tools are available (Already Old Version Tools running on VM and Need to update with New Version Tools)
Note: For updating the tool we don’t require any downtime but the VM has to be Reboot so that it can perform better.
4.0,4.1 7
5.0 8
5.1 9
5.5 10
6.0 11
6.5 13
6.7 14
This is Offline Activity. We have to Power Off the VM to Update to New Features for VM. So that VM can perform well.
Once VM is updated with the New Hardware Version then we can’t get back to the Old Version.
This requires Downtime For Seconds.
6.2 How to Update VM Hardware Version
Power Off VM.
Right Click on VM.
Click on Update VM Hardware Version.
Click OK.
7. SNAPSHOT
1. 6.2 Snapshot (Backup For VM)
It is a VM Feature only for VM.
Snapshot is used to capture Present State of the VM Configuration Data.
We use Snapshot Feature at time of Uncertainty (If we have any doubt that we may lose the data of VM while Updating
Tools or VM Versions or Any Application which may lead to crash of VM and the whole data will be lost. To eradicate
this situation we perform Snapshot. So that we may not lose our Old Data)
By this it is very easy to recover the Old Data.
It is Online Activity and does not require any Downtime.
Maximum of 32 Snapshots we can take for VM.
There are 4 types of files will be created when we take Snapshots. They are
.vmsn – Snapshot Memory File
It Captures VM Configuration Files like CPU Memory File, Memory Files etc..
Delta.vmdk
It is a Write Data process.
After taking a Snapshot. All the newly added data will be save on this file.
Ex.- If we have a VM with Hard disk data of 20GB and we take Snapshot at that time and we add new data of 5GB after
taking
Snapshot. This 5GB of data will be saved on Delta.vmdk.
And all the Write operations will be done on Delta.vmdk.
Flat.vmdk
It is a Read only process.
The Old data will be stored on Flat.vmdk file.
If the New Application crashes only the New Data will be erased and Old data can be
retrieved. Note:
ESXi does not have the option of snapshot.
Flat.vmdk and .vmdk are Read only and we call them as Parent Disk.
.vmsn, .vmsd and Delta.vmdk are Write all performance will be running on this file. So we call them as Child Disks.
For VM Tools only Delta.vmdk and .vmsd files are created.
2. Formulas
Quiesce Snapshot
We can take Snapshot only when VM Tools are present in VM.
By choosing this option VMware has given assurance that we Revert Back 100% of data without any loss.
More data is captured and saved.
It is Offline Activity and VM will be Power Off after Revert.
Note:
Maximum Retention period for Snapshot is 72 Hours.
Require at least 20% free space in Data Store of VM.
Situations When We Take Snapshot.
1. When VM Tools are Updated.
2. When VM Hardware Version are Updated.
3. When Application are Upgraded.
4. When Windows Patch Updated.
Note:
Whenever Snapshot is taken for VM we can’t Extend A disk but we can Add Disk.
The reason we can’t extend Disk after Snapshot because at that time Disk will be in Read Only State.
But CPU and Memory can be extended even when snapshot is taken.
8. V CENTER
Level 2 Tasks
8. VCENTER
1. Vcenter – It is Centralized Management Server where it manages all the ESXi Host and Virtual Machine at a Single Login.
Here Putty is not included for Vcenter Login because Putty can handle only 1 Host.
For Single Host Login or Vcenter Login we can Login through Vsphere Client tool.
For Vcenter access through Vsphere Client.
IP/Name: IP/Vcenter Server Name
User ID: [email protected]
Password: ********
For Vcenter access through Web Client.
Enter http://IP/ Vcenter Server Name:9443 (9443 is Port Number without entering the Port Number we can work on Web Client).
User ID: [email protected]
Password: ********
8.3 Architecture of Vcenter Vcenter
Bangalore Mumbai
Data Centre Data Centre
Cluster
VM
Deliver VM to Client
Cluster
Safeguard the ESXi Host.
It used only when 2 or more ESXi hosts are present.
By using Cluster Migration can be done.
N number of clusters can be created under a Data center.
Maximum of 64 hosts can be added to a cluster.
Inventory Service
If this Service is running then only we can perform operations in Vcenter.
To see that Inventory service is running. Type services.msc in Virtual Machine.
If it is running its ok.
If not running Restart the VM.
Single Sign On
If it is not working Users can’t login.
It is Authentication User.
8.5 Difference Between Vcenter 5.5 & 6.0
Feature Vsphere 5.5 Vsphere 6.0
VM Hardware Version 10 11
1. Management Agents
By default Management agents will be installed when VM is added to a Host. There are 3 types of Files are created.
Vpxd
It is Agent of Vcenter Server.
If you want to Login to Vcenter. This file is required for Login Purpose.
It is Secure Login.
Files saves in this location – C Drive/Program Files/VMware/Vcenter/Vpxd.logs
If you are not able to Login VM. To Troubleshoot it just Restart the VM.
Vpxa
It is Mini Vcenter Server Agent.
It is Mediator between Vcenter and Host.
It provides communication between Vcenter and Host and Vice Versa.
Whenever the Host is added to Cluster Vpxa file is automatically installed.
Hostd
ESXi Host.
It is also called as
Watchdog. Note:
The host can’t communicate directly with Vcenter. For communication Vpxa file act as intermediate/Mediator between
Vcenter and Host.
To establish connection we have to restart Vpxa and Host. When Vpxd is working.
9.2 Architecture Of Management Agents
Vpxd (Vcenter Agent
Hostd(ESXi Host)
Note:
4. Scenario of Cloning
Snapshot Clone
Temporary Backup. Long Time Backup.
72 Hours after that need to Follow When Cloned VM is Deleted No effect to
Up with Client. Main VM.
When Reverted Data Loss. VM will not be Slowed.
VM will be Slowed Down When More Data Stored
Snapshots are Available.
Less Data Stored.
Difference Between Snapshot and Clone
Template Clone
Has No State. Has VM State.
Changes can’t be made. Changes Can be made
More Secure. Less Secure
VM
Clone
Template
Convert to Template. Clone to VM. Clone to
VM will be converted to
Template. Primary VM will Template.
is not possible. be Available. Primary VM will
Power On Cloned VM will be be Available.
Offline Activity. created. Template will be
Power On is possible Created.
for both Primary and Power On is Only
Cloned VM. possible for
Online Activity. Primary
VM.
Online Activity.
12. V MOTION
1. VMotion (Vcenter Feature)
Live Migration of VM Resources (CPU and Memory/RAM) from One Host to Another Host.
No Downtime is required.
Online Activity (No need to Power Off VM).
Online Migration.
12.2 Pre-Requirements For Vmotion.
Minimum 2 ESXi hosts in a Cluster.
Should be same CPU Family.
Common Data Store.
VM Kernel Port Group should be Enable.
Need to check for Affinity and Anti-Affinity rules.
Sufficient amount of Resources available in the Destination Host.
Require Vmotion License.
1. To enable EVC.
Go to Cluster.
Go to Configuration.
Click VMware EVC.
EVC will be Disabled.
Click Edit.
2 Options will come.
o Enable EVC for AMD Host.
o Enable EVC for Intel@ Host.
Select any base on your Preference.
Click Finish.
12.5 Scenario when VM are moved from One Host to another Host
Firmware/Hardware Update is done.
When VM Resource usage is high.
Note:
To migrate VM to Destination Host. The Hosts should have Common Data Store.
Live Migrating the VM Files from one Data Store to Another Data Store.
No Downtime Required.
Online Activity.
Takes long time to migrate.
2. Pre-Requirements For SVmotion.
Minimum 2 Data Store in a Cluster.
Should be same CPU Family.
Common Data Store.
VM Kernel Port Group should be Enable.
Need to check for Affinity and Anti-Affinity rules.
Sufficient amount of Storage available in the Destination Storage.
Require SVmotion License.
3. Migration of VM from One Storage to Another Storage
Right Click on VM.
Click on Migration
Select Change Storage Only.
Click on Advanced (If want to change Types of Storage like TPLZ, TPEZ and Thin Provision)
Click Finish.
Scenario When VM are moved from One Storage to Another Storage
Lack of Storage
More burden on Storage.
Note:
To migrate VM to Destination Storage. The Hosts should be connected with Destination Storage also.
14. VM HA
14.4 Background
Technology Until ESXi
4.1
Automatic Availability Manage (AAM) is installed whenever ESXi host is added to
Cluster and HA is Turned On/Enabled.
Vpxa agent, Hostd agent and AAM agent will be installed.
AAM works on Primary and Secondary
concept. Primary
1st 5 Host will be primary. The Hosts in Primary will be Safeguarding the Hostsin Secondary.
The Hosts in Primary will be Pinging/ Checking Heart Beat for every 5 seconds with Hosts in Secondary
to get communication.
If any Host in Secondary is not responding to the Hosts of Primary. Then Hosts in Primary is having the Liability
for migrating the VM from Host of Secondary to Hosts of Primary.
Secondary
All remaining Host will be Secondary except 1st 5 Hosts.
Note:
If any of the Primary Host is Down. The 1st host of Secondary Host will act as Primary Host.
From ESXi 5.0
Fault Domain Manager (FDM) is Installed when Host is added to Cluster and HA is Turned On.
FDM works on Election Process (Master and Slave)
There will be 1 Master Host and remaining all Hosts are Slaves.
Master Safeguards the slaves.
To choose Master there are 2 methods.
o Based on Highest Datastore Count – The host with Highest Datastore Count will be taken as Master.
o Based on MOID (Management Object ID)
This will come into picture when Master is not determined through Highest Datastore Count.
Whenever the host is added in Vcenter. ID will be created automatically for that Host.
The Host with Least ID number will become Master
Note:
Whenever the Master Host is Down. The nest Master will be chosen from Re-Election.
14.5 Difference Between AAM and FDM
VM
Clone
Template
Convert to Template. Clone to VM. Clone to
VM will be converted to
Template. Primary VM will Template.
is not possible. be Available. Primary VM will
Power On Cloned VM will be be Available.
Offline Activity. created. Template will be
Power On is possible created.
for both Primary and Power On is Only
Cloned VM. possible for
Online Activity. Primary
VM.
Online Activity.
15. DRS
Automatic migration.
Whenever Resources of VM is putting High Burden on ESXi Host. At that time DRS come into picture and migrate VM
from
Source Host to Destination Host without any Downtime Requirement.
Online Activity.
Alerts are raised by DRS when there is a sudden increase in Resource Usage at that time DRS can’t handle this situation.
So DRS alert us to make changes manually.
2. DRS Types
Fully Automated: By choosing this type there is no requirement of interaction from Administrator. By Enabling DRS VMs will
automatically migrate from One Host to Another Host.
Partially Automated: In this type Recommendation will be given to Administrator by DRS. Require some interaction to from
Administrator to migrate VMs from One Host to Another Host.
Manually: In this type Recommendations will be given by DRS but need full interaction from Administrator.
Click on Cluster.
Go to Configure Tab.
Click on Vsphere DRS.
Choose DRS Type.
Go to Admission Control make changes if required.
Click Ok.
15.6 Power Management/Distributed Power Management (DPM)
Click on Cluster.
Go to Configure.
Go to VM/Host Rules.
Click on Add.
Enter Name of Rule.
Select Keep VM Together Rule
Click on Add.
Add VMs.
Click Ok.
Rule is created.
Separate Virtual Machines
In this rule the selected VMs will be put into different Hosts and they will never be in same Host again if this rule is created. And
Cluster will decide which VM has to migrate to which Host.
Click on Cluster.
Go to Configure.
Go to VM/Host Rules.
Click on Add.
Enter Name of Rule.
Select Separate Virtual Machines Rule
Click on Add.
Add VMs.
Click Ok.
Rule is created.
VM to Host
In this rule first we have to create Group for both VM and Host. By choosing this rule we are
Combining/Separating the VM and Host Groups with “MUST and SHOULD” options.
Click on Cluster.
Go to Configure.
Go to VM/Host Rules.
Click on Add.
Enter Name of Rule.
Select VM to Host Rule
Click on Add.
Add VMs and Hosts.
Select Must and Should operations
o Must run on Hosts in Group
o Should run on Hosts in Group
o Must not run on Hosts in Group
o Must not run on Hosts in Group
Select any option based on client requirement
Click Ok.
Rule is created.
Enter Name of Group.
Select VM as Type of Group
Click on Add.
Add VMs.
Click Ok.
VM group is created
To create Host Group
Click on Cluster.
Go to Configure.
Go to VM/Host Group.
Click on Add.
Enter Name of Group.
Select Host as Type of Group
Click on Add.
Add Hosts.
Click Ok.
Host group is created.
16. FAULT TOLERANCE
1. Fault Tolerance (FT)
It is a VM feature.
Fault tolerance is the property that enables a system to continue operating properly in the event of the failure of (or one or
more
Faults within) some of its components.
If we enable FT for VM a Secondary VM is created in another Host. Whenever the Primary VM goes down the
Secondary VM will become Primary VM and perform operations due to which there will be no downtime required.
Simultaneously the Secondary VM will be running.
This technique is called Vlock Stepup Technique.
Continuously there will be exchange of Heartbeats/Communicating/Ping between Primary VM and Secondary VM.
4. How to Enable FT
Right Click on VM.
Go to Fault Tolerance.
Click Turn On FT.
Select Datastore.
Select other Host where Secondary VM will be created.
Click Finish.
5 To test FT Working
Click on VM.
Go to Summary.
Drag down and see FT dialogue box will appear where VM is Protected State and Which ESXi host VM exist will appear.
Again Right click on VM.
Go to Fault Tolerance.
Click on Test Failure.
Automatically Primary VM will Power Off and Secondary VM will come into picture.
Now Secondary will become Primary and Primary will become Secondary.
Again click on VM.
Go to Summary.
Drag down and see FT dialogue box will appear where VM is Protected State and ESXi host for that VM will be changed.
17. CONVERSION
1. Conversion
Converting Physical Machine/Virtual Machine to Virtual Machine i.e. Converting PM OS, Application, Files and Data into
VM.
Vmware Converter Standalone Software is required and to be
installed. There are 3 Types of Conversion
P2V: Physical Machine to Virtual Machine (Regularly Used)
V2V: Virtual Machine to Virtual Machine (Rare Cases)
V2P: Virtual Machine to Physical Machine (Not Used mostly)
2. P2V – When we are planning to convert PM to VM environment using Converter Software we choose P2V.
o Local Machine – Own/Local System/Machine is converted to VM. By choosing this no need of any information it
will automatically fetch the information.
o Remote Machine – System/Machine located at some other location. Requires information of Machine like IP
Address, User Id, Password and Which OS used.
Choose based on your requirements.
Click Next.
Next select the Destination Type.
o VMware Infrastructure VM.
o VMware workstation or other VMware VM.
Choose based on your requirements.
Next Enter VMware Infrastructure Server Details.
o Server – IP address of Host where VM should be Created.
o User Id.
o Password.
Click Next.
On Next window we will see how many VMs are running on that Host.
And Rename VM if required.
On Destination Location Choose Datastore and VM Version.
Click Next.
On next window Conversion Options will appear where we can edit/change settings.
o Data to Copy- What data we are copying.
o Devices- CPU and Memory
o Networks- Need to disconnect from network so that there is no clash between PM and VM (Host Name Conflict is not
there when Power On VM).
o Services.
o Advanced Option – We can Synchronize Source and Destination (Synchronize changes that occurs on
Source Machine) and can Install VM Tools.
Then Click Next.
Summary will appear – Shows whatever changes we have made or Review All changed Settings.
Click Finish.
PM will start Converting to VM. It will take some time based on PM Data.
After PM is converted to VM.
Login to Vsphere Client or Web Client.
Before Power On VM.
Right Click on VM.
Click on Edit Settings.
Check Out the Hardware Properties.
Remove Unwanted Hardware like Floppy Drive, Ports etc.
Now Power On VM.
Open Console and Perform all Post Checks.
Before delivering the VM ask Client to disconnect the PM form Network.
Then Deliver VM to Client
17.4 V2P
If planning to convert Virtual to Physical environment.
If Client want to convert Virtual to Physical environment don’t convert VM to PM. Just ask client to connect PM to
Network. Once he connect to PM ask his conformation to remove VM from Host.
18. UPDATE MANAGE
1.Update Manager (UM)
It is used to Upgrade (Entire Version) ESXi from one version to another version and also
Updating Patches (Fixing Bugs).
UM is Extension installed on Vcenter Server.
UM will work only at Vcenter Level. Without Vcenter UM will not work.
Note:
When Patched are installing the process stops at 27% don’t do anything because process is still running.
If UM is failing to Update Patches. Then we can update Patches through Putty.
For Status Monitoring – Open Remote Console of ESXi Host.
18.5 To Upgrade ESXi Version
Distributed Switch
It is a Vcenter Level Configuration without Vcenter DS is not possible.
It is Single time configuration
20.4 Vsphere Standard Switch Steps
Login to Host through Vsphere.
Click on Host and Go to Configure and Click on it.
Go to Network and Click on it.
Click on Properties to add New Standard Switch.
Click Add.
Enter Name of Switch.
Click Finish.
20.5 To Add VM to Standard Switch
Right Click on Host.
Click on Create New VM.
Enter name of VM (Like Production, Development etc).
Click Next.
Select Datastore and Click Next.
Select OS and click Next.
Based on your requirements Change number of NICs.
Select NIC Network.
Click Next and Finish.
VM will be added to Standard Switch.
Priority
5 types of Priorities. P1,P2,P3,P4 and P5.
Low
Medium
Emergency
Latent Change
Low
o Don’t require Downtime.
o Adding Disk, Expanding Disk etc.
o Need approval from Manager/SDM.
o Low rick changes are based on Request and Incidents.
Medium
o Involves Downtime.
o CPU/RAM changes, Firmware Update, P2V conversion, Tools and Version update etc.
o Need approval from
Client/Customer. Note:
We can’t make changes in Medium Risk Changes once we get the Ticket.
To make changes1st we have to discuss in CAB meeting regarding the changes. This CAB meeting
will be held on every week on Tuesday/Wednesday. On this meeting we have discuss the list of
changes we need to perform.
Change Advisory Board (CAB): All Medium Changes which need to be changed are discussed here
in this meeting.
Emergency
o Approved by Manager.
o Sudden requests from client side.
Latent Changes
o The respected task is completed first then Change Tickets is Created.
o Approved by
Manager. Problem
Service Disk will 1st interact with us and ask Account Number or Contract ID for verification to
see Contract Agreement with them still exist or not.
Next they will ask about the Problem.
Then they will create Service Request Number.
And redirect to Executive Engineer.
If the problem is P1 then Executive Engineer will clear the problem.
And brief explanation will give how they rectified the issue.
Web Interface
For P2, P3 Issues.
Service Disk will 1st interact with us and ask Account Number or Contract ID for verification to
see Contract Agreement with them still exist or not.
Next they will ask about the Problem.
Then they will create Service Request Number.
And redirect to Executive Engineer.
If the problem is P2 or P3 then Executive Engineer will ask for Log Files.
And they will mention how we should download Log Files.
2 Methods to Download Log Files.
o Through Putty
Open Putty.
To save Log file to desktop.
Click on Logging.
Click on All Session Output.
Click Browse to choose Destination where Log file has to be Saved.
Then Click Ok.
Enter Host Name or Host IP Address.
Enter User ID and Password of Host.
Type vm-support.
Log files will appear.
After all Log Files appear.
Type exit in Putty Log file will be downloaded on your System.
Log Files will be downloaded in any of the Datastore.
Download the Log file.
Go to Chrome and type Inbound VMware (To export the Log File).
Enter User Id as inbound and Password as inbound.
Click on Create Directory (Put Directory name as Request Number)
Click on Upload.
Click Ok.
And intimate the Executive Engineer about that Log File has been uploaded.
Online Activity (VM not required to Power Off) Offline Activity (VM required to Power Off)