{"id":257,"date":"2020-02-15T15:29:59","date_gmt":"2020-02-15T15:29:59","guid":{"rendered":"http:\/\/robinplomp.com\/?p=257"},"modified":"2020-02-15T19:53:09","modified_gmt":"2020-02-15T19:53:09","slug":"vmware-esxi-clone-thick-disk-to-thin-disk","status":"publish","type":"post","link":"https:\/\/robinplomp.com\/?p=257","title":{"rendered":"VMware ESXi : Thick disk to Thin disk"},"content":{"rendered":"<p><a href=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2020\/02\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"186\" height=\"123\" title=\"image\" align=\"left\" style=\"float: left; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2020\/02\/image_thumb.png\" border=\"0\"><\/a>At the end of last year I have reinstalled my home lab environment from Microsoft Hyper-V to VMware ESXi. I converted my VM\u2019s to the ESXi format with the VMware Offline converter. This process was going smoothly. To be honest way smoother that expected. I worked a lot with VMware in the past but since I started working at PQR I worked with VMware more and more. I really like the management features in VMware vCenter.<br \/>\n<!--more--><br \/>\nRecently I noticed that the free diskspace on my datastore was reduced to 20 GB. Since my VMware environment consists of just one host with one datastore I can\u2019t convert my VM\u2019s by vMotioning them to the other datastore. While doing some research online I found a method to convert the VM from Thick to Thin disk mode.<\/p>\n<p>To enable SSH from the <a name=\"PRODUCTNAME_74976E93F0B4435BA09BFF83D6FBD111\"><\/a>vSphere Web Client (this is the webclient on the ESXi host) do the following:<\/p>\n<ol>\n<li>Select the host and click Manage, and select Settings.<\/li>\n<li>Click Security Profile<\/li>\n<li>In the Services section, click Edit<\/li>\n<li>Sellect SSH, and start the service<\/li>\n<li>Click OK.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2020\/02\/Screen-Shot-2020-02-09-at-13.17.04.png\"><img loading=\"lazy\" decoding=\"async\" width=\"449\" height=\"217\" title=\"Screen Shot 2020-02-09 at 13.17.04\" style=\"display: inline; background-image: none;\" alt=\"Screen Shot 2020-02-09 at 13.17.04\" src=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2020\/02\/Screen-Shot-2020-02-09-at-13.17.04_thumb.png\" border=\"0\"><\/a><\/p>\n<p>Connect with Putty or a any other SSH client (I used the Terminal app on my MacBook) to connect to the ESXi host and logon with your <strong>root<\/strong> credentials.<br \/>\nFirst and foremost, make sure that the VM your are going the clone is powered down.<br \/>\nNavigate to the folder that holds the target VM.<br \/>\n<strong>cd \/vmfs\/volumes\/datastore1\/Core01<br \/>\n<\/strong>Clone the vmdk to a thin provisioned disk using vmkfstools<br \/>\n<strong>vmkftools \u2013i Core01.vmdk \u2013d thin-Core01.vmdk<br \/>\n<\/strong>Rename the old flat file <strong>mv Core01-flat.vmdk Core01-flat.vmdk<br \/>\n<\/strong>Rename the new flat file <strong>mv thin-Core01-flat.vmdk Core01-flat.vmdk<br \/>\n<\/strong>Unregister VM from ESXi inventory, this is necessary for the host to recognize the new disk type. (<strong>Right-Click Core01&gt;Unregister<br \/>\n<\/strong>Re-register the VM (<strong>Create \/ Register VM&gt; Register an existing virtual machine,<em>&nbsp; browse to the folder that holds the machine that you want to register and select the vmx file.<\/em><\/strong><\/p>\n<p>Boot the VM, and make sure it boots succesfull and all is well.<br \/>\nRemove unnecessary vmdk files <strong>rm thin-Core01.vmdk &amp;&amp; rm Core01-flat.vmdk.old<\/strong><\/p>\n<p><a href=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2020\/02\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"244\" height=\"135\" title=\"image\" align=\"left\" style=\"float: left; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2020\/02\/image_thumb-1.png\" border=\"0\"><\/a> After cloning all my VM\u2019s from Thick disk to Thin disk I have 341,93 GB free disk space.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At the end of last year I have reinstalled my home lab environment from Microsoft Hyper-V to VMware ESXi. I converted my VM\u2019s to the ESXi format with the VMware Offline converter. This process was going smoothly. To be honest way smoother that expected. I worked a lot with VMware in the past but since &hellip; <a href=\"https:\/\/robinplomp.com\/?p=257\" class=\"more-link\">Lees verder <span class=\"screen-reader-text\">VMware ESXi : Thick disk to Thin disk<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,33,22],"tags":[],"class_list":["post-257","post","type-post","status-publish","format-standard","hentry","category-esxi","category-vcenter","category-vmware"],"_links":{"self":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts\/257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=257"}],"version-history":[{"count":4,"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts\/257\/revisions"}],"predecessor-version":[{"id":262,"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts\/257\/revisions\/262"}],"wp:attachment":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}