5.5, VMware

VMware DRS (Distributed Resource Scheduler)

Hello Again
So in my earlier blog i manually migrate VM Machine from my first host to the second one, what if i want for my virtual machine to be moved automatically??? the Answer is:
DRS (Distributed Resource Scheduler)

lets start by the configuration but first if you notice all my machine under Host [] nothing under []or[]
so before we start the earlier two blog is very important to be establish first for VMware DRS to work
Shared Storage
Right Click my  Datacenter – New Cluster2
Give it a name and check the box DRS [Turn on] and you can choose the Automation Level and here i will show you the Fully Automated. most of the admin prefer the Partially automated as the VMware will give you suggestion and you could follow or not or Manual were an admin give suggestion3
Second step is i will drag my hosts under the Cluster4
and it will ask me what to do with the VM and i choose my first option and press Ok5
and automatically it start moving the VM from under my host to other Hosts
and the end result as you can see my 3 Virtual Machine moved under my biggest host []
and if you go to the cluster – vsphere DRS tab – History
you see the time and date those machines moves
(Wow i cant believe i wrote this blog in 2018 and never shared it, dont blame me i was chasing pal alto certificate)8
and also you can see the CPU Utilization9
and select the VM to see each Utilization 10







5.5, VMware

Migrate VMs with VMware vMotion

vMotion enables live migration of VM machines from one Host to another with no impact on the Daily operation But Let me tell you this
Before migrating a virtual machine with vMotion, ensure that your hosts and virtual machines have the same network card & share the storage believe me you don’t want your machine to come with different IP Address  ;D

So Similar to how we did earlier when we add a Storage in the last blog we need to add a VMkernel specific for vMotion
in your Home Dashboard go to Host and Cluster1
Select your Host – Manage – Networking – Virtual Switches – Add Host Networking
Choose VMkernel Network Adapter
Choose a New Standard Switch
Click on the + Sign to add a network card5
Select the card you want to use6
Press Next 7
Here we will Check the Box for vMotion Traffic8
Give a static IP Address to the VMKernel9
Press Finish10
Now it’s created we are ready to move to the next step11

Now as you can see my VM Machine (Windows 10) is located under my Host and using my ISCSI Storage (ISCSI-A)
Right CLick on the Machine and Select Migrate
Now i have the option either to change the Host of the Machine or Change the Datastore or Both
since in my last blog i added an External storage then i will change Both31
I choose to move it to the Host and the compatibility check sign is successful
(the red sign Most of the time memory size give a red sign you have to take care about it but this is just a lab) 33
Now choose the storage you want to move to 34
It’s better to choose the Recommended option35
Select Finish36
and you can see your Machine is Moving in the Recent Task
And Walla your Machine Moved under host 38
and if you go down you can see the storage information  which show ISCSI-B39


5.5, VMware

Clone your perfect Virtual Machine


okay i know
Same face, Different Hair style and Different dress
its like i created a copy of my self
Guess what!!
VMware have the same Capabilities called (Cloning)
Cloning Feature allow you to create a copy of your perfect Virtual Machine instead of repetitively creating a VM from scratch over and over

So this is how you can do it
Select your Perfect VM Machine1
Right Click and choose – Clone to Virtual Machine
Select a name to your new machine and choose a Datacenter3
Select which Host you want to put your VM in4
Select the Storage5
I will not go in detail of Edit the Machine file but for a better practice you need to do it6
Press Finish7
you can Monitor the recent task while the machine is been created
and just like that your machine is created9.PNG
Of course you need to change the IP Address to save your self from Conflict IP Address and PC Name cause we did this clone without operation system customize




5.5, VMware

How to Add ISCSI Storage to VMware ESXi

When i start my road to VMware in 2013 this is the subject that kill my head and i got the help from a friend of mine so the thanks here goes to Mohammed Hadi Bafaqeer

ISCSI Storage is one of the best solution for VMware Design cause you cant depend on the Storage of the server in case the server crashed all your data crashed and you cant retrieve it and also it can help you in enabling feature like Vmotion

so lets start configuring
in Home Page – choose “Hosts and Clusters”
Select the Host3
Go to Manage tab – Networking – Virtual Switch 4
Choose to Add host networking5
Select the VMKernel Network Adapter 6
I use the same vSwitch since I have only one network interface in my server that is up now.
I suggest to have a separate network vSwitch for Storage1.PNG
Put name to it and leave the rest for default and no need to enable any Services11
It better to select a static IP but since this is a lab i let it Automatically obtain an IP from DHCP12
and you can see your vSwitch0 when you highlight it it show the Storage3

now Second Step
go to the host – Manage – Storage – Storage Adapter –
+ Software ISCSI Adapter15
Press OK
Now highlights the ISCSI Storage Adapter
Select tab Target – Add18Put the IP Address of you Storage
Mine is press Ok19
Now the Target is added20Now I will associate the VMKernel Adapter with it
Select Network Port Binding – +21Select the Storage VMKernel Adapter that I configure in the beginning of the blog
It is Added and show status Not Used5Click In Rescan icon to refresh the page and 24

And it change from Not used to Last Active
6Now Third Step is to add Datastore
Select Host – Related Objects tab – Datastores –
Choose to create a new datastore27
Select the Location28
Choose the Type29
Choose a datastore name90
and select the Version31
ok here i only chooses to use 50 Gig of my 93 Gig 91
Then hit Finish92
as you can see the storage been added under my ESXi host
and if i go to my second host i will see the same shared Storage
Now i want to increase my Storage cause of the 50 Gig is not enough and i want to utilize my whole storage
in my Home Page go to Storage
Then go to select the storage i create
ISCSI-A – Manage – Settings – General – Increase 101
Select the Device102
Use the free space103
Increase to the size you wish 104
And simply it increase now hit finish105
and as you can see it change from 50 Gig to 93 Gig106Now lets Create a Virtual Machine to be inside that storage
Choose to create a virtual Machine2
Choose the Datacenter3
Select the host4
and now you choose the storage you create earlier5
Choose the compatibility version6
And select the Guest family
i am about to install Windows  ;D7
ALmost finish i will just select my ISO file8
Windows 10 CD yessssssssss9
Hit Next10
and that it’s press Finish11
Power on the Machine12
open console to see the procedure
and proceed with he installation16
And that it is
install the windows on our new storage20



5.5, Active Directory, VMware

Integrate VMware vCenter Single Sign-On (SSO) with Active Directory

Single Sign-On (SSO) is a part of vCenter Installation and important step in Authentication and Authorization
once you install vCenter you would have a “vSphere.local” Domain in your server, it would be better if you could integrate your existing Microsoft Active Directory (AD) environment with your organizational structure of groups and users.

So before we start with the configuration i will login with my Domain User and check that i can see anything (vCenter, Datacenter or Hosts)
And as you can see under my vCenter there is nothing of my Datacenter or Hosts
So to start as my luck i added my server to a domain already in my Earlier Blog
so to complete the steps here and add give permission to users
Go to Administrator – Single Sign-on – users and groups
so to give a permission for my self
From drop down i can change the “vsphere.local” to “mynaghi.com”
i put in the search my name so it will not list the whole organization
and if you go under Adminstration – Single Sign-on – Configuration – identity Sources

you see from were you get your configuration
for my case i already added my server to the domain4
so to configure the user and give him access so in Home Page
vCenter – vCenter Servers – Then Select the VC-CCIEROOT.Mynaghi.com
then click on “Manage Tab” – Permission – +
Select the Assigned role as Administrator
I change the Domain to “Mynaghi” and in the Search bar i put my name and Click Add 7
Now I press OK8
As you can see now it show under the permissions9
Now let me login using my Domain Username & Password again
and as you can see i can see under the vCenter my vCenter Servers, My Data Center and My Hosts11




5.5, VMware

VMware vCenter Server Appliance 5.5 (vCSA)

in my last Blog i show you how to install VMware vCenter on Windows Platform, well that is a history cause VMware decide to let go of it after vCenter 6.5 and complete with Linux. Yes linux virtual appliance running Linux and comes as an OVF and i download it to my Desk
So what i will show you is installation of vCenter Server Appliance 5.5

so let proceed with the installation
i login to my Host and
File – i choose to deploy OVF Template3
Browse to the location of my OVF5
Choose Next and it show detail of my OVF6
Choose a Name to my Machine and press Next7
Select the storage were i will install my machine to 8
I choose Thin Provision 9
Last press Finish10
Wait till Machine been Deployed
And finally Successfully Deployed
As you can see my machine been Deployed on my Host so i Turn it on by press the power13
Choose the VMware vCenter Server Appliance14

And it finish and it show the link for my vCenter Server which giving to me by my DHCP Server
go to my Firefox Browser and type the vCenter URL
Choose Advanced and make an exception 19
Now login to my vCenter using The initial default user name and the default password
username: root
Password: vmware20
First thing Accept the EULA21
Choose to configure the default settings22
And press start23
It will take time but then press Close25
And then you can see the Summary Page
Go to network Tab – Address
to change your configuration from DHCP to static 27
Type the required IP Address and Netmask
and Save your settings28

Press Refresh30
Go to vCenter Server Tab – Time tab
and Choose VMware Tools Synchronization and Save Settings
This gives you the option to synchronize the time of the guest OS with the ESXi host32
Then go to Database Setting and choose embedded33
Now to test the SSO Settings first we need to stop the Server
Go to vCenter Server Page – Summary
and press Stop front of the Server
Now go to SSO Tab and set the password of the Administrator and press (Test Settings) and it may take little time and then it as you see it show Operation was Successful34
Now when you press Save it will show this warning
its okay just press OK

And again the Operation was Successful
Now go back to Summary page and start the Server Again37
now go to your Explorer and browse to the ip address of the vCSA
and accept the warning38
now login with the
username: Administrator@vsphere.local
Password: you choose in the SSO39
And just like that it finally installed40

5.5, VMware

VMware vCenter 5.5

The Management King
well i show you in the last blog how to Install VMware ESXi 5.5
Imagin if you have multiple ESXi machine its nonsense to go to each machine and manage it, well today i will introduce The VMware vCenter which will help you to manage all your ESXi hosts from a centeral place and also it will introduce you to so many feature later on.

you can download it from VMware page but When vSphere 5.5 was released, 19 September 2013, its end of support date was also published.

So first there is two Option for vCenter installation either a windows installation or Server Appliance, This is a Windows installation so first thing make sure your server is joined to the domain and next step is installing of .Net Framwork on my Windows server
Let begin i have the exe in my D Drive

i will start the installation and choose to accept the License Agreement

and the installation is complete
now i attach the CD to my PC and will proceed with the installation5
I will choose the simple installation
which will install the main 4 item:
vCenter Single Sign-on
vSphere Web Client
vCenter Inventory Service
vCenter Server6
Press Next7
and then i will accept the license agreement8
and here you find that the server already joined and DNS is resolved successfully
check the box and press Next
Choose a password for your user
the default user for vCenter is (Administrator@vsphere.local)10
choose a name for your first site
Press Next
Choose where to save your installation file13
here is your configuration so simply press Install14

it may take so much time and it could hang so just when this error show just choose NO16
Accept the SSL Sha1 fingerprint17


since this is a lab and i dont have a license key i will just press Next20
Since this is my lab and i dont have an Existing Database i will choose to install SQL
i will use my windows login 22
Check those ports and then press next23
i choosed here small since its only a lab24
Press Next25
Press Yes26


The SQL Server installation start and it may take time
Press Finish
and the installation of all 4 items is done
31Now lets go to the Web
Allow the Adobe flash to run51
Now login to the web client using the Administrator username and Password
Username: administrator@vsphere.local
Password: *********
and here is our Getting started Page71
click on Home Tab and you can see all your beautiful Option
you know what lets not stop here and proceed with adding our ESXi host.
So First Let Add a Datacenter and Name it Jamjoom since that is the branch im working on
so from the Home Page go to
vCenter – vCenter Servers
Now on the vCenter Server Right Click – New Datacenter2
Name it Jamjoom
now if you see the Datacenters filed become 1
Now Click on the Data Center and it will lead me to the Datacenter Page were i can Right Click and Add new Host6
Put the IP Address of your ESXi Host and press Next1
Put the username and password of your ESXi 8
Accept the Security Alert for the SHA 1 thumbprint9
And as you see it detect the server hardware and vendor and model
Now click next to accept the Evaluation Mode (dont look at the expire date i created this blog earlier as part of the series ;D)
Press Next
Choose the Datacenter location for this machine13
Now press finish
and you can see the running task
and it added
Also i can login to the vCenter through the vSphere Client and see my Machine
choose to ignore
and as you see here that is your Datacenter (Jamjoom) that you created in the earlier step
also i will show you here to add a host through vSphere Client14
put the IP Address of the Host ESXi and also in the same step you will put your login username and password then press Next15
now accept the SHA1 thumbprint
and also it detect the Host vendor and Model and version17
Oh that cool i have a license on that server
lets not tell my manager about it   ;D18
and i will not choose to Enable Lockdown Mode so i press Next 19
Choose the Datacenter Location20
and Finish21
and that all it’s 22

And just like that we had two subject in one blog, installed the vCenter and add host it