WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple

virtuallyGhetto says hello to the blogosphere!

06.01.2010 by William Lam // 2 Comments

We finally decided to move our content over from our ghetto web page (http://engineering.ucsb.edu/~duonglt/vmware/) over to Google's free blogspot. This move not only helps us to organize our content and benefit from automatic RSS feeds, but it also makes the content searchable.

This site will still focus primarily on VMware automation using the various scripting APIs and SDKs. We hope you like the new layout and we look forward to sharing our scripts with the VMware community!

Categories // Uncategorized Tags // Uncategorized

vSphere Tips and Tricks Part 1

05.30.2010 by William Lam // 3 Comments

Disclaimer: Ensure these changes have been thoroughly tested and confirmed with VMware support prior to rolling out into production. Most of these changes and tips may be undocumented by VMware, test at your own risk!

Map Service Console/COS VMDK to specific ESX host (useful if you boot from SAN):

grep -i "hostname" /vmfs/volumes/[datastore]/[esxconsole-datastore-uuid]/logs/sysboot-vmkernel-late.log
[root@everest ~]# grep -i "hostname" /vmfs/volumes/everest-local-storage/esxconsole-49a095a4-204d-c7ba-9bb8-001f29c7b048/logs/sysboot-vmkernel-late.log
0:00:00:06.289 cpu1:4105)Config: 363: "HostName" = "everest.primp-industries.com", Old value: "localhost" (Status: 0x0)

Retrieve VmId from vmware-cmd similiar to that in vimsh/vmware-vim-cmd (only available on classic ESX, not sure why it's not in vCLI):

vmware-cmd /vmfs/volumes/[datastore]/[path_to_vm]/vm.vmx getid
[root@everest ~]# vmware-cmd /vmfs/volumes/d32c5a97-e039bdbf/vCenter-ESX4.02172009/vCenter-ESX4.02172009.vmx getid
getid() = 32

VMware FT statistics and debugging utility
Available after some patch set, generally 4.0u1+

[root@esx-5 ~]# ft-stats
Usage: ft-stats [-hvf] [-c ] [-l] [-n ] [-d ] [-s ] [-w ]
-h, --help Show this message
-v, --verbose verbose output
-f, --force Continue even if version check fails
-c, --cache Use VSI cache file
-l, --list list FT VMs
-n, --iterations Print stats for n iterations
-d, --delay Print stats every n secs (default:5)
-s, --snapshot Collect stats for n secs
-w, --world Print stats for worldID

Note: This tool is intended to assist in troubleshooting and should only be used
with direction by VMware support. All other use of this tool is unsupported.

esxupdate - Query for installed/retired packages with undocumented "--vib-view" option

esxupdate --vib-view query
[root@himalaya ~]# esxupdate --vib-view query
--------------------------------------VIB ID------------------------------------- Package State -----------Timestamp------------
rpm_vmware-esx-drivers-scsi-fnic_400.1.1.0.109.2vmw-2vmw.1.9.208167@x86_64 installed 2010-01-06T12:24:38.100201-05:00
rpm_acpid_1.0.4-9.el5_4.2@x86_64 installed 2010-04-02T17:09:44.566014+00:00
rpm_samba-client_3.0.33-3.15.el5_4.1@x86_64 installed 2010-04-02T17:09:44.171847+00:00
rpm_nss_3.12.3.99.3-1.2157.vmw@x86_64 installed 2010-04-02T17:09:41.148547+00:00
rpm_initscripts_8.45.19.EL-1.2442.vmw@x86_64 installed 2010-04-02T17:09:36.911452+00:00

Change default COW (copy on write) disk growth value
Query (Default is 16MB):

[root@himalaya ~]# esxcfg-advcfg -g /COW/COWDiskSizeIncrement
Value of COWDiskSizeIncrement is 32768

Set (e.g. 256MB):

[root@himalaya ~]# esxcfg-advcfg -s 524288 /COW/COWDiskSizeIncrement
Value of COWDiskSizeIncrement is 524288

The input value for changing COWDiskSizeIncrement is in sectors

UNIT SECTORS COW GROWTH SIZE
32768 16MB
65536 32MB
131072 64MB
262144 128MB
524288 256MB
2097152 1024MB
.... ....

Easy formula is (SIZE_IN_MB)*(1024)*(2) = SECTOR VALUE

Categories // Uncategorized Tags // cos, cow, ESX 4.0, vimsh, vSphere

Getting started with vMA

05.30.2010 by William Lam // 4 Comments

Documentation

What is vMA?

  • Here is a video explaining vMA on VMware KBTV

Visit the vMA Home Page:

  • VMware vMA

vMA Forum:

  • VMware vSphere Management Assistant (vMA)

You will find latest Downloads, Reference Documentation and Community Discussions and links to resources.

Downloads

  • vMA 4.x Download - Supports ESX(i) 3.5u2/4.x and vCenter 2.5/4.x
  • VIMA 1.0 Download - Supports ESX(i) 3.5u2+

Tutorials

    Setting up vMA video by David Davis

    • Using the new VMware vSphere Management Assistant (vMA)

    Setting up vMA to be a syslog server by Simon Long

    • Using vMA As Your ESXi Syslog Server

    vi-fastpass

    • vMA 4.1 - Authentication Policy (fpauth vs adauth)
    • How to configure and use vMA's vi-fastpass with fpauth and adauth on vSphere 4.1
    • How to automate & cron vi-fastpass scripts on vMA 4.1

    Upgrade vMA:

    • Why you should upgrade from vMA 4.0 to vMA 4.1

    How to clone vMA:

    • Cloning vMA still not supported?

    Backup & Restore vMA + vi-fastpass DB:

    • How to backup/restore vMA's config + vi-fastpass DB

    Scripts and Tools

    vGhetto Script Repository:

    • vGhetto Script Repository

    New tools and scripts to add/manage ESX(i) and vCenter targets on vMA 4.x:

    • http://www.virtuallyghetto.com/p/vmware-vma-vima.html

    vMA Compatible Agent/Scripts(Third Party) Community List:

    • vMA Compatible Agent/Scripts(Third Party) Community List

    Health check reports on your VMware environment:

    • VMware vSphere Health Check Report - vMA 4.x
    • VMware Health Check Report - VIMA 1.0

    Taking screenshots of your VM using vMA 4.x:

    • takeVMScreenshot.pl using vMA 4.x

    Host and VM shutdown with UPS integration using vMA:

    • ghettoUPSHostShutdown.pl

    Backup VMs using vMA:

    • ghettoVCBg2 - Free alternative for backing up VMs in ESX(i) 3.5 and 4.x (no SSH console required!)

    Utilize vi-fastpass On vMA to run Perl script without clear text password:

    • useVIFastpassOnvMAToRunPerlScriptWithoutClearTextPassword.pl

    Tweaks

    Hot add memory to vMA or other supported Linux guestOSes using vSphere ESX(i) 4.x:

    • Hot add memory to vMA or other supported Linux guestOSes using vSphere ESX(i) 4.x

    How to increase/resize vMA Disks:

    • How to increase/resize vMA 4.0 Disks
    • How to increase/resize vMA 4.1 Disks

    Offline patching of vMA 4.x:

    • Update vMA without internet access

    How to install VMware VDDK on vMA:

    • How to install VDDK 1.1 on vMA 4.0 (libfuse.so.2 fix)

    Reconfigure networking on vMA:

    • vmware-vima-netconf.pl

    vMA & Active Directory:

    • vMA 4.1 - Active Directory IntegrationTip

    Removing stale targets from vMA:

    • How to remove stale targets from vMA

    Enable root account:

    Edit /etc/passwd using vi

    sudo vi /etc/passwd

    Change

    root:x:0:0:root:/root:/sbin/nologin

    to


    root:x:0:0:root:/root:/bin/bash

    Categories // Uncategorized Tags // vma, vSphere

    • « Previous Page
    • 1
    • …
    • 66
    • 67
    • 68
    • 69
    • Next Page »

    Search

    Thank Author

    Author

    William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

    Connect

    • Bluesky
    • Email
    • GitHub
    • LinkedIn
    • Mastodon
    • Reddit
    • RSS
    • Twitter
    • Vimeo

    Recent

    • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
    • Quick Tip - Validating Broadcom Download Token  05/01/2025
    • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
    • vCenter Identity Federation with Authelia 04/16/2025
    • vCenter Server Identity Federation with Kanidm 04/10/2025

    Advertisment

    Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Cookie Policy

    Copyright WilliamLam.com © 2025