Reverting VLAN changes on a dvSwitch portgroup

I recently lost access to few of my ESXi hosts after using the incorrect VLAN on the dvSwitch portgroup. Was unable to find any command to change the VLAN of a dvSwitch portgroup from the command line. Luckily I came across the Network Restore Option in DCUI To restore VDS from DCUI: Connect to the DCUI. From the Network Restore Options menu, select Restore vDS. Type the correct values for VLAN uplink and blocked properties, where appropriate....

April 29, 2016 · 1 min · Jahnin Rajamoni

Configure NTP for ESXi

When deploying a virtual infrastructure it is very important to configure a time server. Lately, most VMware solutions depend on accurate time. For the labs that i deploy, i generally configure the time server on a windows machine(For e.g. AD Machine), and let all the ESXi hosts synchronize time with this windows machine. The windows machine will synchronize time from a internet time server, for e.g. pool.ntp.org(The esxi hosts will not have access to the internet)...

February 3, 2015 · 1 min · Jahnin Rajamoni

PowerCLI script to query all windows VM's and check if the vShield Endpoint driver is installed.

To check if the vShield endpoint driver is installed in Windows we can use the following command, sc query type= driver | find "vsepflt" To automate the above script across all Windows VMs in the vCenter Server Launch the PowerCLI shell and connect to the vCenter Server: Connect-VIServer [vcenter server ip\fqdn] Copy the below script to a text file and name the file with “.PS1” extension. For eg. “script....

December 10, 2014 · 1 min · Jahnin Rajamoni

Trivia NFC logging for hostd and vpxa

In ESXi 5.x For hostd: Backup and edit the following file, /etc/vmware/hostd/config.xml and add the below text:  <level id="nfcsvc"> <logName> Nfc </logName> <logLevel> trivia </logLevel> <prefix> true </prefix> </level> For vpxa: Backup and edit the following file, etc/vmware/vpxa/vpxa.cfg and add/replace the below text:  <nfc> <loglevel>trivia</loglevel> </nfc>

November 5, 2014 · 1 min · Jahnin Rajamoni

NFS: Failed to get attributes (I/O error)

Was setting up a NFS volume in openfiler for a lab and hit this strange error on the ESXi host: 2014-09-25T18:36:53.522Z cpu11:32806)WARNING: NFS: 316: Lost connection to the server 10.1.1.51 mount point /mnt/data01/vol01/Openfiler01/, mounted as 05730b90-cf23e830-0000-000000000000 ("Openfiler01") 2014-09-25T18:36:54.524Z cpu10:216948)WARNING: NFS: 2144: Failed to get attributes (I/O error) 2014-09-25T18:36:54.524Z cpu10:216948)NFS: 2207: Failed to get object 36 5730b90 cf23e830 70001 8000080 0 dc16020f c9496472 871a149a 2fb062cb 0 0 0 :I/O error On the ESXi host, i was able to mount the volume successfully and everytime i tried accessing files on the volume, it would go inactive and I had to remove and mount the nfs volume again....

September 26, 2014 · 1 min · Jahnin Rajamoni