<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Performing a “configuration only” export / import on Hyper-V</title><link>http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/03/24/performing-a-configuration-only-export-import-on-hyper-v.aspx</link><description>The next challenge I faced during my big rebuild of my Hyper-V server was what to do with my Windows Home Server virtual machine. This is a single virtual machine that has a total of 6TB of storage attached to it – so backing it up to a remote location</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Performing a “configuration only” export / import on Hyper-V</title><link>http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/03/24/performing-a-configuration-only-export-import-on-hyper-v.aspx#10386921</link><pubDate>Mon, 21 Jan 2013 19:02:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10386921</guid><dc:creator>Mike _ Olivet</dc:creator><description>&lt;p&gt;Does anyone know how to fix the problem with access Hyper-V manager. I recieve an error stating the domain admin doesn&amp;#39;t have the rights to open the mmc or virftmgmr.msc doesn&amp;#39;t exits. I think the problem came from installing hyper-v before joining the 2012 server to the doamin.&lt;/p&gt;
&lt;p&gt;Thank &amp;nbsp;you&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10386921" width="1" height="1"&gt;</description></item><item><title>re: Performing a “configuration only” export / import on Hyper-V</title><link>http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/03/24/performing-a-configuration-only-export-import-on-hyper-v.aspx#10250459</link><pubDate>Thu, 22 Dec 2011 19:56:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10250459</guid><dc:creator>James DeFelice</dc:creator><description>&lt;p&gt;For anyone following the import problem, there&amp;#39;s a thread on the support forum:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/886189d8-7c0a-4baf-b20b-b330f1763d05?prof=required"&gt;social.technet.microsoft.com/.../886189d8-7c0a-4baf-b20b-b330f1763d05&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10250459" width="1" height="1"&gt;</description></item><item><title>re: Performing a “configuration only” export / import on Hyper-V</title><link>http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/03/24/performing-a-configuration-only-export-import-on-hyper-v.aspx#10248131</link><pubDate>Thu, 15 Dec 2011 15:24:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10248131</guid><dc:creator>James DeFelice</dc:creator><description>&lt;p&gt;I saved the scripts from the link above as configexp.vbs (for the export) and configimp.vbs (for the import).&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what I&amp;#39;m doing:&lt;/p&gt;
&lt;p&gt;(1) create VHD d:\testcase1\a.vhd, 2GB&lt;/p&gt;
&lt;p&gt;(2) create VHD d:\testcase1\b.vhd, diff disk with parent d:\testcase1\a.vhd&lt;/p&gt;
&lt;p&gt;(3) create VHD d:\testcase1\c.vhd, diff disk with parent d:\testcase1\b.vhd&lt;/p&gt;
&lt;p&gt;(4) create VHD d:\testcase1\d.vhd, diff disk with parent d:\testcase1\c.vhd&lt;/p&gt;
&lt;p&gt;(5) create VHD d:\testcase1\e.vhd, diff disk with parent d:\testcase1\c.vhd&lt;/p&gt;
&lt;p&gt;(6) create VM D, 512MB memory, 1 cpu, no networks, use d.vhd as the disk&lt;/p&gt;
&lt;p&gt;(7) create VM E, 512MB memory, 1 cpu, no networks, use e.vhd as the disk&lt;/p&gt;
&lt;p&gt;(8) start VM D, wait for it to start completely&lt;/p&gt;
&lt;p&gt;(9) start VM E, wait for it to start completely&lt;/p&gt;
&lt;p&gt;(10) observe that they both start up OK&lt;/p&gt;
&lt;p&gt;(11) stop VM D, wait for it to stop completely&lt;/p&gt;
&lt;p&gt;(12) stop VM E, wait for it to stop completely&lt;/p&gt;
&lt;p&gt;(13) cscript configexp.vbs, enter the name of the server, enter D as the VM, enter d:\D-export as the target path, click OK, the export completes&lt;/p&gt;
&lt;p&gt;(14) cscript configexp.vbs, enter the name of the server, enter E as the VM, enter d:\E-export as the target path, click OK, the export completes&lt;/p&gt;
&lt;p&gt;(15) delete VM D from hyperv -- observe that the VHDs are still in place&lt;/p&gt;
&lt;p&gt;(16) delete VM E from hyperv -- observe that the VHDs are still in place&lt;/p&gt;
&lt;p&gt;(17) cscript configimp.vbs, enter the name of the server, enter &amp;nbsp;d:\D-export\D as the import path, click OK, import completes&lt;/p&gt;
&lt;p&gt;(18) start VM D, wait for it to start completely&lt;/p&gt;
&lt;p&gt;(19) cscript configimp.vbs, enter the name of the server, enter d:\E-export\E as the import path, click OK, import fails&lt;/p&gt;
&lt;p&gt;(20) Observe the following error message on the console:&lt;/p&gt;
&lt;p&gt;Get the import settings object.&lt;/p&gt;
&lt;p&gt;Importing virtual machine. 10% complete&lt;/p&gt;
&lt;p&gt;The virtual machine has not been imported.&lt;/p&gt;
&lt;p&gt;ErrorCode:0&lt;/p&gt;
&lt;p&gt;ErrorDescription:Import completed with warnings. Please check the Admin events in the Hyper-V-VMMS event log for more information.&lt;/p&gt;
&lt;p&gt;(21) Observe that the error in the event log complains about c.vhd being already in use.&lt;/p&gt;
&lt;p&gt;(22) In the hyperv UI, examine VM D, observe that it is using d.vhd (which is expected)&lt;/p&gt;
&lt;p&gt;I believe this to be a bug in hyperv. &amp;nbsp;I performed *every* step here using the hyperv UI except for the execution of the vbs scripts.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10248131" width="1" height="1"&gt;</description></item><item><title>re: Performing a “configuration only” export / import on Hyper-V</title><link>http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/03/24/performing-a-configuration-only-export-import-on-hyper-v.aspx#10247288</link><pubDate>Tue, 13 Dec 2011 18:11:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10247288</guid><dc:creator>James DeFelice</dc:creator><description>&lt;p&gt;Roy B -&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having what sounds like a similar problem. I can import a VM that uses multiple levels of disks under a certain condition.&lt;/p&gt;
&lt;p&gt;Given the following diff disk chain: a.vhd &amp;lt;-- b.vhd &amp;lt;-- (c.vhd, d.vhd), where c.vhd and d.vhd are children of b.vhd, a.vhd is the &amp;quot;root&amp;quot;, and VM C uses c.vhd and VM D uses d.vhd, I can import and start VM C - but doing so prohibits hyperv from importing VM D. &amp;nbsp;Actually, the import of VM D sort-of completes, except that it gives a warning that b.vhd is already in use - and it refuses to populate the IDE connection with d.vhd.&lt;/p&gt;
&lt;p&gt;I can manually (either via the UI or powershell) re-attach d.vhd to VM D and start it up just fine.&lt;/p&gt;
&lt;p&gt;Any thoughts as to why the import fails?&lt;/p&gt;
&lt;p&gt;-James&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10247288" width="1" height="1"&gt;</description></item><item><title>re: Performing a “configuration only” export / import on Hyper-V</title><link>http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/03/24/performing-a-configuration-only-export-import-on-hyper-v.aspx#10136570</link><pubDate>Thu, 03 Mar 2011 19:25:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10136570</guid><dc:creator>Craig Eberly</dc:creator><description>&lt;p&gt;Absolutely awesome script. &amp;nbsp; Server 2008 had the option to export config only. &amp;nbsp;I did an in-place upgrade to R2, and the hyper-v role did not upgrade so I had to reinstall the role. &amp;nbsp;Then I found out there was no config only import option in the GUI. &amp;nbsp;Do I seriously need Microsoft to move my VHD&amp;#39;s around for me? &amp;nbsp; &lt;/p&gt;
&lt;p&gt;THANKS!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10136570" width="1" height="1"&gt;</description></item><item><title>re: Performing a “configuration only” export / import on Hyper-V</title><link>http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/03/24/performing-a-configuration-only-export-import-on-hyper-v.aspx#10135701</link><pubDate>Tue, 01 Mar 2011 22:01:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10135701</guid><dc:creator>Roy B</dc:creator><description>&lt;p&gt;Thanks for publishing the script! Gave me a leg up. Any chance you&amp;#39;ve encountered the issue of being unable to import a config-only export of a VM with multiple levels of diff disks?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10135701" width="1" height="1"&gt;</description></item><item><title>re: Performing a “configuration only” export / import on Hyper-V</title><link>http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/03/24/performing-a-configuration-only-export-import-on-hyper-v.aspx#9998231</link><pubDate>Mon, 19 Apr 2010 06:24:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9998231</guid><dc:creator>Benjamin Armstrong</dc:creator><description>&lt;p&gt;DS - &lt;/p&gt;
&lt;p&gt;This is an unfortunate side effect of the tool that I use to make the code look pretty. &amp;nbsp;An easy solution is to paste the code into wordpad first.&lt;/p&gt;
&lt;p&gt;Kieran Jacobsen -&lt;/p&gt;
&lt;p&gt;I intentionally included the bin and vsv files. &amp;nbsp;I wanted everything exported except for the VHD files.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9998231" width="1" height="1"&gt;</description></item><item><title>re: Performing a “configuration only” export / import on Hyper-V</title><link>http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/03/24/performing-a-configuration-only-export-import-on-hyper-v.aspx#9985668</link><pubDate>Fri, 26 Mar 2010 12:25:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9985668</guid><dc:creator>Kieran Jacobsen</dc:creator><description>&lt;p&gt;Ben, I have just compared the output from the powershell library to the output your script produces, and I think there are some problems with your script.&lt;/p&gt;
&lt;p&gt;Firstly, your script still copies the bin and vsv files for a vm which is in the saved state. Secondly, in the config.xml file at the root fo the directory, &amp;lt;VmStateCopied type=&amp;quot;bool&amp;quot;&amp;gt;true&amp;lt;/VmStateCopied&amp;gt; which from my understanding should be false.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9985668" width="1" height="1"&gt;</description></item><item><title>re: Performing a “configuration only” export / import on Hyper-V</title><link>http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/03/24/performing-a-configuration-only-export-import-on-hyper-v.aspx#9985667</link><pubDate>Fri, 26 Mar 2010 12:16:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9985667</guid><dc:creator>Kieran Jacobsen</dc:creator><description>&lt;p&gt;I was just looking a making this into a powershell script when i discovered the PowerShell &amp;nbsp;Management Library for Hyper-V (&lt;a rel="nofollow" target="_new" href="http://pshyperv.codeplex.com/"&gt;http://pshyperv.codeplex.com/&lt;/a&gt;) which includes export-vm which by default is config only.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9985667" width="1" height="1"&gt;</description></item><item><title>re: Performing a “configuration only” export / import on Hyper-V</title><link>http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/03/24/performing-a-configuration-only-export-import-on-hyper-v.aspx#9985650</link><pubDate>Fri, 26 Mar 2010 11:16:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9985650</guid><dc:creator>DS</dc:creator><description>&lt;p&gt;When I copy the code into notepad, everything is in one line only.&lt;/p&gt;
&lt;p&gt;Not a big deal, I'll sort it, but is it possible that you save the code in some downloadable form (like zip) or whatever.&lt;/p&gt;
&lt;p&gt;Otherwise, a great article, like many here. I'm a regular lurker and keep up the good work.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9985650" width="1" height="1"&gt;</description></item></channel></rss>