Tag: UUID

VirtualBox

VM has the same UUID as an existing virtual machine

Generate a new UUID VBoxManage internalcommands sethduuid /path/to/VDIorVMDKfileVBoxManage internalcommands sethduuid /path/to/VDIorVMDKfile Edit .vbox file in text editor * Replace the UUID found in Machine uuid= with the new UUID you got. * Replace the UUID found in HardDisk uuid= * Replace the UUID found in Image uuid=

Cross-Platform, Java

Generating unique IDs in Java

With the UUID class you can generate unique ids. The identifiers generated by UUID are universally unique identifiers. UUID is the fastest and easiest way to generate a unique ID in Java. import java.util.UUID; .. .. public String generateID(){ return String.valueOf(UUID.randomUUID()); } ..import java.util.UUID; .. .. public String generateID(){ return String.valueOf(UUID.randomUUID()); } ..