Skip navigation

Darshana's Blog

14 posts

connect-viserver vcenter01 -user administrator@vsphere.local -password VMware1!

Write-host "No of VMs to deploy"


write-host "Enter the naming convention"


for($count=0;$count -le ($noofvms-1);$noofvms++)


new-vm -name ($vmname+$count) -vmhost (get-cluster cluser01|get-vmhost|get-random) -disksizemb 100 -portgroup vlan100


VCAP 6-Deployment-HA Cluster - YouTube


I have recorded this video for those who following vCAP -deployment. This includes HA cluster configuration with some advanced settings

dja234 Enthusiast

Manage vCenter appliance

Posted by dja234 Sep 3, 2017



I'm preparing for VCAP deployment and I have done step by step guide using Microsoft Onenote. Some of the practicals are still pending. but 60% are completed.Some times it may be help you for your exam.


VCAP-6-Deployment | VMware,Microsoft Knowledge Sharing Portal

dja234 Enthusiast

How to configure DRS

Posted by dja234 Jun 4, 2017
dja234 Enthusiast

configure pvlan

Posted by dja234 Apr 30, 2017

In my lab environment I used iscsi as my shared storage. Today I have removed network adapters from software iscsi adapter to do some other networking stuff. After a while when im trying  to reconfigure iscsi im getting below error


Call ïscsimanager.query candidatenics"



To resolve this problem I had to reset iscsi from esx shell by following below steps


find iscsi config locations









navigate to the iscsi config location /etc/vmware/vmkiscsid




Delete all the files & reboot esx host


dja234 Enthusiast

ESX-Disable ssh access to root

Posted by dja234 Mar 29, 2017
dja234 Enthusiast

How to convert VMDK to RDM

Posted by dja234 Feb 16, 2017

1. Identify the disk which we want to convert


2. Identify the raw disk which we are going to point this VMDK.(in this example we are using iscsi target). We need to copy naa id


3. Convert vmdk using vmkfstools command. This will create new vmdk pointer to rdm file


4. Remove existing vmdk file and map new RDM to the vm


In a most of the vmware infrastructure environment we are using stndard vswitches . the limitation is the standard vsiwtch is when we are doing any modification and when we are creating vswitches, we have to do it manually an individually. If we have multiple port groups its a very difficult this. To avoid this thing, we can use vmware distirbuted switch. but we need to purchase enterprise plus license. To simplify this process i have created small power-shell script. I will explain this script by using my example.


i have two esxi host and esx-01. corp.local is already configured with required port groups. now we need to create all the port groups in esx-02. corp.local . therefore first i have created vswitch0 in esx-02. Then Using my scrript i can create all the port groups same as esx-01





Connect-ViServer vcsa-01a.corp.local  # Connect to Vcenter Server

$strvswitchonhost02=get-virtualswtich -name vswitch0 -vmhost esx-02a.corp.local  # Host 01 have virtual switch named vswitch0, we have to create same switch in host 02. Its already created and $strvSwitchonhost02 variable store that details

$strsovirprgrp= get-virtualporggropu -vmhost esx-01a.corp.local -virtualswitch vswitch0 -standard # Store all the virtual port details in a $strsovirprgrp array


For ($a=0 ; $a -le $intcount-1 ; $a++)




New-virtualporggroup -virtualSwitch $strvswitchonhost02 -name $strname -VLANId  $intvlan # create virtual port group/s on second host