{"id":2076,"date":"2015-01-13T10:33:11","date_gmt":"2015-01-13T10:33:11","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=2076"},"modified":"2015-01-13T10:33:11","modified_gmt":"2015-01-13T10:33:11","slug":"converting-the-sparseimage-to-vmdk-format","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=2076","title":{"rendered":"Converting the Sparseimage to VMDK format"},"content":{"rendered":"<p>During this I will be using to Command Line utilities that are installed as part of VMware Fusion.<\/p>\n<p>First off, open \u2018Disk Utility\u2019, located at \u2018\/Applications\/Utilities\/\u2019, and select the volume called \u2018ServerHD\u2019 from the list of disks, as shown in the screenshot below.<\/p>\n<p><a href=\"http:\/\/hazenet.dk\/wp-content\/uploads\/2013\/07\/Post-370-26-Disk-Utility-Unmount.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-527\" src=\"http:\/\/hazenet.dk\/wp-content\/uploads\/2013\/07\/Post-370-26-Disk-Utility-Unmount-1024x859.png\" alt=\"Post-370-26-Disk-Utility-Unmount\" width=\"625\" height=\"524\" \/><\/a><\/p>\n<p>Now click the button named \u2018Unmount\u2019 in the top of the window.<br \/>\nThe text \u2018ServerHD\u2019 in the list of disks, should now be dimmed slightly.<\/p>\n<p>While the volume \u2018ServerHD\u2019 is still selected, click the button named \u2018Info\u2019 in the top of the window. This will bring up a information window, containing detailed information about the volume \u2018ServerHD\u2019.<\/p>\n<p><a href=\"http:\/\/hazenet.dk\/wp-content\/uploads\/2013\/07\/Post-370-27-Disk-Utility-Info.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-528\" src=\"http:\/\/hazenet.dk\/wp-content\/uploads\/2013\/07\/Post-370-27-Disk-Utility-Info-1024x956.png\" alt=\"Post-370-27-Disk-Utility-Info\" width=\"625\" height=\"583\" \/><\/a><\/p>\n<p>In this case we are interested in the information called \u2018Disk Identifier\u2019. In my case this is \u2018disk2s2\u2032, note down the disk number, in my case \u2018disk2\u2032.<\/p>\n<p>Now close the \u2018Disk Utility\u2019 application.<\/p>\n<p>Open up \u2018Terminal\u2019 located in \u2018\/Applications\/Utilities\/\u2019.<\/p>\n<p>Run the following command:<\/p>\n<div id=\"crayon-54b4f3d3084c8916309026\" class=\"crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-mac print-yes notranslate\" data-settings=\" no-popup minimize scroll-mouseover\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"hide\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-54b4f3d3084c8916309026-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-54b4f3d3084c8916309026-1\" class=\"crayon-line\"><span class=\"crayon-v\">cd<\/span> <span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">Applications<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">VMware<\/span><span class=\"crayon-sy\">\\<\/span> <span class=\"crayon-v\">Fusion<\/span><span class=\"crayon-sy\">.<\/span><span class=\"crayon-v\">app<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">Contents<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">Library<\/span><span class=\"crayon-o\">\/<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>Using the Command Line utility called \u2018vmware-rawdiskCreator\u2019, I will create a VMDK, which actually links to the Sparseimage, using the below command.<br \/>\nPlease adjust the command with the disk number (\u2018disk2\u2032), noted down earlier, and with a output path and file name of your choice (\u2018\/Users\/mads\/Desktop\/OS-X-Template-link\u2019).<\/p>\n<div id=\"crayon-54b4f3d3084cc785134389\" class=\"crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-mac print-yes notranslate\" data-settings=\" no-popup minimize scroll-mouseover\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"hide\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-54b4f3d3084cc785134389-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-54b4f3d3084cc785134389-1\" class=\"crayon-line\"><span class=\"crayon-sy\">.<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">vmware<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-e\">rawdiskCreator <\/span><span class=\"crayon-v\">create<\/span> <span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">dev<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-e\">disk2 <\/span><span class=\"crayon-v\">fullDevice<\/span> <span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">Users<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">mads<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">Desktop<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">OS<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">X<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">Template<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-e\">link <\/span><span class=\"crayon-v\">lsilogic<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>In my case I now have a VMDK file on my Desktop called \u2018OS-X-Template-link.vmdk\u2019. But this is in fact a empty VMDK file, linking to the Sparseimage.<\/p>\n<p>Using the Command Line utility called \u2018vmware-vdiskmanager\u2019, I will now convert the VMDK-link file to a actual VMDK file containing the contents of the Sparseimage.<br \/>\nRun the below command, and as before change the input file (\u2018\/Users\/mads\/Desktop\/OS-X-Template-link.vmdk\u2019) and output file (\u2018\/Users\/mads\/Desktop\/OS-X-Template.vmdk\u2019), with the files of your choice.<\/p>\n<div id=\"crayon-54b4f3d3084d0530627501\" class=\"crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-mac print-yes notranslate\" data-settings=\" no-popup minimize scroll-mouseover\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"hide\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-54b4f3d3084d0530627501-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-54b4f3d3084d0530627501-1\" class=\"crayon-line\"><span class=\"crayon-sy\">.<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">vmware<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">vdiskmanager<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">r<\/span> <span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">Users<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">mads<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">Desktop<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">OS<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">X<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">Template<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">link<\/span><span class=\"crayon-sy\">.<\/span><span class=\"crayon-v\">vmdk<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-i\">t<\/span> <span class=\"crayon-cn\">4<\/span> <span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">Users<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">mads<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">Desktop<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">OS<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">X<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">Template<\/span><span class=\"crayon-sy\">.<\/span><span class=\"crayon-v\">vmdk<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>The \u20184\u2019 option in the above command, specifies that the output file should be in the format \u2018preallocated ESX-type virtual disk\u2019, which will generate a preallocated VMDK usable on ESX and ESXi hypervisiors. In my case this will amount to a 30GB VMDK file on my Desktop.<br \/>\nThis command takes quite some time to finish, but it displays progress information along the way.<\/p>\n<p>When it is finished, you can delete the Link file (\u2018\/Users\/mads\/Desktop\/OS-X-Template-link.vmdk\u2019), because it is not needed any more.<br \/>\nAlso you can open up \u2018Disk Utility\u2019 located in \u2018\/Applications\/Utilities\/\u2019 and eject the Sparseimage file \u2018ServerHD.sparseimage\u2019<\/p>\n<p>I now have two VMDK files on the Desktop:<\/p>\n<p>OS-X-Template.vmdk<br \/>\nOS-X-Template-flat.vmdk<\/p>\n<p>The \u2018OS-X-Template.vmdk\u2019 is a descriptive file, containing information about the actual storage VMDK file, called \u2018OS-X-Template-flat.vmdk\u2019. They are both relevant, as they together form the VMDK disk I will be uploading to the Datastore in vCenter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>During this I will be using to Command Line utilities that are installed as part of VMware Fusion. First off, open \u2018Disk [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2076","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2076"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2076\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}