{"id":39,"date":"2022-05-02T17:30:34","date_gmt":"2022-05-02T17:30:34","guid":{"rendered":"https:\/\/brainlessideas.com\/?p=39"},"modified":"2022-07-11T20:04:47","modified_gmt":"2022-07-11T20:04:47","slug":"fix-bsod-0x0000007b-on-virtualized-win7-and-server-2008","status":"publish","type":"post","link":"https:\/\/brainlessideas.com\/index.php\/2022\/05\/02\/fix-bsod-0x0000007b-on-virtualized-win7-and-server-2008\/","title":{"rendered":"Fix BSOD 0x0000007B on virtualized Win7 (and Server 2008)"},"content":{"rendered":"\n<p>Ran into this problem when I P2V\u2019d my main Win7 box.&nbsp; It had a broken Intel (software) raid on it (Raid1 with the second drive missing). I don\u2019t know if this is why it was bluescreening, as I had used the heck out of this box for many years and it had every driver under the sun on it, but still, it was the obvious condition.<\/p>\n\n\n\n<p>Basically, you have to start the VM in recovery mode, open a command prompt and run regedit.&nbsp; Modifiy a few values to start some drivers and you should be good to go.ystem image from a backup or migrate a physical host into the virtualization environment (P2V), the BSOD with error 0x0000007B can appear at the first time you boot Windows Server 2008 R2 or Windows 7.<\/p>\n\n\n\n<p>I was getting a STOP: 0x0000007B code (it was hard to see this as when VM\u2019d, bluescreens only show for a fraction of a second.<\/p>\n\n\n\n<p>This stop code corresponds to the <strong>INACCESSABLE_BOOT_DEVICE<\/strong> error and is related to the difference of the hard disk controller of a new server (a computer or a virtual machine) from the original equipment. When booting, the driver necessary to boot from the new controller is not loaded. Windows cannot be started due to it.<\/p>\n\n\n\n<p>In the debug mode you can see that Windows boot stops at the stage of loading the CLASSPNP.SYS driver.<\/p>\n\n\n\n<p>To fix the error 0x0000007B, you need to boot from any Windows installation media (with Windows 7 \/ 2008 R2 or higher) or a boot disk (for example, <a href=\"http:\/\/woshub.com\/create-dart-10-recovery-image\/\">DART<\/a>). Or using the recovery console (this can be added to the image if you use StarWind Converter<\/p>\n\n\n\n<p>In the Registry Editor window, go to the registry hive <strong>HKEY_LOCAL_MACHINE<\/strong> and select <strong>File<\/strong> -&gt; <strong>Load Hive<\/strong>. On the local server drive (don\u2019t confuse it with the WinPE disk), select the file \\<strong>Windows\\System32\\config\\SYSTEM<\/strong>. This file stores the system part of the registry your local Windows copy.<\/p>\n\n\n\n<p>In the loaded hive, go to registry key <strong>HKEY_LOCAL_MACHINE\\local_hkey\\ControlSet001\\services\\.<\/strong><\/p>\n\n\n\n<p>Find these registry keys:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Atapi;<\/li><li>Intelide;<\/li><li>LSI_SAS.<\/li><\/ul>\n\n\n\n<p>Find REG_DWORD parameters with the name <strong>Start<\/strong> in each of these keys and change their values to <strong>0<\/strong> (0x00000000).<\/p>\n\n\n\n<p>If you had switched your SATA controller mode to AHCI before this error appeared, you should also set Start = 0 in the <strong>msahci<\/strong> section.<strong>Note<\/strong>. The Start=0 value means that the service will start at Windows startup. Start=3 means that the service will be started manually.<\/p>\n\n\n\n<p>To save the changes in the local registry file on the disk, go to the registry key HKEY_LOCAL_MACHINE\\local_hkey and select <strong>Unload Hive <\/strong>in the menu.<\/p>\n\n\n\n<p>Source: http:\/\/woshub.com\/bsod-error-0x0000007b-boot-windows-7-2008-r2\/<\/p>\n\n\n\n<p><em>UPDATE:<\/em><br>So I tried this again, <em>after getting it to work<\/em>, but without having pre-installed Hyper-V Integration Tools (note, I should have simply burnt the tools to a iso and mounted that inside the VM, then installed as described in <a href=\"https:\/\/brainlessideas.com\/index.php\/2022\/05\/02\/how-to-manually-install-integration-tools-on-a-hyper-v-virtual-machine\/\">another post<\/a>). I decided to wipe out the VM after getting it to work with the above process &#8211; space constraints kept me from keeping a copy of the working VM\u2026 (mistake #1).<\/p>\n\n\n\n<p>I was not able to get this process to work after <em>multiple<\/em> attempts the second time around. The same system, with no changes, and I tried both Disk2VHD and StarWind. Every time regedit would error with not being able to load the hive after I entered the key. I even attempted to mount the .vhdx in Windows 10, and regedit it directly as a mounted drive (seems a easier method than using recovery console). Tried copying the backup system hive\u2026 Tried everything I could think of.  I am at a loss for why this did not work as it did before.<\/p>\n\n\n\n<p>So I went with the more risky proposition of editing the registry of the actual Windows 7 box that I was virtualizing. A simple change of Intelide to 0 (auto start), did the trick. Hours wasted sure, but I think it is always better to try to not modify the source material if possible.<\/p>\n","protected":false},"excerpt":{"rendered":"\n<p>Ran into this problem when I P2V\u2019d my main Win7 box.&nbsp; It had a broken Intel (software) raid on it (Raid1 with the second drive missing). I don\u2019t know if this is why it was bluescreening, as I had used the heck out of this box for many years and it had every driver [&#8230;]<\/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,"footnotes":""},"categories":[2,5,15],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-it","category-virtual","category-windows","odd"],"_links":{"self":[{"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":3,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/posts\/39\/revisions\/43"}],"wp:attachment":[{"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}