Category: vSphere

Storage vMotion fails with Error 195887107

I was moving a virtual machine from one data store to another that I faced with the following error In the VMware documentation, it occurs on the virtual machines that have disks with the multi-writer attribute. While in my environment the virtual machine was not like this, after a bit of Google searching, I found a hint in one of the forums that said the error is related to disk size. Solution I added 1 GB of space to each disk of the virtual machine to re-size each disk by a factor of 1 MB and then I ran a storage vMotion…

Read More

Share Post on:

Disable Time Synchronization for Windows Virtual Machine without Disabling VMware tools

In this article, I want to provide best practices for achieving accurate timekeeping with a domain controller or NTP server in Windows guest operating systems. This recommendation is based on my experience and VMware docs.In a typical domain environment, time is taken from the time server which is a domain controller (PDC Emulator), and while the time synchronization checkbox is unselected in the virtual machine configuration options but you may experience a time difference between the clients and NTP server when clients. As mentioned in this article, you may still have time problems in some situations, even when you have…

Read More

Share Post on:

SQL Server On VMware – Best Practices

One of the problems in organizations that implement SQL Server on a virtual machine is the lack of recognition of the virtualization which leads to the non-optimal implementation of this service on the virtual structure and then causes them to face improper performance. In this post, I want to talk briefly about how to design and implement SQL Server in a virtual machine to run on vSphere.The following configuration and settings are base on personal experience and VMware best practices. vSphere Configuration Enable DRS functionality for a cluster hosting SQL Server workloads. Separate database cluster from other production clusters Configure…

Read More

Share Post on:

vCenter appliance boot to emergency mode due to a corrupted file system

After I had to restart vCenter for some reason, this server failed to boot properly and went into the Emergency Mode. The appliance fails to start and reports the following message: To find out the root cause of this error, open the vCenter Console and scroll up (Shift + Page Up) the screen to see the first error. As you can see, one of the partitions “/dev/core_vg/core” is corrupted and it’s filesystem needs to be checked. First, check that none of your filesystems are full, enter the root password and type shell to access the bash shell and then type “df…

Read More

Share Post on:

Get ESXi Hardware Information with Command

While resting at home, a friend contacted me and said he was looking for hardware information from his servers because he was going to increase the amount of RAM and upgrade the server’s memory to higher size and asked me to help him in order to find the memory information such as empty slot and part number. Their servers are HP and ESXi 6 is installed, and I asked him to check through the ILO, but unfortunately, ILO was not configured.So I had to look for a way to get the server information via ESXi, so I started searching for…

Read More

Share Post on:

Replacing vCenter Server Certificates Rollback at 85%

Today I was replacing VMCA certificates by an ADCS (Active Directory Certificate Service) signed certificate, which everything went well except when I imported my certificate, the procedure stuck at 85 percent and rollbacked. and show you an error with this title. Status : 85% Completed [starting services…]Error while replacing Machine SSL Cert, please see /var/log/vmware/vmcad/certificate-manager.log for more information. When you go to read the “certificate-manager.log”, you see an entry like this: Error Failed to start vmon services.vmon-cli RC=1 After a lot of searching on the internet, I sum up with this good article which helps me to solve my problem. The procedure…

Read More

Share Post on:

ESXTOP and Disk Performance Problems

One of the common problems in software-defined datacenters is the latency of the virtual machine disk which will slow down the application and increase response time. The virtual machine owner or user declares that its system is slow and the question arises whether the slowdown is coming from a virtual infrastructure or storage device or operating system and how to troubleshoot it? In this section, we will discuss the storage parameters in VMware ESXi and show you how troubleshot disk latency in your environment. Lets SSH to ESXi host and leverage esxtop command to identify the problem. Esxtop allows monitoring…

Read More

Share Post on:

Upgrade VMFS 5 to VMFS 6

3 versions of the VMFS file system have been released by VMware for ESXi hosts which include VMFS3, VMFS5, and VMFS6. To fully understand the differences between these VMFS versions check this link.Today, after the successful installation of ESXi 6.7 on HP DL380 G9 in one organization, we have decided to update their datastores from version 5 to 6. So I read VMware docs for more information about the procedure of upgrading and got some valuable information which here is the summary: You can leverage the new VMFS 6 capabilities by creating a new VMFS 6 datastore and you cannot…

Read More

Share Post on:

Add VMkernel adapter to a number of ESXi hosts

Currently, I’m working with a customer who was wanting to add new VMkernel to their ESXi hosts and the number of ESXi hosts is about 50. Doing this task by vSphere Web Client was a bit time consuming and it is worth to write a script to this task automatically in a few seconds.While I was working on scripting I faced different problems and decided to share my experience with you!We are using the PowerCLI command to create the VMkernel Ports. If you have not Installed PowerCLI in PowerShell, See the following link. In order to add new VMkernel for…

Read More

Share Post on:

How To Install VMware PowerCLI via PowerShell

The installation is done completely through PowerShell itself using the PowerShell Gallery via PowerShellGet. To install the PowerCLI 11, you just need to open the PowerShell with administrative privilege and type the following command to run the installation. Install-Module -Name VMware.PowerCLI -RequiredVersion 11.1.0.11289667 -Scope AllUsers PowerCLI will automatically be installed for all users. If you want to limit the installation to a specific user, change the Scope parameter to “CurrentUser”. You will be asked to trust the PSGallery modules, as PowerCLI is one of them. If you are running a self-signed certificate for vCenter Server, you need to run the following…

Read More

Share Post on: