5.5, VMware

VMware Storage DRS

So im finally back with a new blog
i know i been sleeping during the corona pandemic, so lets get to it
i previously explain how to configure the DRS in VMware Level and now we will do it in the Storage level
so in my previous blog i show you how to install Storage
so the reason for Storage DRS is to move machine from an over utilized storage to a none busy storage
here i will show you only how to install it and the result is similar to the VMware DRS
similar to the VMware DRS i will create a new Cluster

Go to vCenter – Datacenter – New Datastore Cluster
1

Choose a name and check the box to Turn ON Storage DRS2

Choose the DRS storage Automation to be Fully Automated3

Leave this section as it’s but sometimes this I/O check box could cause Error but this is a labso i would leave it as it’s
and  i played the thresholds a little bit so it triggered the storage automation 4

I selected the cluster here that need connecting to the Storage DRS
5

in this step i selected the 3 Storage that will be under this cluster  (ISCSI-A, ISCSI-B & ISCSI-C)6

At the summary page press Finish7

and now i can see all my storage is under the Datastore Cluster
8

now let me add a new Virtual Machine
10

Select Create a new Virtual Machine11

Select the Datacenter
12

Choose the Cluster were you want to install the VM 13

Now the BIG Step, no need to choose a specific storage, i can select the Storage Cluster and automatically the system will choose the storage14

Choose ESXi 5.5 and later15

Select the Guest Machine16

In the Customization page just press Next17

Now in the summary page you can see under the Datastore
the Machine chooses the ISCSI-B as (Recommended) by the ESXi DRS Storage
Click Finish to start deployment
19

From Recent Task you can see the Task been Deployed
20

Finally the Machine created under the Cluster and in the Summary page you see the Storage (Storage Cluster)21.PNG

;D

Standard
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

2
Choose Next
3

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

10
Select Finish to run the Converter11
First step Select Convert Machine option
12
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
13
The Agent will be deploy to the machine remotly
14
you can check if the Agent been deployed by going to Control Panel – Program and Feature
15
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
18
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
21
and i made the C Drive as Thin
22
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
24
Press Finish
25

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

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

Standard
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 “192.168.208.210”
8
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
1
Okay lets adjust the component so we can see the host of each Machine2
Add the Host Field
3
As you can see here
Windows 10 on host (192.168.208.209)
Windows 10-A on host (192.168.208.210)
Windows 10-B on host (192.168.208.210)4
lets create first rule that will join Windows 10-A & Windows 10 Together
so lets go to Cluster – Manage – Settings – DRS Rules
5
Add a new Rule – Choose a Name
Select to Keep Virtual Machine Together
Now Add the Machine
6
I choose Machines:
Windows 10
&
Windows 10-A
7
Now Choose OK
8
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 192.168.208.21010
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)
12
Lets choose Machines Windows 10-A & Windows 10-B13
Now press OK
14
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 192.168.208.210 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
16
and Yup both machine now faaaaaar away from Windows 10-B
and both of Windows 10 & Windows 10-A hosted on 192.168.208.20917

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
20
Add a DRS Group and choose a name
and choose a Type should be VM DRS Group
21
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
22
and its added
23

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

28
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
29
and if you highlight the rule you will see the affected Machine30
Now you can see VM Windows 10-B moved to 192.168.208.209
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 192.168.208.210
also there is a rule that Join VM Windows 10-A & Windwos 10 together then the VM Windows 10 moved to host 192.168.208.210
i know that a really confusing but i suggest you read it couple of time and test it your self to get the matter
31
and that is the beautiful result
32
and you can go to the Cluster – Monitor – vSphere DRS – History to see the procedure 33

;D

 

 

 

Standard
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 [192.168.208.209] nothing under [10.1.1.32]or[192.168.208.210]
so before we start the earlier two blog is very important to be establish first for VMware DRS to work
VMotion
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 192.168.208.209 to other Hosts
6
and the end result as you can see my 3 Virtual Machine moved under my biggest host [192.168.208.210]
7
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

 

;D

 

 

 

 

Standard
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
2
Choose VMkernel Network Adapter
3
Choose a New Standard Switch
4
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 192.168.208.210 and using my ISCSI Storage (ISCSI-A)
30
Right CLick on the Machine and Select Migrate
20
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
37
And Walla your Machine Moved under host 192.168.208.209 38
and if you go down you can see the storage information  which show ISCSI-B39

;D

Standard
5.5, VMware

Clone your perfect Virtual Machine

Cloning

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
2
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
8
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

10.PNG

;D

 

Standard
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
164

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”
2
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
Finish
2
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
16
Now highlights the ISCSI Storage Adapter
Select tab Target – Add18Put the IP Address of you Storage
Mine is 192.168.200.100 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
4.PNG
It is Added and show status Not Used5Click In Rescan icon to refresh the page and 24

25
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 192.168.208.21093.PNG
and if i go to my second host 10.1.1.23 i will see the same shared Storage
94
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
100
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
1
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
13
and proceed with he installation16
And that it is
install the windows on our new storage20

 

;D

Standard
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)
10
And as you can see under my vCenter there is nothing of my Datacenter or Hosts
12.PNG
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
1
so to give a permission for my self
From drop down i can change the “vsphere.local” to “mynaghi.com”
2
i put in the search my name so it will not list the whole organization
3
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 – +
5
Select the Assigned role as Administrator
6
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
10
and as you can see i can see under the vCenter my vCenter Servers, My Data Center and My Hosts11

;D

 

 

Standard
5.5, VMware

VMware vCenter Server Appliance 5.5 (vCSA)

Helooooo
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

1
so let proceed with the installation
2
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
11
And finally Successfully Deployed
12
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

15
And it finish and it show the link for my vCenter Server which giving to me by my DHCP Server
https://192.168.208.59:5480
17
go to my Firefox Browser and type the vCenter URL
https://192.168.208.59:5480
18
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
26
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

29
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
34A
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

35
And again the Operation was Successful
36
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
https://192.168.208.59:9443
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

Standard
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

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

3
and the installation is complete
4
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
9
Choose a password for your user
the default user for vCenter is (Administrator@vsphere.local)10
choose a name for your first site
11
Press Next
12
Choose where to save your installation file13
here is your configuration so simply press Install14

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

18

19
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
21
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

27

28
The SQL Server installation start and it may take time
29
Press Finish
30
and the installation of all 4 items is done
31Now lets go to the Web
https://192.168.200.250:9443/vsphere-client/
50
Allow the Adobe flash to run51
Now login to the web client using the Administrator username and Password
Username: administrator@vsphere.local
Password: *********
70
and here is our Getting started Page71
click on Home Tab and you can see all your beautiful Option
72
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
1
Now on the vCenter Server Right Click – New Datacenter2
Name it Jamjoom
3
now if you see the Datacenters filed become 1
5
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
2
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)
11
Press Next
12
Choose the Datacenter location for this machine13
Now press finish
3.PNG
and you can see the running task
15
and it added
Also i can login to the vCenter through the vSphere Client and see my Machine
28
choose to ignore
29
and as you see here that is your Datacenter (Jamjoom) that you created in the earlier step
13
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
16
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

;D

Standard