wbenny / hvpp

hvpp is a lightweight Intel x64/VT-x hypervisor written in C++ focused primarily on virtualization of already running operating system
MIT License
1.12k stars 221 forks source link

hvppdrv.sys file isn't created #32

Closed noobie-cod closed 5 years ago

noobie-cod commented 5 years ago

After building the hvpp.cpp file on visual studio on test mode, the hvppdrv.sys file is not created and not found on the folder. Help me in solving this issue

wbenny commented 5 years ago

Can you give me more details?

noobie-cod commented 5 years ago

sc create hvpp type= kernel binPath= "C:\full\path\to\hvppdrv.sys"

To execute this command we need the complete path to the hvppdrv.sys file, I cannot find this particular file in the source folder

wbenny commented 5 years ago

Does it compile successfully? If so, the Visual Studio should tell you the full path to the .sys in the Output window after compilation. The compiled files should be located in bin\x64\Debug or bin\x64\Release directory.

noobie-cod commented 5 years ago

hvpp.vcxproj -> C:\hvpp-master\bin\x64\Debug\hvpp.lib

This is the output I am getting after successful compilation. Is this the same file?

wbenny commented 5 years ago

In README.md, there is:

...
### Code workflow

> Note: **hvpp** is compiled as a static library, which is linked with the **hvppdrv** project.
...

Did you try to compile hvppdrv project?

noobie-cod commented 5 years ago

Error MSB4018 The "SignTask" task failed unexpectedly. System.Security.Cryptography.CryptographicException: Access is denied.

I am getting this error after compiling the hvppdrv file

wbenny commented 5 years ago

This looks like problem with your VS installation, not hvpp.

Quick googling recommended running VS as Administrator: https://stackoverflow.com/questions/36223909/msbuild-error-msb4018the-signtask-task-failed-unexpectedly-in-vs2015

noobie-cod commented 5 years ago

Thank you so much for your help. Issue resolved.