Blog

Posts with Tag: vmware

Shrink Thin Provisioned Disk

Posted on 2025-09-23 8:59

Here’s a very quick overview over how to shirnk a bloated vmdk. Check Datastore Get ID of Datastore: esxcli storage core device list | grep -B1 ' Display Name:' Check state of Datastore: $ esxcli storage core device list -d naa.668a828100177dc6c624663100000006 | grep 'Thin Provisioning\|A...

vCenter Change FQDN/URL for Login

Posted on 2025-09-22 18:58

# Stop vCenter UI service-control --stop vsphere-ui # Backup Config cp /etc/vmware/vsphere-ui/webclient.properties /root/webclient.proberties.BAK.$(date +%s) # Edit File and uncomment settings + add domains vi /etc/vmware/vsphere-ui/webclient.properties ################## sso.serviceprovider.alias...

Kill VMware VM with CLI

Posted on 2025-09-18 7:19

esxcli vm process list esxcli vm process kill -t=hard -w=WorldID esxcli vm process kill -t=force -w=WorldID

VMware Tools Install – Error 21004

Posted on 2025-09-18 7:16

When we tried to mount the VMware Tools with the button “Install VMware Tools”, we got the Error 21004. In the vmware.log of that particular VM, we got this error: 2024-11-05T09:27:06.475Z In(05) vmx 4fbba83e-64-7edd ToolsISO: open of /vmfs/volumes/6728b0c4-bcf76a7d-0eee-d404e6734610/vmtools/lat...

Set ESXi Syslog Hosts with Script

Posted on 2025-09-17 12:50

Here's the script: $CONFIG = @{ "logServer" = "graylog.domain.local"; "logPort" = 1514; "logProto" = "tcp"; "vcenter" = "vcsa.domain.local"; "cluster" = "Cluster1"; } # Startup Import-Module VCF.PowerCLI Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$fals...