vShere 6 lockdown mode

Tags

What is lockdown mode?

Normally we are using vcenter to manage multiple esx hosts. But if we required we can login to the esx host directly using vsphere client.Once we enabled lockdown mode, we cannot connect to the esx host using vsphere client.

When we trying to connect lockdown mode enabled esx, it will give below error message

clip_image001

In case of a vcenter unavailability, we can simply disable lockdown mode from the DCUI.

Continue reading

How to use vSphere cli

Tags

vSphere cli is a command line interface, where we can use to run commands on esx hosts.This is an alternative option for putty.We can install vSphere cli on any server/desktop in your network.

Below are the steps

  1. Download vSphere cli from vmware.com

clip_image001

  1. Once you installed vSphere cli, you can browse the below path and run the commands. Most of the commands are written in activepearl scripting language.

clip_image002

  1. We can get help for all the commands using –help parameter.

Continue reading

esx iscsi error Call ïscsimanager.query candidatenics"

Tags

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

clip_image001

Logged to the esx host & find iscsi related config files

Continue reading

VMware-Migrate iscsi traffic from standard switch to distribute switch

Tags

, , , ,

Option01

When we are having some extra network adapsters. We can follow below steps.

  1. In thi slab environment, we have two nics for existing iscsi connection using Vmware standard swtich.
    1. Esx01.mobilab.local have one standard switch configured for iscsi traffic

clip_image001

clip_image002

  1. Now we have configured vmware distributed switch and added vmnic4 & vmnic5 to this distributed switch & all the ip address configured.

Continue reading

VMware Vsphere raw device mapping

Tags

, , , ,

    Raw Device Mappings

    What is raw device mapping?

    Raw device mapping is a feature where the virtual machine can directly access the storage devices such as SAN or DAS.

    With a VMware we will use vmdk pointer to provide the proxy facility to raw device.

    In a virtual environment some cases we may need to have a raw device mappings.

    Why we need raw device mapping?

    • To configure Microsoft failover cluster, we can configure raw device as shared storage.
    • When we are configuring Microsoft failover cluster with one node is running on as a VM & other node/s running as a physical.
    • To run some of the san management software(ex hitachi horcm)
    • To run some backup software on virtual machine, and needs to get storage level backup

    How to Configure?

    1. Here I have one vm which is prepared to mount raw device

    clip_image001

    1. Using new datastore adding procedure, we can see new lun which is provided from our shared storage(in my case im using windows iscsi server)

    clip_image002

Continue reading

Powercli how to download esx log files

Üsing this script we can download esx log files to local computer, which is running powercli.

save this script as ps1

 

#############################################################
# We can use this script to downlog log files from esx hosts#
# #
# #
# #
#############################################################
Write-Host “Please create a esxlogs folder in your C drive before you run this script. This will download vmkernel,hostd & vpxa log files to your computer”
Add-PSSnapin vmware.vimautomation.core
Add-PSSnapin vmware.deployautomation
$vcentername=Read-Host “Enter Vcenter Name”
$esxhostname=Read-Host “Enter ESX host Name”
Connect-viserver $vcentername
$esxvmkernel=(get-log -key vmkernel -vmhost $esxhostname).entries
$esxvmhostd=(get-log -key hostd -vmhost $esxhostname).entries
$esxvpxa=(get-log -key vpxa -vmhost $esxhostname).entries

Add-Content -path c:\esxlogs\$esxhostname””vmkernel.txt -value $esxvmkernel

Add-Content -path c:\esxlogs\$esxhostname””hostd.txt -value $esxvmhostd

Add-Content -path c:\esxlogs\$esxhostname””vpxa.txt -value $esxvpxa

ESX 6.0 how to use pass phrase

In version 6.0 onwards we can use pass phrase instead of password for the esx hosts. In a default password policy its disabled, but we can enable it.

Steps.

  1. Login to the vcenter using web client.
  2. Select the host which we need to edit the password policy.
    1. Select manage
    2. Select Advanced System Settings
    3. Type “password” in search box and select “Security.passwordQualityControl”

clip_image001

  1. Edit the policy
    1. According to this policy, we need to use 16 characters which includes 3 words for our passphrase password policy.

clip_image002

  1. Now we can enter pass phrase as our password

Continue reading