how to set up kernel debugger with visual studio on virtual machine - c++

i am now learning to debug kernel driver on virtual machine.
I am using virutalbox and i set it up like this:
https://i.imgur.com/XLh8G7C.pnghttps://i.imgur.com/Gm3svvr.pnghttps://i.imgur.com/Ng1XawN.png
i also installed WDK test target set up:
https://i.imgur.com/Mz4LnAI.png
then i set up the bcdedit commands on the VM and restart the vm:
https://i.imgur.com/qhF8flu.png
i tried to configure my vm driver device on visual studio like this:
https://i.imgur.com/UEcpXXj.png
but the status was "unvailable".
The "network hostname" i entered was the ipv4 of the virtualbox adapter found with ipconfig on my host pc.
https://i.imgur.com/bZ3rR13.png
in my view, i think the hostname/ip isnt the expected one so it caused the problem:https://i.imgur.com/XEIkZmx.png
Where should i get the hostname/ip address in order to make it connect?
I am trying to connect virtual machine to my visual studio kernel debugger with the serial port method.
My process is following a youtube video: https://www.youtube.com/watch?v=h6p-Kt-Cx9E
i expect the driver test configuration status to be "available" instead of "inavailable".

Related

Remote debuging C++ project in Clion results in "GDBCommandException .. need to specify what serial device is attached .."

I've already set up a remote run configurations in CLion.
The remote server check is available, and the code has been synced to remote server.
However when I debug in clion, it always show error:
com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver$GDBCommandException: To open a remote debug connection, you need to specify what
serial device is attached to the remote system
(e.g. /dev/ttyS0, /dev/ttya, COM1, etc.).
Debugger disconnected
How to specify the serial device?
No perfect, but working solution (for me)
Run->Edit Configurations->GDB: change from Bundled GDB to <path to gdb>
If you using Linux, it should be something like /usr/bin/gdb.

Connect to microsoft virtual machnine with Clion and debug `xv6` with `GDB`

I have a virtual machine in Microsoft Azure which runs Linux, and has the code of the xv6 operating system.
I want to debug it on my (Windows) computer. How can I connect to to the VM and the GDB/CGDB with my Clion?
I tried to add a Remote Host configuration in Build, Execution, Deployment | Toolchains and managed to connect to the VM, but it Clion requires a path to CMake and the compilers, and I (and Clion) can't find it, and get errors.
This is the error details (appears when I click more...):

VMware Tool doesn't install

I have a virtual machine with Windows XP. And my host computer is on Windows 10. I'm using VMware version 14. I'm trying to setup a shared folder for my virtual machine and faced with an issue that Shared Folder doesn't appear on my VM. I've started investigate and found that VMware Tools are not installed on my VM. When I go Player -> Manage -> Install VMware Tools -> nothing happens. I don't see any pop-up windows with installation. It seems like virtual CD is inserted but nothing more. I can't see it in My Computer.
What did I miss?
Can you ping your XP VM from your Host Win 10 Machine?
If you couldn't ping your XP VM IP from your host machine, turn your firewall off on both machines and try to ping again.
Did you turn on your network discovery on your Windows 10 Machine and XP Machine?
If you can ping your VM from Host machine, turn on file and print sharing settings.

remote debugging windows 8.1 driver Visual studio 2013

I'm trying to set up remote debugging on Visual studio 2013.
I think I installed everything on my computer and the hyper-v machine too + updated.
So whats happening:
I open a microsoft UMDF driver sample. (I can build it without any errors).
I select Debugging tools for windows remote debugger.
Then a message box pops up named Deployment not configured.
I select I know what I'm doing continue debugging.
Then the Computer configuration wizard starts add new computer.
I select provision computer and automatically configure debuggers.
Then the configuration process configure my hyper-v machine fine.
Installs the necessary files restart the computer and log in with the name WDKRemoteUser.
Then I Click Finish then this error pop-up.
The required property 'DbgengRemoteCommand' is missing or empty. (OK)
So I need to fill up the package property pages->configuration properties->debugging->
Remote Command, Remote Command Arguments, Remote Working Directory, Remote Computer name manually?
And if I had to what should I write there or I miss something else?
You only need to specify the "Remote Working Directory" parameter and you can just give it the same path as your build directory and you should be good.

Oracle Virtual Box import VMWare Windows 2008 Crash on boot

I was given a VMWare image running Windows Server 2008 which was imported on my PC perfectly fine and works.
I really want to run it on my MacBook Pro and would have to use Oracle Virtual Box as it seems there is no VMWare Player for OSX.
According to the Internet, the strategy for opening a VMWare machine in Oracle Virtual Box is to create a new machine and attach an existing hard drive.
On the Mac I tried this and get into a situation "Windows Error Recovery" which I am unable to recover from.
On the PC I get exactly the same problems with Oracle Virtual Box with that same image as I do on the Mac.
On the PC (as stated) I can run the VM in VMWare BUT if I have already attempted to open the VM in Oracle Virtual Box, the image is corrupted and can't then be opened on the PC with VMWare.
My question is if anyone has any knowledge of what settings need to be changed in Oracle Virtual Box before opening the VM and destroying the image with it.
Many thanks
Kevin
I worked around this issue by attaching the Windows Server 2008 disk image as additional Storage to another VM that was already working (e.g. an IE8 Win7 VM downloaded from Microsoft). You can set the hard disk as master or slave, or switch when booting up the main VM.