Booting From VHD Windows 7 Stop Error 0x0000007B

53

Use this to inject the correct AHCI driver.

diskpart and use the ATTACH command to mount the VHD file location.

select vdisk file=m:\test.vhdx

attach vdisk

select partition 1

assign letter = R:

DISM.exe /Image:R:\ /Add-Driver /Driver:d:\Drivers\ /Recurse

Obviously change d:\Drivers to match the path where the AHCI drivers are located.

Share:
53

Related videos on Youtube

Blade
Author by

Blade

Updated on September 18, 2022

Comments

  • Blade
    Blade almost 2 years

    How to hash using SHA1(or similar cryptogrphical functions) a class(or struct) which has multiple keys, e.g.,

    struct Foo{
       string name;
       int age;
       int score;
    }
    

    A naive approach is hash(has(name) + hash(age) + hash(score)), but hash collision is possible.

    • Ƭᴇcʜιᴇ007
      Ƭᴇcʜιᴇ007 over 10 years
      This is the same problem people moving Windows from physical machine to (different) physical machine encounter -- HDD controller/chipset mismatches. The HDD controller driver for the Hyper-V VM is not the same one your Host machine requires when booting natively form the VHD. You need to get the host's HDD controller's driver into the image. There are many questions covering this on here already.
    • Ƭᴇcʜιᴇ007
      Ƭᴇcʜιᴇ007 over 10 years
      possible duplicate of 0x0000007b vista harddrive swap
    • Ƭᴇcʜιᴇ007
      Ƭᴇcʜιᴇ007 over 10 years
    • nate
      nate over 10 years
      @techie007 Thanks for the info, I didn't know that.
    • nate
      nate over 10 years
      @techie007 I have tried what you have suggested, and it doesn't work in my case. I have updated the question. Also will you remove your flag for closing the question, since it is not a duplicate.
    • cybernard
      cybernard over 10 years
      Did you do sysprep /generalize ?
    • πάντα ῥεῖ
      πάντα ῥεῖ over 2 years
      And what's the question now?
    • 500 - Internal Server Error
      500 - Internal Server Error over 2 years
      Collision is always a possibility - you may be able to reduce the likelihood of that by using a more sophisticated combination function than addition.
  • Blade
    Blade over 2 years
    using JSON is a pretty nice method. Thanks.
  • Wisblade
    Wisblade over 2 years
    @Blade You're welcome. If it suits yourself, you can tag it as accepted. However, even if serializing to JSON/XML is a working and quite simple solution if you have these functions already available, don't forget that do it on binary data will be way more efficient and fast, because it involves the same class/struct parsing than serialization, but without the need to transform it to text before hashing.
  • Blade
    Blade over 2 years
    can't agree more. JSON is easier to implement, but performance is definitely slower than processing raw bytes.