vSphere MOB is disabled by default in ESXi 6.0

503 Service Unavailable (Failed to connect to endpoint: [N7Vmacore4Http20NamedPipeServiceSpecE:0x4bf02038] _serverNamespace = /mob _isRedirect = false _pipeName =/var/run/vmware/proxy-mob) (http://i1.wp.com/www.virtuallyghetto.com/wp-content/uploads/2015/02/vsphere-6.0-mob-disable-0.png) This was the first time I had noticed this as I normally use the vSphere MOB for debugging purposes or exploring the vSphere API. The vSphere MOB is also a quick an handy way to unregister vSphere Plugins (h...

Enable SNMP on ESX(i)

Open SSH and Putty in to your device. Then esxcli system snmp set -r esxcli system snmp set -c <community.name.you.want> esxcli system snmp set -p 161 esxcli system snmp set -L "<City>,<Country>" esxcli system snmp set -C <noc@example.com> esxcli system snmp set -e yes Now start the SNMP service through the UI and you are done. Connect with SNMP V2.

Live monitoring of vmkernel.log from CLI

Just use this magical command tail -f /var/log/vmkernel.log

How to update vCenter 6 Virtual Appliance to latest update

Backstory (https://tinkertry.com/easy-upgrade-to-vcsa-60u2#backstory) If you're using vCSA 6.0, Update 1 introduced the new Appliance Management Interface. Think re-incarnated Virtual Appliance Management Interface (VAMI), from those 5.5 days of yore, that Web UI you get when you access your vCSA via port 5480. Yep, it has an Update button. That upgrade method (http://www.cloudyfuture.net/2016/01/12/updating-vsphere6-vcenter-server-appliance/) didn't work for me though, when I tried it last time...

Using ESXCLI to set default Path Selection Policy for Software iSCSI

Use this command to set the default to Round Robin for every storage which has a SATP of ALUA (the default for software iSCSI targets) esxcli storage nmp satp set --default-psp=VMW_PSP_RR --satp=VMW_SATP_ALUA Reboot your server after this.

Using ESXCLI to add multiple Static iSCSI Targets @ Once

Use Notepadd ++ for this. Also set it to UNIX system Now use the following commandline to add multiple iSCSI targets (one by once) esxcli iscsi adapter discovery statictarget add -A <vmbhaXX> -a <ip adress>:3260 -n <IQN name of Target> End the script with rescanning all storage like this esxcli storage core adapter rescan --all Now save the file and upload it to the esxi /tmp folder using something like WinSCP Now from the ESXi CLI make the file executable by doing...

PowerCLI - Reset CBT of all VM's @ Once

Create a .PS1 script en fire it of in PowerCLI when connected to ESXi or VCenter $vms=get-vm | ?{$_.ExtensionData.Config.ChangeTrackingEnabled -eq $true} $spec = New-Object VMware.Vim.VirtualMachineConfigSpec $spec.ChangeTrackingEnabled = $false foreach($vm in $vms) { $vm.ExtensionData.ReconfigVM($spec) $snap=$vm | New-Snapshot -Name 'Disable CBT' $snap | Remove-Snapshot -confirm:$false }

PowerCli - VM Clone/Refresh Script.

Schedule this with a windows Scheduled task on you VM with PowerCli installed and your done #REFRESH VM1 $sourceVM = "Full VM Name" $newVM = "$sourcevm" + "_DTA" $esxName = "fqdn of ESX" $datastore = "Datastore Name" Stop-VM $newVM -Confirm:$false Remove-VM $newVM -DeletePermanently -Confirm:$false New-VM -Name $newVM -VM $sourceVM -VMHost $esxName -datastore $datastore Start-VM -VM $newVM #REFRESH VM2 $sourceVM = " Full VM Name" $newVM = "$sourcevm" + "_DTA" $esxName = " fqdn of E...

vmware-csd.exe Appcrash (Vmware Integration Client)

source: https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2112086 Troubleshooting the vSphere 6.0 Client Integration Plugin when it fails to function(2112086) **Symptoms** When attempting to use any of the workflows dependent on the Client Integration Plugin (CIP) with VMware vSphere 6.0, you experience these symptoms: * When navigating to the vcsa-setup.html during vCenter Server Appliance deployment, your web browser is unable to detec...

Installing vSphere 6 – vCSA (vCenter Server Appliance)

IntroductionDuring my daily work as a Systems Engineer at opvizor I’m frequently facing scenarios where customers or developers are asking for things that have to be reproduced in a vSphere environment. As I don’t want to use (and wouldn’t recommend to anyone) the productive infrastructure for testing, I needed something else. Since I cannot use unlimited resources and want to keep everything flexible to test various scenarios, the ideal solution is a virtualized VMware vSphere infrastructures. ...

Reverting to a previous version of ESXi after a failed upgrade

To revert to a previous version of ESXi after a failed upgrade: Note: Back up your configuration data before making any changes. * In the console screen of the ESXi host, pressCtrl+Alt+F2to see the Direct Console User Interface (DCUI) screen. * In the DCUI screen, pressF12to view the shutdown options for the ESXi host. * PressF11to reboot. * When the Hypervisor progress bar starts loading, pressShift+R. You see a pop-up with a warning: Current hypervisor will permanently be replaced wit...

How to kill Hanging tasks on a Virtual Machine in ESXi

Get the name of the Virtual Machine Login with SSH to the ESXi host its on. do the following command: ps | grep vmx | grep <fullVM name or part of IT> Then you get a list of all processes. First number is the process itself Second number is the parent process. To kill the entire vm and all processes do: Kill <processnumber> Now the vm is powered Down and the task is killed. Poweron the VM again and you are good to go.

Checking ESXi logs

Login with SSH and root and then _Cd /var/log_ _Less vmkernel.log_

Script to Auto fix Computer Machine account Expire after restore OLD Snapshot

Use this in a Policy Applied to all your virtual machines. Put it in the Computer Configuration Startup. Create a FIX_TRUST.cmd and put this in it: ================================================================================ _CALL :GO>>"C:\FIX_TRUST.log" 2>&1_ _:GO_ _NLTEST /SC_VERIFY:<fqdn of domain> | FIND /I "ERROR_ACCESS_DENIED"_ _IF %ERRORLEVEL%==0 GOTO FIXTRUST_ _GOTO END_ _:FIXTRUST_ _netdom resetpwd /s:<fqdn of domain>/ud:<NETBIOS DOMAIN NAME>\<userac...

VMware over NFS

My background is Fibre Channel and since 2003 I've followed iSCSI very closely. In fact, for years I have never paid much attention to other protocols until recently. For a long time I felt that FC was good for everything, which sounds weird if you consider who my employer is but then again, NetApp didn't hire me for my CIFS or NFS prowess. I was hired to drive adoption of NetApp's Fibre Channel and iSCSI offerings as well as the help prospects realize the virtues of a Unified Storage Architectu...