
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Virtual Hard Disk Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/virtual-hard-disk/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/tag/virtual-hard-disk/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Sat, 11 Sep 2021 10:57:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>Virtual Hard Disk Archives - TECHNIG</title>
	<link>https://www.technig.com/tag/virtual-hard-disk/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>How to Convert VHD to VHDX Using Hyper-V and PowerShell?</title>
		<link>https://www.technig.com/convert-vhd-to-vhdx-hyper-v-powershell/</link>
					<comments>https://www.technig.com/convert-vhd-to-vhdx-hyper-v-powershell/#comments</comments>
		
		<dc:creator><![CDATA[Shais]]></dc:creator>
		<pubDate>Wed, 13 May 2015 17:15:17 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Convert VHD to VHDX]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Hyper-v]]></category>
		<category><![CDATA[Virtual Hard Disk]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=2694</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Technig.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Convert VHD to VHDX - Technig" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Technig.jpg 840w, https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Technig-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Technig-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div>
<p>Virtual Hard Disk (VHD) is the hard disk format of Microsoft Hyper-v, a compatible hard disk format with Windows Server 2008 and Hyper-v server 2008. But in Windows Server 2012, Microsoft has changed the VHD format to VHDX, like the old file documents (.doc) to .docx. So here I&#8217;m going to show you how to [&#8230;]</p>
<p>The post <a href="https://www.technig.com/convert-vhd-to-vhdx-hyper-v-powershell/">How to Convert VHD to VHDX Using Hyper-V and PowerShell?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Technig.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Convert VHD to VHDX - Technig" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Technig.jpg 840w, https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Technig-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Technig-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div><p>Virtual Hard Disk (VHD) is the hard disk format of Microsoft Hyper-v, a compatible hard disk format with Windows Server 2008 and Hyper-v server 2008. But in <a href="https://www.technig.com/tag/windows-server-2012-r2/" target="_blank" rel="noopener noreferrer">Windows Server 2012</a>, Microsoft has changed the VHD format to VHDX, like the old file documents (.doc) to .docx. So here I&#8217;m going to show you how to convert VHD to VHDX using Hyper-v manager and PowerShell command line.</p>
<p>Before starting conversion process, once read the benefits and new features of VHDX from <a href="https://technet.microsoft.com/en-us/library/hh831446.aspx" target="_blank" rel="noopener noreferrer">Hyper-V Virtual Hard Disk Format Overview</a></p>
<h4>The main new features of the VHDX format are:</h4>
<ul style="list-style-type: circle;">
<li>Support for virtual hard disk storage capacity of up to 64 TB.</li>
<li>Protection against data corruption during power failures by logging updates to the VHDX metadata structures.</li>
<li>Improved alignment of the virtual hard disk format to work well on large sector disks.</li>
</ul>
<h4>The VHDX format also provides the following features:</h4>
<ul style="list-style-type: circle;">
<li>Larger block sizes for dynamic and differencing disks, which allows these disks to attune to the needs of the workload.</li>
<li>A 4-KB logical sector virtual disk that allows for increased performance when used by applications and workloads that are designed for 4-KB sectors.</li>
<li>The ability to store custom metadata about the file that the user might want to record, such as operating system version or patches applied.</li>
<li>Efficiency in representing data (also known as “trim”), which results in smaller file size and allows the underlying physical storage device to reclaim unused space. (Trim requires physical disks directly attached to a virtual machine or SCSI disks, and trim-compatible hardware.)</li>
</ul>
<p>Convert VHD to VHDX with hyper-v manager is the graphical method and is easy for beginner to Virtualization with hyper-v. Do it like the below step by step guides.</p>
<h3>Convert VHD to VHDX with Hyper-v Manager</h3>
<p>The first method is using Hyper-v Manager to convert vhd to vhdx. So open your hyper-v manager and click the <strong>Action</strong> then click <strong>Edit disk </strong>or from right side click<strong> Edit Disk</strong>.</p>
<figure id="attachment_2697" aria-describedby="caption-attachment-2697" style="width: 714px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/Hyper-v-Manager.jpg"><img decoding="async" class="wp-image-2697 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/Hyper-v-Manager.jpg" alt="Hyper-v Manager" width="714" height="426" srcset="https://www.technig.com/wp-content/uploads/2015/05/Hyper-v-Manager.jpg 714w, https://www.technig.com/wp-content/uploads/2015/05/Hyper-v-Manager-300x179.jpg 300w" sizes="(max-width: 714px) 100vw, 714px" /></a><figcaption id="caption-attachment-2697" class="wp-caption-text">Hyper-v Manager</figcaption></figure>
<p>When the Edit Virtual Hard Disk Wizard opened, click browse and select the virtual hard disk files.</p>
<figure id="attachment_2698" aria-describedby="caption-attachment-2698" style="width: 721px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/Edit-Virtual-Hard-Disk.jpg"><img decoding="async" class="wp-image-2698 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/Edit-Virtual-Hard-Disk.jpg" alt="Edit Virtual Hard Disk" width="721" height="540" srcset="https://www.technig.com/wp-content/uploads/2015/05/Edit-Virtual-Hard-Disk.jpg 721w, https://www.technig.com/wp-content/uploads/2015/05/Edit-Virtual-Hard-Disk-300x225.jpg 300w, https://www.technig.com/wp-content/uploads/2015/05/Edit-Virtual-Hard-Disk-86x64.jpg 86w" sizes="(max-width: 721px) 100vw, 721px" /></a><figcaption id="caption-attachment-2698" class="wp-caption-text">Edit Virtual Hard Disk</figcaption></figure>
<p>When you select the existing .vhd file, click N<strong>ext</strong>.</p>
<figure id="attachment_2699" aria-describedby="caption-attachment-2699" style="width: 721px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX.jpg"><img loading="lazy" decoding="async" class="wp-image-2699 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX.jpg" alt="Convert VHD to VHDX" width="721" height="540" srcset="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX.jpg 721w, https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-300x225.jpg 300w, https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-86x64.jpg 86w" sizes="(max-width: 721px) 100vw, 721px" /></a><figcaption id="caption-attachment-2699" class="wp-caption-text">Convert VHD to VHDX</figcaption></figure>
<p>On the <strong>Choose Action</strong> page, select <strong>Convert</strong> and click <strong>Next</strong>.</p>
<figure id="attachment_2700" aria-describedby="caption-attachment-2700" style="width: 721px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-Files.jpg"><img loading="lazy" decoding="async" class="wp-image-2700 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-Files.jpg" alt="Convert VHD Files" width="721" height="540" srcset="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-Files.jpg 721w, https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-Files-300x225.jpg 300w, https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-Files-86x64.jpg 86w" sizes="(max-width: 721px) 100vw, 721px" /></a><figcaption id="caption-attachment-2700" class="wp-caption-text">Convert VHD Files</figcaption></figure>
<p>On the <strong>Choose Disk Format</strong> page, select <strong>VHDX</strong> and click <strong>Next</strong>.</p>
<figure id="attachment_2701" aria-describedby="caption-attachment-2701" style="width: 721px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/Convert-Virtual-Hard-Disk.jpg"><img loading="lazy" decoding="async" class="wp-image-2701 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/Convert-Virtual-Hard-Disk.jpg" alt="Convert Virtual Hard Disk" width="721" height="540" srcset="https://www.technig.com/wp-content/uploads/2015/05/Convert-Virtual-Hard-Disk.jpg 721w, https://www.technig.com/wp-content/uploads/2015/05/Convert-Virtual-Hard-Disk-300x225.jpg 300w, https://www.technig.com/wp-content/uploads/2015/05/Convert-Virtual-Hard-Disk-86x64.jpg 86w" sizes="(max-width: 721px) 100vw, 721px" /></a><figcaption id="caption-attachment-2701" class="wp-caption-text">Convert Virtual Hard Disk</figcaption></figure>
<p>Now, on the <strong>Configure Disk</strong> page click <strong>Browse</strong> and select the directory, where you want to save the vhdx file and then click <strong>Next</strong>.</p>
<figure id="attachment_2702" aria-describedby="caption-attachment-2702" style="width: 721px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/Configure-Virtual-Hard-Disk.jpg"><img loading="lazy" decoding="async" class="wp-image-2702 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/Configure-Virtual-Hard-Disk.jpg" alt="Configure Virtual Hard Disk" width="721" height="540" srcset="https://www.technig.com/wp-content/uploads/2015/05/Configure-Virtual-Hard-Disk.jpg 721w, https://www.technig.com/wp-content/uploads/2015/05/Configure-Virtual-Hard-Disk-300x225.jpg 300w, https://www.technig.com/wp-content/uploads/2015/05/Configure-Virtual-Hard-Disk-86x64.jpg 86w" sizes="(max-width: 721px) 100vw, 721px" /></a><figcaption id="caption-attachment-2702" class="wp-caption-text">Configure Virtual Hard Disk</figcaption></figure>
<p>Finally on the <strong>Summary</strong> page click <strong>Finish</strong> button to complete the conversion of VHD to VHDX.</p>
<figure id="attachment_2703" aria-describedby="caption-attachment-2703" style="width: 721px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/Completing-the-Edit-Virtual-Hard-Disk-Wizard.jpg"><img loading="lazy" decoding="async" class="wp-image-2703 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/Completing-the-Edit-Virtual-Hard-Disk-Wizard.jpg" alt="Completing the Edit Virtual Hard Disk Wizard" width="721" height="540" srcset="https://www.technig.com/wp-content/uploads/2015/05/Completing-the-Edit-Virtual-Hard-Disk-Wizard.jpg 721w, https://www.technig.com/wp-content/uploads/2015/05/Completing-the-Edit-Virtual-Hard-Disk-Wizard-300x225.jpg 300w, https://www.technig.com/wp-content/uploads/2015/05/Completing-the-Edit-Virtual-Hard-Disk-Wizard-86x64.jpg 86w" sizes="(max-width: 721px) 100vw, 721px" /></a><figcaption id="caption-attachment-2703" class="wp-caption-text">Completing the Edit Virtual Hard Disk Wizard</figcaption></figure>
<p>Yes, the vhd format converted successfully to vhdx format.</p>
<figure id="attachment_2705" aria-describedby="caption-attachment-2705" style="width: 525px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Result.jpg"><img loading="lazy" decoding="async" class="wp-image-2705 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Result.jpg" alt="Convert VHD to VHDX Result" width="525" height="52" srcset="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Result.jpg 525w, https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-Result-300x30.jpg 300w" sizes="(max-width: 525px) 100vw, 525px" /></a><figcaption id="caption-attachment-2705" class="wp-caption-text">Convert VHD to VHDX Result</figcaption></figure>
<p>Go to virtual hard disk directory and see the converted vhdx file.</p>
<h3>Convert VHD to VHDX with PowerShell</h3>
<p>Now try to convert vhd to vhdx with Windows <a href="http://en.wikipedia.org/wiki/Windows_PowerShell" target="_blank" rel="noopener noreferrer">Powershell</a>. It is also easy and just requires one line command of <strong>convert-VHD</strong><strong>. </strong>Remember, before starting conversion of vhd, you must turn off all you guest computers in Hyper-v environment.</p>
<h4><strong>1. Convert Single Virtual Hard Disk</strong></h4>
<p>convert a single vhd to vhdx with the following command.</p>
<p><code>PS C:\&gt;<strong><span style="color: #ff6600;"> Convert-VHD</span> -Path '<span style="color: #339966;">E:\Virtual Hard Disk-1.vhd</span>' -DestinationPath <span style="color: #339966;">E:\Virtual-HD.vhdx</span></strong></code></p>
<figure id="attachment_2708" aria-describedby="caption-attachment-2708" style="width: 953px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-with-PowerShell.jpg"><img loading="lazy" decoding="async" class="wp-image-2708 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-with-PowerShell.jpg" alt="Convert VHD to VHDX with PowerShell" width="953" height="51" srcset="https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-with-PowerShell.jpg 953w, https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-with-PowerShell-300x16.jpg 300w, https://www.technig.com/wp-content/uploads/2015/05/Convert-VHD-to-VHDX-with-PowerShell-768x41.jpg 768w" sizes="(max-width: 953px) 100vw, 953px" /></a><figcaption id="caption-attachment-2708" class="wp-caption-text">Convert VHD to VHDX with PowerShell</figcaption></figure>
<p>The <strong>Convert-VHD</strong> is the main command for vhd conversion and the <strong>-Path</strong> is the directory of vhd files, and the<strong> -DestinationPath</strong> is the directory where you want to save the converted vhd to vhdx file.</p>
<p>OK, done successfully, now check the result with get-childitem command.</p>
<p><code>PS C:\&gt;<strong> Get-ChildItem E:\*.vhdx</strong></code></p>
<figure id="attachment_2709" aria-describedby="caption-attachment-2709" style="width: 629px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/VHDX-Result.jpg"><img loading="lazy" decoding="async" class="wp-image-2709 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/VHDX-Result.jpg" alt="VHDX Result" width="629" height="170" srcset="https://www.technig.com/wp-content/uploads/2015/05/VHDX-Result.jpg 629w, https://www.technig.com/wp-content/uploads/2015/05/VHDX-Result-300x81.jpg 300w" sizes="(max-width: 629px) 100vw, 629px" /></a><figcaption id="caption-attachment-2709" class="wp-caption-text">VHDX Result</figcaption></figure>
<h4><strong>2. Convert Multiple Virtual Hard Disks </strong></h4>
<p>Convert multiple VHD files to VHDX using with the following method. Here I have 3 vhd files which I created for test.</p>
<p><code>PS C:\&gt;<strong> Get-ChildItem E:\*.vhd</strong></code></p>
<figure id="attachment_2711" aria-describedby="caption-attachment-2711" style="width: 713px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/PowerShell-Get-ChildItem.jpg"><img loading="lazy" decoding="async" class="wp-image-2711 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/PowerShell-Get-ChildItem.jpg" alt="PowerShell Get-ChildItem" width="713" height="245" srcset="https://www.technig.com/wp-content/uploads/2015/05/PowerShell-Get-ChildItem.jpg 713w, https://www.technig.com/wp-content/uploads/2015/05/PowerShell-Get-ChildItem-300x103.jpg 300w" sizes="(max-width: 713px) 100vw, 713px" /></a><figcaption id="caption-attachment-2711" class="wp-caption-text">PowerShell Get-ChildItem</figcaption></figure>
<p>OK, that&#8217;s all three virtual hard disks with vhd format. Let&#8217;s convert them with one command at the same time.</p>
<p><code>PS C:\&gt; <strong>Get-ChildItem E:\*.vhd | ForEach-Object {Convert-VHD -path $_.fullname -destinationpath ("E:\"+ $_.basename + ".vhdx") }</strong></code></p>
<figure id="attachment_2712" aria-describedby="caption-attachment-2712" style="width: 1077px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/Convert-Multiple-VHD.jpg"><img loading="lazy" decoding="async" class="wp-image-2712 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/Convert-Multiple-VHD.jpg" alt="Convert Multiple VHD" width="1077" height="45" srcset="https://www.technig.com/wp-content/uploads/2015/05/Convert-Multiple-VHD.jpg 1077w, https://www.technig.com/wp-content/uploads/2015/05/Convert-Multiple-VHD-300x13.jpg 300w, https://www.technig.com/wp-content/uploads/2015/05/Convert-Multiple-VHD-768x32.jpg 768w, https://www.technig.com/wp-content/uploads/2015/05/Convert-Multiple-VHD-1024x43.jpg 1024w" sizes="(max-width: 1077px) 100vw, 1077px" /></a><figcaption id="caption-attachment-2712" class="wp-caption-text">Convert Multiple VHD</figcaption></figure>
<p>The two new properties within this command line,<strong> $_.fullname</strong> will give us the directory and file name of VHD files with extension. And the next <strong>$_.basename</strong> is just get the name of objects without extension in order to add new vhdx extension to converted virtual hard disks.</p>
<p>So the result must be like the below screenshot.</p>
<figure id="attachment_2713" aria-describedby="caption-attachment-2713" style="width: 698px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2015/05/Result-of-Multiple-VHD-Conversion.jpg"><img loading="lazy" decoding="async" class="wp-image-2713 size-full" src="https://www.technig.com/wp-content/uploads/2015/05/Result-of-Multiple-VHD-Conversion.jpg" alt="Result of Multiple VHD Conversion" width="698" height="272" srcset="https://www.technig.com/wp-content/uploads/2015/05/Result-of-Multiple-VHD-Conversion.jpg 698w, https://www.technig.com/wp-content/uploads/2015/05/Result-of-Multiple-VHD-Conversion-300x117.jpg 300w" sizes="(max-width: 698px) 100vw, 698px" /></a><figcaption id="caption-attachment-2713" class="wp-caption-text">Result of Multiple VHD Conversion</figcaption></figure>
<p>OK, hope you get something about convert vhd to vhdx using Hyper-v manager and PowerShell command line. I know we can do more with PowerShell hyper-v module, but this post is only for conversion of vhd to vhdx. If you need more help or want to ask question, feel free and ask through comment.</p>
<p>The post <a href="https://www.technig.com/convert-vhd-to-vhdx-hyper-v-powershell/">How to Convert VHD to VHDX Using Hyper-V and PowerShell?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/convert-vhd-to-vhdx-hyper-v-powershell/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2694</post-id>	</item>
	</channel>
</rss>
