{"id":92,"date":"2006-09-27T10:41:00","date_gmt":"2006-09-27T17:41:00","guid":{"rendered":"http:\/\/www.jasemccarty.com\/blog\/2006\/09\/vmware-extending-a-cloned-deployed-windows-vms-root-partition-without-using-any-3rd-party-tools.html"},"modified":"2006-09-27T10:41:00","modified_gmt":"2006-09-27T17:41:00","slug":"vmware-extending-a-cloned-deployed-windows-vms-root-partition-without-using-any-3rd-party-tools","status":"publish","type":"post","link":"https:\/\/www.jasemccarty.com\/blog\/vmware-extending-a-cloned-deployed-windows-vms-root-partition-without-using-any-3rd-party-tools\/","title":{"rendered":"VMware: Extending a Cloned (Deployed) Windows VM&#8217;s root partition without using any 3rd party tools"},"content":{"rendered":"<p>In the dynamic environment we have at work any day of the week, we could need some test VM&#8217;s with any number of different disk sizes.<\/p>\n<p>I would clone a &#8220;Golden Master&#8221; and then resize the disk, going through many different tools to be able to resize the C: drive to the full size of the .vmdk.<\/p>\n<p>So, I wondered if there was any way to automate this. Well, there partially is.<\/p>\n<p>If you add the &#8220;ExtendOEMPartition = 1&#8221; entry to the sysprep.inf file that VMware &#8220;drops off&#8221; on the vmdk before the customization process, it will resize to the full size (within the limits of the Windows OS you are cloning).<\/p>\n<p>Keep in mind, this doesn&#8217;t work for shrinking, but it certainly does for extending.<\/p>\n<p>So my task was to deploy a VM, resize the disk, and have the customization process extend to the new (bigger) .vmdk size.<\/p>\n<p>Well, after some deductive reasoning, I figured out which file generated the sysprep.inf. I wasn&#8217;t so concerned with the &#8220;dropping off&#8221; process, as I was the generation process.<\/p>\n<p>If this file is modified, to include the &#8220;ExtendOEMPartition = 1&#8221; entry in the [Unattended] section, the magic will happen. That is if you extend the .vmdk before the VM powers on for the first time.<\/p>\n<p>Now, the modifications aren&#8217;t difficult by any means. I will mention however, that the files to be modified are encoded, and they will have to be decoded. I will not go through the process of decoding them. But once decoded, you should be good to go.<\/p>\n<p>And as everyone else who posts tweaks\/ enhancements\/ mods\/ etc., I cannot be held responsible (or liable) for any changes you make to your configuration or your environment.<\/p>\n<p>Click <b><a href=\"\/vmwareforum\/Extend_Cloned_VM_Partition_Automatically.zip\">here<\/a><\/b> to download the paper I put together. (Apparently my provider is having some web issues, possibly compression or something, so I&#8217;ve changed the .pdf to a .zip link.  I&#8217;ll post the whole article as a web page to help with this issue.)<\/p>\n<p>I&#8217;ve tested this in VC 1.4 with ESX 2.5.x and VC 2.0 with ESX 3.0.0 and it works successfully with Windows 2000 and Windows 2003 guests.  <span style=\"color: rgb(102, 0, 0); font-weight: bold;\">Updated: VC 2.0.1 and ESX 3.0.1 also perform flawlessly.<\/span><\/p>\n<p>Another note: The mentioned files only have to be modified once.  They will not affect the normal cloning\/template deployment process if you do not resize the .vmdk&#8217;s.  I would recommend that if you upgrade your VC install, you check these files, and potentially update them if they have been replaced.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the dynamic environment we have at work any day of the week, we could need some test VM&#8217;s with any number of different disk &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-virtualization"],"_links":{"self":[{"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":0,"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jasemccarty.com\/blog\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}