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