PurpleScreen >> sudo make read

VMware UUIDs

PowerCLIuuid

Hi everybody! My first post is about UUIDs - identifiers used for virtual machines in vSphere infrastructure. If you ever looked in *.vmx config file you could see 3 different lines containing 128-bit hex numbers. They are:

  • uuid.bios
  • uuid.location
  • vc.uuid

Because of having some issues with software licensing inside guest OS I decided to explore what every value is responsible for. Web didn’t give me the complete answer about the meaning of all of these parameters, so my investigations led me to the following conclusion I’d like to share with you.

uuid.bios - this value acts as GUID analog in physical machine, you should keep it to make the license not to get broken. If you want to export vm, for example using vCenter Converter, and run it in VMware Player/Workstation you should also add the following line to exported vmx file together with copying the source uuid.bios value: uuid.action = "keep"

It prevents player/workstation from asking whether you moved or copied vm with the default answer I moved it. If the valid uuid.bios line is present in config file, it will be preserved and the software license will be okay. Another option for uuid.action is "change". In this case VMware will generate the value when you power on the vm in new location (host or even folder). You can read this KB article to learn more about it. So the uuid.bios setting is done. Let’s look through others two.

uuid.location is generated every time vm is vMotion’ed to another host/storage. I guess it’s used by vCenter for some internal purposes like ..

vc.uuid is used by vCenter to identify vm together with MoRef ID you’ve seen while working with PowerCLI. It’s unique and is generated when you add a vm to inventory (or create a vm). If the value is already present in the config file (and there is no duplicate in the current inventory), it’s left intact.