<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.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>Hyper-V: Why is networking reset in my VM when I copy a VHD?</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx</link><description>This is a question I&amp;#8217;ve seen come up a few times so figured it was time to examine why in a little more detail. In Virtual Server, you were able to copy VHDs and the associated VMC (Virtual Machine Configuration) file from one host to another, add</description><dc:language>en-GB</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Hyper-V: Why is networking reset in my VM when I copy a VHD? | Windows 2008 Security</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx#3092907</link><pubDate>Wed, 23 Jul 2008 16:41:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3092907</guid><dc:creator>Hyper-V: Why is networking reset in my VM when I copy a VHD? | Windows 2008 Security</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://windows2008security.com/security-policy/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd/"&gt;http://windows2008security.com/security-policy/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Hyper-V: Why is networking reset in my VM when I copy a VHD?</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx#3093809</link><pubDate>Fri, 25 Jul 2008 22:21:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3093809</guid><dc:creator>c8to</dc:creator><description>&lt;p&gt;heh...just encountered this today.&lt;/p&gt;
&lt;p&gt;i migrated all the virtual machines using import export and all was fine.&lt;/p&gt;
&lt;p&gt;the first one i imported in a directory called import, and then after i knew how it worked, i imported them to a directory called virtualMachine.&lt;/p&gt;
&lt;p&gt;later on, to be consistent, i moved that first one into the directory with the others, but of course you can't reimport a second time so all was doomed.&lt;/p&gt;
&lt;p&gt;a critical domain server no less.&lt;/p&gt;
&lt;p&gt;luckily i figured out what happened, removed the old network card and reinstituted the settings. i had all the information on hand but it would be a shame if you lost those ip settings, as in the case you described with something more complicated like a router!&lt;/p&gt;</description></item><item><title>re: Hyper-V: Why is networking reset in my VM when I copy a VHD?</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx#3093811</link><pubDate>Fri, 25 Jul 2008 22:26:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3093811</guid><dc:creator>c8to</dc:creator><description>&lt;p&gt;one further questions which came up with regards to networking, is when you have two network adapters, one dedicated for remote access and the second configured for a virtual switch, the system log can report an error that there are two network adapters sharing the one machine name (obviously)&lt;/p&gt;
&lt;p&gt;is it best practise to ignore this error, or to disable the created local area connection on the parent (really first guest OS on top of Hyper v) and just have the one real connection.&lt;/p&gt;
&lt;p&gt;also it would be great if your networking overview post on another page included how to setup the IP addresses correctly as best practise (for example comment on this nbtstat issue and dual gateway warnings when you do have two or more adapters)&lt;/p&gt;</description></item><item><title>Lazy Monday… Link’s to other great blog posts.</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx#3094867</link><pubDate>Mon, 28 Jul 2008 20:08:04 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3094867</guid><dc:creator>Taylor Brown's Blog</dc:creator><description>&lt;p&gt;I've been a little light on content the last few weeks (the post RTM hangover is stating to fade finally)...&amp;amp;#160;&lt;/p&gt;
</description></item><item><title>re: Hyper-V: Why is networking reset in my VM when I copy a VHD?</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx#3102164</link><pubDate>Thu, 07 Aug 2008 17:19:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3102164</guid><dc:creator>Tore Lervik</dc:creator><description>&lt;p&gt;Having a VM with a external network connection called &amp;quot;Internet&amp;quot;.&lt;/p&gt;
&lt;p&gt;Both servers have a network named &amp;quot;Internet&amp;quot; that is external and &amp;quot;test&amp;quot; that is internal.&lt;/p&gt;
&lt;p&gt;When exporting this vm and then import it on another server the external network is now set to &amp;quot;Not connected&amp;quot; as the importer failed to find the network.&lt;/p&gt;
&lt;p&gt;But if i do the same thing with a VM where the &amp;quot;test&amp;quot; network is used, it will use the &amp;quot;test&amp;quot; network when it's importet.&lt;/p&gt;
&lt;p&gt;Why is this?&lt;/p&gt;</description></item><item><title>re: Hyper-V: Why is networking reset in my VM when I copy a VHD?</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx#3102248</link><pubDate>Thu, 07 Aug 2008 20:55:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3102248</guid><dc:creator>jhoward</dc:creator><description>&lt;p&gt;c8to - you should either create through WMI a &amp;quot;dedicated&amp;quot; network for the VMs (preferred), or remove the bindings from the virtual NIC in the parent partition created when the external network switch was created, or even disable that virtual NIC&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;John. &lt;/p&gt;
</description></item><item><title>re: Hyper-V: Why is networking reset in my VM when I copy a VHD?</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx#3108614</link><pubDate>Tue, 19 Aug 2008 20:35:35 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3108614</guid><dc:creator>Chuck vdL</dc:creator><description>&lt;p&gt;Great tip.. &amp;nbsp;just ran into this with a Vista VM and wanted to get rid of the old emulated NIC..&lt;/p&gt;
&lt;p&gt;BTW the KB mentioned is for earlier OS's, and doesn't know about UAC, and thus the steps it give won't work for vista or server2008. &amp;nbsp; &lt;/p&gt;
&lt;p&gt;Fortunately the solution is easy (you mentioned it pretty much in passing, so it's could be easy to miss).. for those steps to work you HAVE to use an 'elevated' (right click, run as administrator) command prompt to set the ENV variable.. &amp;nbsp;otherwise when you run devmgmt it will get it's own pristine copy of the environment and won't see the env variable you just SET a moment before.&lt;/p&gt;</description></item><item><title>re: Hyper-V: Why is networking reset in my VM when I copy a VHD?</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx#3127475</link><pubDate>Wed, 24 Sep 2008 01:00:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3127475</guid><dc:creator>Bill</dc:creator><description>&lt;p&gt;John, is the default location \programdata\microsoft\windows\hyper-v\virtual machines hardcoded? Or is it something that could be obtained programmatically using a WMI call for example. I mean similar to &amp;quot;ExternalDataRoot&amp;quot; which is part of the Msvm_VirtualSystemGlobalSettingData. If it is hardcoded, does it &amp;nbsp;use the %ProgramData% environment variable? &amp;nbsp;I noticed that when I create a new Vm in my own folder, a symlink is created in the default folder pointing to the XML configuration file that is created in my own folder. I was wondering if it is possible to determine the default folder programmatically or &amp;nbsp;should I just use \programdata\microsoft\windows\hyper-v\virtual machines or %programdata%\microsoft\windows\hyper-v\virtual machines? What's the most reliable way of determining the location of this system folder? Thanks. &lt;/p&gt;</description></item><item><title>re: Hyper-V: Why is networking reset in my VM when I copy a VHD?</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx#3127908</link><pubDate>Wed, 24 Sep 2008 23:04:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3127908</guid><dc:creator>jhoward</dc:creator><description>&lt;p&gt;Bill - &lt;/p&gt;
&lt;p&gt;Msvm_VirtualSystemManagementServiceSettingData.DefaultExternalDataRoot. &amp;nbsp;A symbolic link will always be created in the default location you specifid, but the full VM config file will be created, by default, in the location specified in this property.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;
</description></item><item><title>re: Hyper-V: Why is networking reset in my VM when I copy a VHD?</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx#3208473</link><pubDate>Tue, 03 Mar 2009 02:05:01 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3208473</guid><dc:creator>Anagha</dc:creator><description>&lt;p&gt;John,&lt;/p&gt;
&lt;p&gt;Is there a way to retrieve ChannelInstanceGuid of SCSI controller of a VM through WMI?&lt;/p&gt;</description></item><item><title>re: Hyper-V: Why is networking reset in my VM when I copy a VHD?</title><link>http://blogs.technet.com/jhoward/archive/2008/07/22/hyper-v-why-is-networking-reset-in-my-vm-when-i-copy-a-vhd.aspx#3226204</link><pubDate>Tue, 14 Apr 2009 14:15:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3226204</guid><dc:creator>Shiva</dc:creator><description>&lt;p&gt;John,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;You are GOD! This link helped a lot.&lt;/p&gt;</description></item></channel></rss>