{"id":1259,"date":"2014-01-20T06:11:23","date_gmt":"2014-01-19T23:11:23","guid":{"rendered":"http:\/\/www.itersdesktop.com\/?p=1259"},"modified":"2014-01-20T06:39:18","modified_gmt":"2014-01-19T23:39:18","slug":"virtualbox-cannot-register-the-hard-drive-because-a-hard-drive-with-uuid-already-exists","status":"publish","type":"post","link":"https:\/\/www.itersdesktop.com\/vi\/2014\/01\/20\/virtualbox-cannot-register-the-hard-drive-because-a-hard-drive-with-uuid-already-exists\/","title":{"rendered":"VirtualBox \u2013 Cannot Register the Hard Drive Because a Hard Drive with UUID Already Exists"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Virtualization is awesome! It really helps when you are a developer. \u00a0On my laptop I don\u2019t even have SQL Server installed on the OS directly. \u00a0In fact the only thing I have installed on my host is Office, Skype and Chrome. \u00a0Everything else gets run on a VM. SSIS package creation using BIDS: VM. SQL Server Management Studio: VM. SharePoint sandbox: VM VPN: VM. One of the advantages of doing this is you don\u2019t have to worry about screwing something up. \u00a0I have a snapshot on the VM just before I installed SQL Server. \u00a0So if something happens and my install gets corrupted I will just roll it back and reinstall SQL Server rather than the entire OS plus SQL Server. Currently to do all this I am using Oracle\u2019s VirtualBox software. \u00a0It works great for those of us who have Windows 7 and allows you to run both x86 and x64 virtual machines. \u00a0I recently tried to make a copy of one of my VHDs (Virtual Hard Drive) and create a new VM. \u00a0Everything was wonderful until I got this error:<\/p>\n<figure id=\"attachment_1260\" aria-describedby=\"caption-attachment-1260\" style=\"width: 300px\" class=\"wp-caption alignright\"><a href=\"http:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/01\/VirtualBoxDuplicateUUID.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1260 \" alt=\"VirtualBox Duplicate UUID\" src=\"http:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/01\/VirtualBoxDuplicateUUID-300x171.png\" width=\"300\" height=\"171\" srcset=\"https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/01\/VirtualBoxDuplicateUUID-300x171.png 300w, https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/01\/VirtualBoxDuplicateUUID.png 508w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1260\" class=\"wp-caption-text\">VirtualBox Duplicate UUID<\/figcaption><\/figure>\n<p><strong>Failed to open the hard disk .<\/strong> <strong>Cannot register the hard disk becuase a hard disk with UUID already exists.<\/strong> I looked all over the place to find what was causing it and finally found a fix. Of course it requires the command prompt, so open that junk up and let\u2019s get started! <strong>**Note that I am on VirtualBox version 4.1.6 and from what I\u2019ve read this command used to be something different a few versions ago. I think instead of setdhuuid it was setvdiuuid, but don\u2019t hold me to that.**<\/strong><\/p>\n<ol>\n<li>Open the Command Prompt<\/li>\n<li>Change the directory to where VirtualBox is installed (Default: C:\\Program Files\\Oracle\\VirtualBox)<\/li>\n<li>Type the following\u00a0<strong>VBOXMANAGE.EXE internalcommands sethduuid <\/strong><\/li>\n<\/ol>\n<p>Note that\u00a0<strong>internalcommands<\/strong>\u00a0and\u00a0<strong>sethduuid<\/strong>\u00a0need to be lowercase. \u00a0I spent more than a couple minutes trying to figure out why things weren\u2019t working. \u00a0\ud83d\ude42 Below is the output of me changing the ID of the VHD located at C:\\Users\\bschacht\\VirtualBox VMs\\Windows XP (VPN) Copy.vhd<\/p>\n<figure id=\"attachment_1261\" aria-describedby=\"caption-attachment-1261\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/01\/VirtualBoxCMDOutput.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1261\" alt=\"VirtualBoxCMDOutput\" src=\"http:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/01\/VirtualBoxCMDOutput-300x153.png\" width=\"300\" height=\"153\" srcset=\"https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/01\/VirtualBoxCMDOutput-300x153.png 300w, https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2014\/01\/VirtualBoxCMDOutput.png 682w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1261\" class=\"wp-caption-text\">VirtualBoxCMDOutput<\/figcaption><\/figure>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>&nbsp; Virtualization is awesome! It really helps when you are a developer. \u00a0On my laptop I don\u2019t even have SQL Server installed on the OS directly. \u00a0In fact the only&hellip; <\/p>\n","protected":false},"author":2,"featured_media":1260,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[345,3],"tags":[392,393],"class_list":["post-1259","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-operating-system","category-tools","tag-uuid-already-exists","tag-virtualbox"],"_links":{"self":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/1259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/comments?post=1259"}],"version-history":[{"count":6,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/1259\/revisions"}],"predecessor-version":[{"id":1268,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/1259\/revisions\/1268"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/media\/1260"}],"wp:attachment":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/media?parent=1259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/categories?post=1259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/tags?post=1259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}