How to run esxcli commands through Powercli

ESXCLI commands we can use to retrieve information from ESX hosts or we can use to do some ESS configuration. Normally we can run this commds using SSH sessions which are directly connect to the ESX hosts. MOst of the time we are using Putty for that purpose.

Now we can easily use ESXCLI commands through powercli commands. We can refer the below steps for that.

1. Login to your vcenter or management server.

2. Open powercli and connect to the vcenter server using connect-viserver

3. Run Get-EsxCli  commands with required parameter

EX- We need to run esxcli commands on esx01.mobilab.local host

Get-ESXCli –VMhost esx01.mobilab.local

image

4. This will give the same output as esxcli

 

Continue reading

VMware workstation how to simulate SSD

Vmware vsphere environment, there are some features we need to have SSD disks to enable those features.(Vsan, host cache, etc..). But in a test environment its very difficult to use ssd disks because its very costly thing and we are using some virtualization software like vmware workstation.

But in a vmware workstation we can simulate ssd disks with esx host. Below are the steps for that.

  1. This is the virtual machine(esx), which will used to simulate SSD

clip_image001

  1. I want to simulate this 100GB disk as a SSD

 


clip_image002

  1. We have to edit vmx files

clip_image003

  1. We have to add below highlighted key in the vmx files. We should use correct disk id

clip_image004

  1. Now I can see that 100 GB disk as SSD.

Continue reading

VMVware vswitch load balancing methods

Tags

, , , , ,

Load balancing is one of the most important thing in a virtual world. Because we are using few NICs for receiving & sending a data of multiple virtual machines. There are few policies in vmware load balancing . We will take one by one and lets have a look.

Route based on originating virtual port ID

Example

clip_image001

In this vswitch I have two nics allocated.

And I have three virtual machines as bellows

 

clip_image002

Server A have one Nic,Server B have two Nics & Server C have one Nic.

Route based on originating virtual port ID works like round robin. Server A nic will be use physical vmnic4 for passing the traffic.

Server A first nic will be use vmnic5 and second nic will be use vmnic4

Server C have only one nic and it will use vmnic4.

In this load balancing mechanism it doesn’t measure any other things. That is the main disadvantage of this, but we don’t have to do any modifications to the physical network environment.

Continue reading