{"id":9171,"date":"2008-08-28T15:48:00","date_gmt":"1999-11-29T20:00:00","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=9171"},"modified":"2008-08-28T15:48:00","modified_gmt":"1999-11-29T20:00:00","slug":"aidan-finn-beware-anti-virus-and-hyper-v-follow-up","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=9171","title":{"rendered":"Aidan Finn: Beware Anti-Virus and Hyper-V &#8211; Follow Up"},"content":{"rendered":"<p>This is quite a frustrating problem.\u00a0 The origin was that some of the XML files that define my VM&#8217;s were locked by AV on a test Hyper-V server.\u00a0 This caused Hyper-V to fail to load the VM&#8217;s.\u00a0 OK.\u00a0 That&#8217;s not a biggie\u00a0 &#8211; fix the problem and then start up the VM&#8217;s is what you&#8217;d think.\u00a0 Uh-uh!\u00a0 Hyper-V had managed to unload all knowledge of those VM&#8217;s.\u00a0 OK &#8211; maybe I could just reopen the VMs?\u00a0 Hyper-V does not have an &quot;open&quot; function.\u00a0 Finally, I tried setting up a new VM with the existing config and disks.\u00a0 That&#8217;s a monotonous manual task.\u00a0 The problem here is that I lost my saved snapshots.<\/p>\n<p>I opened a call with MS.\u00a0 I also tried using the TechNet forums.\u00a0 Let&#8217;s see what I got there before I get back to the call.\u00a0 The MS staff on there gave me comments such as &quot;why were you scanning?&quot; and &quot;don&#8217;t use snapshots in production&quot;.\u00a0 Hmm.\u00a0 Most people put AV on their servers.\u00a0 The reason is to PROTECT them.\u00a0 I&#8217;m sure if the Hyper-V team talked to the ForeFront team they&#8217;d be told the same thing.\u00a0 I had put an exception in for the VHD files but didn&#8217;t know to do the same for the XML&#8217;s until it was too late.\u00a0 However, even if I had, there&#8217;s always a chance a junior member of staff could accidentally override that exception.\u00a0 What am I to do then, lose half of the VM&#8217;s on all of my hosts?\u00a0 Is that acceptable to MS?\u00a0 <\/p>\n<p><em>I nearly choked when I saw a video of Steve Riley at TechEd talking about the potential of scanning VM&#8217;s using AV.\u00a0 DONT TRY IT!<\/em><\/p>\n<p>And as for using snapshots: A big use of virtualisation is setting up test environments.\u00a0 Whether it&#8217;s for software development or infrastructure deployments, virtualisation earned it&#8217;s acceptance this way and continues to be a strong player there.\u00a0 MS should understand this seeing as they think everyone in IT is a programmer.\u00a0 Snapshots are a convenient way to get a VM back to a known state.\u00a0 No tester will want to use backups for this because it&#8217;s too cumbersome, expensive and slow.<\/p>\n<p>Back to the call.\u00a0 After the usual chain of mails to get the engineer to understand the problem I finally got him on board.\u00a0 In case anyone from MS is reading, here&#8217;s the case number: SRX080721602387.\u00a0 I learned something from this call.\u00a0 Hyper-V knows what VM&#8217;s and snapshots exist via shortcuts:<\/p>\n<ul>\n<li>%SYSTEMDRIVE%ProgramDataMicrosoftWindowsHyper-VVirtual Machines: This contains shortcuts to the XML files of each VM.  <\/li>\n<li>&quot;%SYSTEMDRIVE%ProgramDataMicrosoftWindowsHyper-VSnapshots: This contains shortcuts to the XML files of each snapshot.<\/li>\n<\/ul>\n<p>Here&#8217;s where it gets nutty.\u00a0 The missing VM&#8217;s were defined in these locations.\u00a0 Now we had no idea why Hyper-V wasn&#8217;t loading my VM&#8217;s (reboots and all).\u00a0 We tried recreating this shortcuts via Explorer and via command prompt.\u00a0 No joy.<\/p>\n<p>I eventually gave up because the ticket was now running around in circles.\u00a0 I needed a working test lab back, despite losing my snapshots which will eventually lead me having to recreate my lab environment from scratch.<\/p>\n<p>What to learn from this?\u00a0 Hyper-V badly needs a simple way to open an existing VM.\u00a0 Virtual Server has it.\u00a0 Virtual PC has it.\u00a0 VMware has it.\u00a0 Why doesn&#8217;t Hyper-V?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is quite a frustrating problem.\u00a0 The origin was that some of the XML files that define my VM&#8217;s were locked by AV on a test Hyper-V server.\u00a0 This caused Hyper-V to fail to load the VM&#8217;s.\u00a0 OK.\u00a0 That&#8217;s not a biggie\u00a0 &#8211; fix the problem and then start up the VM&#8217;s is what you&#8217;d &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=9171\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Aidan Finn: Beware Anti-Virus and Hyper-V &#8211; Follow Up&#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-9171","post","type-post","status-publish","format-standard","hentry","category-hyper-v"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/9171","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=9171"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/9171\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}