5.5, VMware

Converting a Physical Server to VMware Machine (P2V)

VMware vCenter Converter transforms your Windows- and Linux-based physical machines and third-party image formats to VMware virtual machines, So
Bayan Senur whom is the manager of Jaguar & Land Rover Contact Center have a recording server that almost crashing and there is no enough storage on server and she need that space so the best thing is to move it to Virtual environment were we can add space and back up the system without worrying any more

I have the EXE in my folder so lets get to it1

Choose Next

Select agree to the terms
Choose the default folder to save the installation
I choose Local Installation
i checked the box to join the VMware which is optional
Now select Install to start the instalation

Select Finish to run the Converter11
First step Select Convert Machine option
Now select the machine option
in my case my machine is powered on
then enter the detail of machine IP address (which is Jaguar Company Speechlog recording system ;D Sorry Bayan i had to test on something ) and username and password for the machine
The Agent will be deploy to the machine remotly
you can check if the Agent been deployed by going to Control Panel – Program and Feature
Now next step is select the Infrastructure that im using which is VMware infrastructure then Enter the IP Address of the vCenter with the admin login16
Next step is to chose the Datacenter were you want the machine to be17
then you choose the cluster and host that you will be installed on and the VM version
you can see there is an (X) error showing on the Data to Copy option and as you see the F: Drive have 368 G which bigger than our Host 19
Select Advanced 20
i made sure that i will not use the F drive in this process But in real life you need to have a bigger HD
and i made the C Drive as Thin
Also an optional i change the vCPU23
In Advanced i made sure to remove any system restore point so it will not utilize more space
Press Finish

Converting process will start 27
and its completed
you can check the job process

Now Lets check our vCenter32
Select Host and Cluster
and here under the Host that we choose earlier our Speechlog-PC Machine34
i will use the credential to login  35
Thanks to an easy Converting

5.5, VMware

Vmware Affinity

in the last blog “VMware DRS” i show you how to migrate machine automatically and this was the result, it moved my VM Machine “Windows 10-A” & “Windows 10-B” to the ESXi host “”
but what if i do not want those two machines to be together and i want “Windows 10-A” & “Windows 10” to be together and “Windows 10-B” to be far away from “Windows 10-A” and not share the same host.
well there is one solution “Affinity and Anti-Affinity”
so if you go also to your Cluster – Related Objects -Virtual Machines
Okay lets adjust the component so we can see the host of each Machine2
Add the Host Field
As you can see here
Windows 10 on host (
Windows 10-A on host (
Windows 10-B on host (
lets create first rule that will join Windows 10-A & Windows 10 Together
so lets go to Cluster – Manage – Settings – DRS Rules
Add a new Rule – Choose a Name
Select to Keep Virtual Machine Together
Now Add the Machine
I choose Machines:
Windows 10
Windows 10-A
Now Choose OK
as you can see if you highlight the rule it will show you the machine affected by that rules 9
Now if you go back to Cluster – Related Object – Virtual Machines
you can see that Machine Windows 10 Joined the other Machines and now become hosted by host
and you can see the Task Detail here11
As i remembered we mention that we want “Windows 10-B” to be far away from “Windows 10-A”
so lets add another rule and this time we choose to (Separate Virtual Machines)
Lets choose Machines Windows 10-A & Windows 10-B13
Now press OK
and if you highlight the Rule you will see the affected Machines15
and if we go to the Task we will see that Machine Windows -A is moving from host and since there is a rule to keep Windows10-A and Windows 10 together in that case also Machine Windows 10 will be moving to the other host
and Yup both machine now faaaaaar away from Windows 10-B
and both of Windows 10 & Windows 10-A hosted on

Okay now we finish with VM to VM Relationship
what if i want to Keep a specific VM tagged to a specific Host
Here we go to a new thing called : DRS Group
Add a DRS Group and choose a name
and choose a Type should be VM DRS Group
First Select the VM Machine and i selected Windows 10-B
Note: make sure you dont select the wrong VM cause it will cause an issue since you have another rule that separate Windows 10-A from Windows10-B
and its added

Now Add another DRS Group and choose a name and Type should be Host DRS Group25
and select the Host needed
and then press OK

Now go back to the DRS Rule and add a rule
Type: Virtual Machine to a Host
and select the VM DRS Group and Host DRS Group that you created
and if you highlight the rule you will see the affected Machine30
Now you can see VM Windows 10-B moved to
an since there is an older rule that separate windows 10-A from Windows 10-B so the VM windows 10-A moved to host
also there is a rule that Join VM Windows 10-A & Windwos 10 together then the VM Windows 10 moved to host
i know that a really confusing but i suggest you read it couple of time and test it your self to get the matter
and that is the beautiful result
and you can go to the Cluster – Monitor – vSphere DRS – History to see the procedure 33





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