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

vcenter 6.0 install & configure syslog server.

Tags

,

Vcenter 5 & 5.5 syslog server is separate component and we have to installed it separately but with vcenter 6. 0 syslogcollector service already installed and we can only customized.

How to costomize syslog server configuration.

  1. Opena syslog collector config file from notepad. This file is locate under “c:\programdata\vmware\vcenterserver\cfg\vmsyslogcollector”

Bydefault all the syslog will be installed under c:\programdata.

But as a best practice we can change this location to different drive or folder.

clip_image001

  1. In this exam I have changed it it c:\syslog folder.Also if we required we can change the ports and some other settings.

Continue reading

Vsphere esx-configure scratch partition–V 6.0

Vmware esx we can install on a small sd card or usb drive. But when we wants to store *vm-support output we may need some more space. Scratch partition is the solution for this problem. We can assign static scratch partition per esx host.

Steps for that.

  1. In this example we have separate data store for scratch partition. Data store name is SC

Continue reading

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