{"id":9318,"date":"2009-01-05T14:29:00","date_gmt":"1999-11-29T20:00:00","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=9318"},"modified":"2009-01-05T14:29:00","modified_gmt":"1999-11-29T20:00:00","slug":"convert-to-fixed-type-virtual-hard-disk","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=9318","title":{"rendered":"Convert To Fixed Type Virtual Hard Disk"},"content":{"rendered":"<p>It is possible to convert a dynamic virtual hard disk (VHD) to a fixed size VHD.\u00a0 I found myself doing this when I needed to migrate a machine from an R&amp;D environment to production.\u00a0 Note that the VM (if the disk is attached to a VM) must be powered off to do this.<\/p>\n<p>If you use Hyper-V without Virtual Machine Manager 2008 then you can do this using the Hyper-V console.\u00a0 Edit the virtual machine in question (if applicable), select the disk and click on &lt;EDIT&gt;.\u00a0 Choose to convert the disk.\u00a0 You&#8217;ll then be asked where to place the new disk.\u00a0 Be wary here if you use dedicated volumes for each VM, e.g. in a Windows 2008 cluster.\u00a0 There may not be enough disk space in the existing disks volume for the new fixed sized disk that will be created &#8211; that&#8217;s correct; it doesn&#8217;t convert the disk, it creates a new one.\u00a0 Choose a suitable temporary location and name.\u00a0 For example, my VHD might be called Disk0.VHD and I&#8217;d convert to Disk0Full.vhd.\u00a0 When finished, I&#8217;d rename them, e.g. Disk0.VHD -&gt; DiskDyn.VHD and Disk0Full.VHD -&gt; Disk0.VHD.\u00a0 Swap the files and then restart the VM.<\/p>\n<p>It&#8217;s both easier and more complex using VMM.\u00a0 You can select the VM in question and select the disk.\u00a0 Tick the box for &quot;Convert to Fixed Type Virtual Hard Disk&quot; and apply the changes.\u00a0 A new job will start.\u00a0 This creates a new VHD in the <em>same volume<\/em> as the existing VM.\u00a0 That&#8217;s a bit nasty.\u00a0 You tend to limit the size of the LUN in question to avoid wastage when using a cluster.\u00a0 So odds are, this will fail unless you&#8217;ve plenty of spare space in the LUN &#8211; remember the LUN will contain both the original dynamic disk and the converted fixed size disk for at least a short period of time.\u00a0 Temporarily increasing and decreasing the volume size should not be done, even if your SAN can do it &#8230; my testing phase showed that it corrupts the contents of the volume.\u00a0 The nice bit of this process is that all the file renaming and swapping is done for you.\u00a0 I just wish you could pick a temporary location for the file conversion process.\u00a0 That <em>might<\/em> be possible using PowerShell.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to convert a dynamic virtual hard disk (VHD) to a fixed size VHD.\u00a0 I found myself doing this when I needed to migrate a machine from an R&amp;D environment to production.\u00a0 Note that the VM (if the disk is attached to a VM) must be powered off to do this. If you &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=9318\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Convert To Fixed Type Virtual Hard Disk&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[],"class_list":["post-9318","post","type-post","status-publish","format-standard","hentry","category-hyper-v"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"It is possible to convert a dynamic virtual hard disk (VHD) to a fixed size VHD. I found myself doing this when I needed to migrate a machine from an R&amp;D environment to production. Note that the VM (if the disk is attached to a VM) must be powered off to do this. If you\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"AFinn\"\/>\n\t<meta name=\"google-site-verification\" content=\"TDKjbi2McB2eLIfL6KwPB3aQqv5E-mbcb2QYIcovGaI\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/aidanfinn.com\/?p=9318\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Aidan Finn, IT Pro - A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Convert To Fixed Type Virtual Hard Disk | Aidan Finn, IT Pro\" \/>\n\t\t<meta property=\"og:description\" content=\"It is possible to convert a dynamic virtual hard disk (VHD) to a fixed size VHD. I found myself doing this when I needed to migrate a machine from an R&amp;D environment to production. Note that the VM (if the disk is attached to a VM) must be powered off to do this. If you\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/aidanfinn.com\/?p=9318\" \/>\n\t\t<meta property=\"article:published_time\" content=\"1999-11-29T20:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"1999-11-29T20:00:00+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@joe_elway\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Convert To Fixed Type Virtual Hard Disk | Aidan Finn, IT Pro\" \/>\n\t\t<meta name=\"twitter:description\" content=\"It is possible to convert a dynamic virtual hard disk (VHD) to a fixed size VHD. I found myself doing this when I needed to migrate a machine from an R&amp;D environment to production. Note that the VM (if the disk is attached to a VM) must be powered off to do this. If you\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@joe_elway\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318#article\",\"name\":\"Convert To Fixed Type Virtual Hard Disk | Aidan Finn, IT Pro\",\"headline\":\"Convert To Fixed Type Virtual Hard Disk\",\"author\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"AFinn\"},\"datePublished\":\"2009-01-05T14:29:00+00:00\",\"dateModified\":\"2009-01-05T14:29:00+00:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318#webpage\"},\"articleSection\":\"Hyper-V\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/aidanfinn.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20#listItem\",\"name\":\"Hyper-V\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20#listItem\",\"position\":2,\"name\":\"Hyper-V\",\"item\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318#listItem\",\"name\":\"Convert To Fixed Type Virtual Hard Disk\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318#listItem\",\"position\":3,\"name\":\"Convert To Fixed Type Virtual Hard Disk\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20#listItem\",\"name\":\"Hyper-V\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\",\"name\":\"AFinn\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"AFinn\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1\",\"name\":\"AFinn\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"AFinn\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318#webpage\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318\",\"name\":\"Convert To Fixed Type Virtual Hard Disk | Aidan Finn, IT Pro\",\"description\":\"It is possible to convert a dynamic virtual hard disk (VHD) to a fixed size VHD. I found myself doing this when I needed to migrate a machine from an R&D environment to production. Note that the VM (if the disk is attached to a VM) must be powered off to do this. If you\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=9318#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"datePublished\":\"2009-01-05T14:29:00+00:00\",\"dateModified\":\"2009-01-05T14:29:00+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#website\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/\",\"name\":\"Aidan Finn, IT Pro\",\"description\":\"A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Convert To Fixed Type Virtual Hard Disk | Aidan Finn, IT Pro","description":"It is possible to convert a dynamic virtual hard disk (VHD) to a fixed size VHD. I found myself doing this when I needed to migrate a machine from an R&D environment to production. Note that the VM (if the disk is attached to a VM) must be powered off to do this. If you","canonical_url":"https:\/\/aidanfinn.com\/?p=9318","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"TDKjbi2McB2eLIfL6KwPB3aQqv5E-mbcb2QYIcovGaI","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/aidanfinn.com\/?p=9318#article","name":"Convert To Fixed Type Virtual Hard Disk | Aidan Finn, IT Pro","headline":"Convert To Fixed Type Virtual Hard Disk","author":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"publisher":{"@id":"https:\/\/aidanfinn.com\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/aidanfinn.com\/?p=9318#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g","width":96,"height":96,"caption":"AFinn"},"datePublished":"2009-01-05T14:29:00+00:00","dateModified":"2009-01-05T14:29:00+00:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"https:\/\/aidanfinn.com\/?p=9318#webpage"},"isPartOf":{"@id":"https:\/\/aidanfinn.com\/?p=9318#webpage"},"articleSection":"Hyper-V"},{"@type":"BreadcrumbList","@id":"https:\/\/aidanfinn.com\/?p=9318#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/aidanfinn.com#listItem","position":1,"name":"Home","item":"https:\/\/aidanfinn.com","nextItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=20#listItem","name":"Hyper-V"}},{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=20#listItem","position":2,"name":"Hyper-V","item":"https:\/\/aidanfinn.com\/?cat=20","nextItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?p=9318#listItem","name":"Convert To Fixed Type Virtual Hard Disk"},"previousItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?p=9318#listItem","position":3,"name":"Convert To Fixed Type Virtual Hard Disk","previousItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=20#listItem","name":"Hyper-V"}}]},{"@type":"Person","@id":"https:\/\/aidanfinn.com\/#person","name":"AFinn","image":{"@type":"ImageObject","@id":"https:\/\/aidanfinn.com\/?p=9318#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g","width":96,"height":96,"caption":"AFinn"}},{"@type":"Person","@id":"https:\/\/aidanfinn.com\/?author=1#author","url":"https:\/\/aidanfinn.com\/?author=1","name":"AFinn","image":{"@type":"ImageObject","@id":"https:\/\/aidanfinn.com\/?p=9318#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g","width":96,"height":96,"caption":"AFinn"}},{"@type":"WebPage","@id":"https:\/\/aidanfinn.com\/?p=9318#webpage","url":"https:\/\/aidanfinn.com\/?p=9318","name":"Convert To Fixed Type Virtual Hard Disk | Aidan Finn, IT Pro","description":"It is possible to convert a dynamic virtual hard disk (VHD) to a fixed size VHD. I found myself doing this when I needed to migrate a machine from an R&D environment to production. Note that the VM (if the disk is attached to a VM) must be powered off to do this. If you","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/aidanfinn.com\/#website"},"breadcrumb":{"@id":"https:\/\/aidanfinn.com\/?p=9318#breadcrumblist"},"author":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"creator":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"datePublished":"2009-01-05T14:29:00+00:00","dateModified":"2009-01-05T14:29:00+00:00"},{"@type":"WebSite","@id":"https:\/\/aidanfinn.com\/#website","url":"https:\/\/aidanfinn.com\/","name":"Aidan Finn, IT Pro","description":"A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...","inLanguage":"en-GB","publisher":{"@id":"https:\/\/aidanfinn.com\/#person"}}]},"og:locale":"en_GB","og:site_name":"Aidan Finn, IT Pro - A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...","og:type":"article","og:title":"Convert To Fixed Type Virtual Hard Disk | Aidan Finn, IT Pro","og:description":"It is possible to convert a dynamic virtual hard disk (VHD) to a fixed size VHD. I found myself doing this when I needed to migrate a machine from an R&amp;D environment to production. Note that the VM (if the disk is attached to a VM) must be powered off to do this. If you","og:url":"https:\/\/aidanfinn.com\/?p=9318","article:published_time":"1999-11-29T20:00:00+00:00","article:modified_time":"1999-11-29T20:00:00+00:00","twitter:card":"summary","twitter:site":"@joe_elway","twitter:title":"Convert To Fixed Type Virtual Hard Disk | Aidan Finn, IT Pro","twitter:description":"It is possible to convert a dynamic virtual hard disk (VHD) to a fixed size VHD. I found myself doing this when I needed to migrate a machine from an R&amp;D environment to production. Note that the VM (if the disk is attached to a VM) must be powered off to do this. If you","twitter:creator":"@joe_elway"},"aioseo_meta_data":{"post_id":"9318","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 03:53:14","updated":"2025-06-04 12:23:07","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/aidanfinn.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/aidanfinn.com\/?cat=20\" title=\"Hyper-V\">Hyper-V<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tConvert To Fixed Type Virtual Hard Disk\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/aidanfinn.com"},{"label":"Hyper-V","link":"https:\/\/aidanfinn.com\/?cat=20"},{"label":"Convert To Fixed Type Virtual Hard Disk","link":"https:\/\/aidanfinn.com\/?p=9318"}],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/9318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9318"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/9318\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}