Get/Set UUID for VMDK on ESXi 5

Posted on 2012-08-31
Last Modified: 2013-12-13
In older versions of ESX, you used to be able to run this command to get / set the UUID of VMDK files:

vmkfstools -J getuuid /vmfs/volumes/datastore/VM/vm.vmdk
vmkfstools -J setuuid /vmfs/volumes/datastore/VM/vm.vmdk

If I run vmkfstools now, it doesn't have the "-J" option

How do I get/set the UUID of VMDK files in ESXi 5?
Question by:DFPITC
    LVL 116

    Accepted Solution

    This still works for me in VMware vSphere ESXi 5.0 Build Number: 768111

    See here

    vmkfstools -J getuuid /vmfs/volumes/nfs-data/TestXPforEE/TestXPforEE.vmdk

    UUID is 60 00 C2 96 2b f5 a0 e0-87 36 be 83 48 5a f8 35

    /vmfs/volumes/eff44beb-2c974ed7/TestXPforEE #

    Also a screenshot:-

     get UUID with vmkfstools -J getuuid
    This article still lists it as present

    Author Comment

    ok, it seems that if you ssh in it works, even though if you do vmkfstools --help it doesn't appear.

    So, cool, problem solved

    Expert Comment

    The -J setuuid isn´t working on ESXi 5.0 1311175. The Parameter is invalid. Does anyone has the solution?
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    @schweitzerm Post a new EE Question and myself or other experts will be glad to assist.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    One of the new features of a version 7.0 or later virtual machine, supported in VMware vSphere 4.1, 5.0 or the VMware vSphere Hypervisor ESXi 4.1, ESXi 5.0 often overlooked by VMware Administrators is the ability to add and connect USB devices conne…
    VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
    Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
    Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    27 Experts available now in Live!

    Get 1:1 Help Now