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…
Blog posts : "esxi"
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…
Developing and writing custom Ansible Python module Part 2
This is a second part of Developing and writing Ansible Python custom module for VMware pyvmomi example. In this example I have extended writing python module for VMware ansible to get more information from vCenter server from one single python ansible module script.
Download this custom an…
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…
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…
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…
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…
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
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…
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…
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…
Update vCenter Server Appliance (VCSA) from VAMI portal
This is a step by step procedure updating vCenter Server Appliance (VCSA) using VAMI portal. Before making update to vCenter server make sure you properly backup vCenter server using article Backup VMware vCenter server using SMB protocol. As I am testing update in DEV environment I have taken a s…
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…
Staging vCenter Server Appliance (VCSA) updates using Rest API
This script is a another part of Upgrade vCenter Server Appliance (VCSA) with VMware PowerCLI. In this article I am using Rest API calls to update VCSA via VAMI. At the moment I am able to stage the updates, but installation of update to vCenter is not working. Once I get solution I will revise thi…
VMware PowerCLI Clone VM from template with customization specs in vCenter
This is a second alternative script to VMware PowerCLI Clone and Deploy VM from template in vCenter. In earlier article I did customization of newly cloned Virtual Machine using Windows PowerShell commands which I executed using Invoke-VMscript. Here in this script I used inbuilt customization pro…
VMware PowerCLI Clone and Deploy VM from template in vCenter
This VMware PowerCLI helps cloning and deploying Virtual Machine from template in vCenter Server. I had to write OS customization for Windows 2019 server because due to some reason native customization profile was failing. Here in this script there are 3 files in the script package, first file is
How to Install Minikube on Ubuntu - Step by Step
This is a step by step guide to install Minikube on the Ubuntu Linux system. Minikube is a lightweight Kubernetes implementation that creates a VM on your local machine and deploys a simple cluster containing only one node. Minikube is available for Linux, macOS, and Windows systems. Minikube is ve…
PowerCLI enable or disable WBEM service on VMware ESXi server
The VMware Host Hardware (WBEM) sensor monitors information about the hardware of an ESXi server using Web-based Enterprise Management (WBEM). This script will disable and enable WBEM service using PowerCLI.
Download this Set-WbemServiceEsxi.ps1 here or it is also available on github.com/janviu…
Vmware PowerCLI Import-Module message VMware Customer Experience Improvement Program (CEIP)
When you run the command to Import-Module VMware.PowerCLI on Powershell, You might have received the below warning message regarding VMware CEIP (Customer Experience Improvement Program).
VMware's Customer Experience Improvement Program (CEIP) collects technical information from participating …
Ansible Deploy a VMware vSphere Virtual Machine from a Template
One of my teammates from another project had a requirement of deploying a clone VMware Virtual Machine from a template using Ansible. In the last hour additional requirements they wanted to process clones of multiple VMs with different types of operating system such as Linux and Microsoft Windows.…
Blog Search
Page Views
12273418
Archive
- November 2024 (2)
- October 2024 (7)
- September 2024 (12)
- August 2024 (22)
- July 2024 (11)
- June 2024 (1)
- May 2024 (3)
- April 2024 (5)
- November 2023 (1)
- September 2023 (6)
Comments
-
ChriSDecember 1, 2024 05:27PM
-
GoranshOctober 19, 2024 10:32AM
-
NeoModJuly 30, 2024 11:14PM
-
RogerJuly 22, 2024 10:13PM
-
DonJune 28, 2024 11:29PM