[vbox-dev] UUID's

James Lucas jimmy at secsme.org.au
Fri Aug 8 15:33:09 GMT 2008

I'm converting the UUID as represented in VirtualBox in an external auth plugin
from the 16 byte representation to a string representation using libuuid (On

#include <uuid/uuid.h>
char * uuidtemp;
uuid_unparse(*pUuid, uuidtemp);

Expected results (UUID of machine)


The first three fields are byte swapped. Looking through the VBox source code
uuid conversion has been implemented internally and doesn't use an external
library (I'm assume portability reasons). Why would the Byte->toString methods
differ between VBox internal and libuuid? The VBox sources refer to ext2
implementation and libuuid implements to same.

I'm sure there is a simple reason, however I'd like to confirm before I put in
place some workaround code that may break in the future.


UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly, and
with authority, states them to be the views the University of Technology,
Sydney. Before opening any attachments, please check them for viruses and

More information about the vbox-dev mailing list