Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Blog posts : "vsphere"

Broadcom PowerCLI: Building a GUI to Check VMware HA Admission Control Compliance

This PowerCLI GUI script I have written to audit VMware ESXi clusters high availability (HA) inside vCenter Server. This script validates below ideal configuration is defined on the cluster and tells me whether configuration is correct with green tick and non-compliant with red cross.

Note: …

Read more

PowerCLI GUI: One Click Renew and Refresh VMware VMCA ESXi Certificate

This is second script article wrote on same topic 'How to Renew and Refresh an ESXi Certificate with a PowerCLI script'. In the earlier post I gave simple PowerCLI script, very easy to execute. In this article I have written the same script but added a Graphical User Interface for more easiness. Bel…

Read more

How to Renew and Refresh an ESXi Certificate with a PowerCLI script

By renewing VMware ESXi server certificate through vCenter Server you can safeguards adherence to security best practices. You renew ESXi certificate to continue securing connection for your vSphere environment, avert trust issues with vCenter Server, and guarantee compatibility for upgrades, as exp…

Read more

Get VMware vCenter Appliance Version using Broadcom PowerCLI VCSA REST API

This PowerShell script uses VMware vCenter Server Rest API and shows VCSA (vCenter Server Appliance) version through the command line. Keeping track of your vCenter Server Appliance (VCSA) version is crucial for effective management and update. Simply provide your vCenter credentials, and the script…

Read more

Fix CPU Support Error: Installing VMware ESXi 9 on Unsupported CPUs

While testing the newly released VMware ESXi 9 in my lab environment, I was seeing the following error during the installation process. This issue popped up right after the system scan and was not letting me do the complete deployment. In this article, I’ll walk you through the cause of the error an…

Read more

Performing vCenter Offline Updates Via Your On-Prem Web Server Securely & Seamlessly

Handling vCenter Server updates across multiple sites with limited internet access creates operational annoyances. Downloading ISO files for each instance, manually transferring them, and repeating the process for every vCenter consumes valuable time and resources for really big environments.

In …

Read more

Excel on Web Browser: Simple Guide for Reports & Dashboards

This is a Quick Guide on displaying Excel files in your choice of browser such as chrome, edge etc Instantly. 

Benefits of Using This Method:

  • Share and Collaborate Easily: A Web-Based Excel Viewer for Teams.
  • 100% HTML Code: Render Excel files directly in the browser.
  • Easy Update…

Read more

VMware ESXi Unattended Setup: Building a Kickstart-Enabled Custom ISO from Scratch

Why Build a Custom ESXi Kickstart ISO?

Automating ESXi installations eliminates manual configuration errors and accelerates data center scaling. By embedding a Kickstart (KS.CFG) file into your ISO, you achieve:

  • Zero-touch deployments: Install ESXi with preconfigured network settings, …

Read more

How to Upgrade VMware vCenter Server Using Lifecycle Manager (vLCM)

Upgrading your VMware vCenter Server is a crucial part of maintaining a secure and efficient virtualization environment. In this guide, we’ll walk through the process of upgrading a vCenter Server using VMware Lifecycle Manager (vLCM), highlighting each key step with screenshots and best practices…

Read more

Broadcom VMware PowerCLI based ESXi capacity planner html web portal

I had a requirement to provide a solution for monitoring ESXi servers' CPU, memory, and datastore usage to non-IT or developer users without giving them direct access to vCenter or ESXi servers. The solution needed to avoid using any additional applications or tools. Previously, I had set up a syste…

Read more

PowerCLI List Add Delete Role Assignment account user on ESXi server with esxcli

I faced a scenario where I needed to automate the execution of a shell script on VMware (Broadcom) ESXi servers, version 7. The task involved renaming /etc/rc.local.d/local.sh to a .bak extension and restarting all services using /sbin/services.sh restart, which was necessary to resolve VM disconnec…

Read more

Developing and writing Ansible Python custom module for VMware pyvmomi example

There may be requirement in RedHat Ansible when you write custom module when you don't fine tasks module for certain objects, that time you will need to write your own custom python module. In this given example I was using community VMware vSphere module with ansible and wanted to list all ESXi ser…

Read more

Terraform clone virtual machine template in VMware vSphere vCenter Dynamic Content Part 2

This is improvised Terraform configuration scripts to clone Windows and Linux Template from VMware vCenter server. I have made few improvements in the configuration adding dynamic content block in the modules for network and disks. Another change is use variables, New VM information from csv file to…

Read more

Terraform clone virtual machine template in VMware vSphere vCenter from CSV file

While working on cloning virtual machine in vCenter from template I already written two articles Using terraform to clone a virtual machine on VMware vSphere infrastructure and Terraform module clone VMware vSphere Linux and Windows virtual machine. But I wanted to improvise it as I got some modi…

Read more

How to PowerCLI VMware Snapshots Virtual Machines disks consolidation is needed

In earlier part Solved: VMware Snapshots Virtual Machines disks consolidation is needed I performed steps on vCenter Portal GUI. Here I will use VMware PowerCLI to perform the same steps to automate it. 

First step is to connect to vCenter server using command Connect-VIServer. Use below comm…

Read more

Solved: VMware Snapshots Virtual Machines disks consolidation is needed

I was cleaning up some datastore data due to storage space low. I found there were few old long snapshots exist on VMs. After deleting those old snapshots from VMware Virtual Machines I was seeing warning and information message on summary page Virtual machine disks consolidation is needed status

Read more

Update offline bundle zip on standalone ESXi host using commandline without vCenter

This is a step by step procedure to update offline bundle zip on standalone ESXi host using command line without vCenter. I was updating few of my VMware ESXi servers in my home Lab environment. There were few ESXi hosts in the lab were standalone and not connected to any vCenter server. On the stan…

Read more

Update ESXi servers in VMware Cluster using vCenter Lifecycle Manager

It is best practice to keep you ESXi server up to date to keep server out of vulnerabilities and issue. Patching helps to resolve new upcoming CVE's and keep server compliant in security team's report. In this article I will update entire cluster using VMware Lifecycle Manager in vCenter server 8…

Read more

Build custom ESXi image using VMware Image Builder

In this article I will show how use VMware Image Builder to customize and create ESXi ISO images. 

VMware Image Builder is a powerful functionality within vCenter Server that enables the packaging, validation, and distribution of ESXi OS ISO/Zip software images across various platforms within an…

Read more

Second VMKernel port not working or reachable on nested ESXi server in VMware ESXi server

I was building nested VMware vSphere lab for POCs. While configuration I was facing strange issue after installing nested ESXi server as virtual machine on Physical ESXi Server, I created Few VMs and VMKernel ports on nested ESXi VM. But when I was trying to connect VMs or new VMKernel port it was f…

Read more

20 blog posts

Blog Search

Page Views

13869636

Archive

Follow me on Blogarama