Friday, February 22, 2013

VirtualBox - SetHDUUID COM error

Quick tip in case you have the same issue.  I use VirtualBox as my server virtualization tool - it's a bit nicer on the laptop than running Hyper-V, but that's a whole other discussion!  With VirtualBox, when you set up a template VHD image, to use that image for a new virtual server, you need to assign a unique ID to the VHD image.

Usually, no problem.  VirtualBox has two ways to do this, either the CloneHD command or a SetHDUUID command:

c:\program files\oracle\virtualbox\vboxmanage internalcommands sethduuid

So what's the problem?  I had opened up a command prompt, entered in these commands, but got an error back that the VirtualBox COM server was not running:

VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execu
tion failed (extended info not available)
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or
failed to start.


The solution?  Since this is an admin sort of thing to do I had opened up the command prompt as administrator (Windows 8 - type in CMD, right click Command Prompt, choose Run as Administrator)...and apparently that was the wrong answer!  Open up a regular ol' Command Prompt window and the command goes through just fine.

I'm sure this is a permissions issue - next slow rainy day I'll crack open ProcessMonitor and see exactly what VboxManage can't grab, but for now we're good to go.

1 comment:

Unknown said...

Unfortunately by default running that command with a non admin command prompt gives "Access denied" :/