SLIC and SLP in Hyper-V?

Discussion in 'Virtualization' started by Evan N, Apr 29, 2020.

  1. Evan N

    Evan N MDL Novice

    Jan 7, 2019
    35
    7
    0
    I know that SLIC and SLP can be added in VirtualBox and VMWare. Is the same true of Hyper-V and if so how?
     
  2. Evan N

    Evan N MDL Novice

    Jan 7, 2019
    35
    7
    0
  3. AS91092

    AS91092 MDL Novice

    Sep 3, 2018
    8
    0
    0
    Mostly true, but the issue is that on newer versions of Windows 10 (1703 and later iirc), a signature check occurs on vmchipset.dll so that'd have to be dealt with. vmchipset contains the firmware of Hyper-V virtual machines so any modifications would be in vmchipset.dll
     
  4. Evan N

    Evan N MDL Novice

    Jan 7, 2019
    35
    7
    0
    Ran into that so I ended up deciding it was a lost cause.
     
  5. AS91092

    AS91092 MDL Novice

    Sep 3, 2018
    8
    0
    0
    I actually looked into it, it seems some type of code integrity policy on the system itself is preventing vmchipset from working properly rather than the binaries themselves. I'll look into it further
     
  6. Inge

    Inge MDL Member

    Apr 2, 2008
    195
    530
    10
    I think you are right and we need some help.

    This piece of code removes the signature:
    Code:
    [System.Runtime.InteropServices.DllImport("Imagehlp.dll")]
    private static extern bool ImageRemoveCertificate(IntPtr handle, int index);
    
    private void UnsignFile(string file)
    {
       using (System.IO.FileStream fs = new System.IO.FileStream(file, System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite))
       {
          ImageRemoveCertificate(fs.SafeFileHandle.DangerousGetHandle(), 0);
          fs.Close();
       }
    }
    

    I had no issues running the HyperV with unsigned vmchipset. But if I change one single byte in the 1b module area (and update the header checksum) the clients won't start.