Skip to content
Back to skills

Vmware Debug Forensics

ASecurity

Debug and examine VMware VMs from the host. Windows kernel debugging with kd or WinDbg over a serial port backed by a named pipe, memory images of a running VM through suspend or snapshot and vmss2core (WinDbg dump or ELF core), guest crash dumps, reading a powered-off VM's disk offline, packet capture, and evidence handling with hashes. Use for driver development, crash and hang analysis, malware analysis in a lab VM, memory forensics, or collecting artefacts without trusting the guest.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
developmentpythonrustshellbashtestingdebugging

Works with

  • cli

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add dboudreau00/VMWare-VNC-Control-for-Claude --skill vmware-debug-forensics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vmware Debug Forensics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vmware Debug Forensics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dboudreau00-vmware-debug-forensics/badge)](https://www.skillsdirectory.com/skills/dboudreau00-vmware-debug-forensics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vmware-debug-forensics
description: Debug and examine VMware VMs from the host. Windows kernel debugging with kd or WinDbg over a serial port backed by a named pipe, memory images of a running VM through suspend or snapshot and vmss2core (WinDbg dump or ELF core), guest crash dumps, reading a powered-off VM's disk offline, packet capture, and evidence handling with hashes. Use for driver development, crash and hang analysis, malware analysis in a lab VM, memory forensics, or collecting artefacts without trusting the guest.
license: MIT
compatibility: VMware Workstation 17 or later (measured on 26.0, vmss2core build 25388281); Debugging Tools for Windows for kd; Python 3.10+.
---

# Debugging and forensics from the host

The tools live in the sibling skills; below, `vmctl.py` is
`python "${CLAUDE_SKILL_DIR}/../vmware-vmrun/vmctl.py"` and `vmx.py` is
`python "${CLAUDE_SKILL_DIR}/../vmware-vmx/vmx.py"`.

## Windows kernel debugging over a serial pipe

In the guest (once, then reboot):

```powershell
bcdedit /debug on
bcdedit /dbgsettings serial debugport:2 baudrate:115200
```

On the host, VM powered off: `vmx.py serial VM.vmx --pipe vmlab-com2` (serial1
is COM2; serial0 stays the log file). Power on, then:

```powershell
kd -k com:pipe,port=\\.\pipe\vmlab-com2 -b -c "vertarget; qd"
```

- `-b` breaks in as soon as it connects; `qd` detaches and lets the guest run.
  Drop both for an interactive session; `g` resumes the target.
- Microsoft's guidance for VM pipes: do **not** add `resets=0` or `reconnect`
  for VMware, whose pipes keep their bytes and survive a guest restart. If the
  VM is reset with VMware's own controls, restart the debugger.
- Microsoft says to run the debugger elevated when debugging a VM over a pipe.
  With Workstation running as your own user, `kd` connected unelevated in
  testing: *"Kernel Debugger connection established"*, break-in 4.9 s into
  boot, `vertarget` read, clean detach.
- One client per pipe: the debugger owns it until it exits.
- KDNET (network debugging) is faster where host-to-guest networking works;
  some hosts' VPN or firewall blocks it, and the pipe needs no network at all.

## Memory images without the guest's help

```bash
vmctl.py memdump VM.vmx --out dumps/ --resume                           # Windows: memory.dmp
vmctl.py memdump VM.vmx --out dumps/ --via snapshot --delete-snapshot   # VM keeps running
vmctl.py memdump VM.vmx --out dumps/ --format physical                  # ELF core of physical memory
```

How it works: a hard suspend (or a snapshot of the running VM) writes the
VM's memory to a `.vmem` and its device state to a `.vmss` (or `.vmsn`);
`vmss2core` turns them into a file debuggers read. `vmss2core -W8` makes a
WinDbg dump for Windows 8 and later; `-M` makes an ELF core with a physical
memory view; `-N` and `-P` (Linux crash format and process lists) need kernel
offsets from VMware's `getlinuxoffsets`. vmctl prints each output's SHA-256.

Measured on Workstation 26:

| Guest | Path | Time | Result |
|---|---|---|---|
| Windows 10, 4 GB | suspend, `-W8` | 28 s | `memory.dmp`, 4 GB; `kd -z` opened it as a complete kernel dump |
| Ubuntu 24.04, 2 GB | snapshot, `-M` | 250 s | `vmss.core`, an ELF 64-bit core from 'GuestVM' |

Check a Windows dump: `kd -z memory.dmp -c "vertarget; q"` (add
`-y srv*C:\symbols*https://msdl.microsoft.com/download/symbols` when symbols
are needed; that downloads from Microsoft's symbol server). The suspend path
pauses the guest for the copy; the snapshot path leaves a snapshot that holds
a full copy of memory until it is deleted.

## Crash dumps from inside the guest

Windows: `CrashDumpEnabled` 2 (kernel) or 1 (complete) under
`HKLM\SYSTEM\CurrentControlSet\Control\CrashControl`, with `AutoReboot` 0 so
the stop screen stays up for a VNC screenshot. After the reboot,
`vmctl.py pull VM.vmx C:\Windows\MEMORY.DMP dumps\` and open it with `kd -z`.
Linux: kdump (`linux-crashdump` on Ubuntu) writes to `/var/crash`.

## Reading a powered-off VM's disk

7-Zip (the full version; the `7za.exe` VMware bundles has no VMDK support)
lists a VMDK and its partitions and extracts partition images; WSL has it as
`7z`, and `qemu-img info` reads the disk's layout. Measured on a 20 GB Ubuntu
disk: `7z l disk.vmdk` showed the GPT and four partitions, and extraction wrote
each partition as a file, the root one 20 GB (sparse).

- **Snapshots split a disk.** With snapshots, `disk.vmdk` holds the state at
  the first snapshot and the current state sits in `disk-000001.vmdk` and
  later deltas. Reading only the base reads the past.
- Work on a copy with the VM off; opening a disk while VMware has it locked
  fails or reads an inconsistent state.

## Packet capture

`vnetsniffer [/e] [/w file.pcap] VMnet8` captures a virtual network. In
testing it exited -1 with no output when run unelevated; run it from an
elevated prompt. Without elevation, capture inside the guest and copy the file
out: `vmctl.py run VM.vmx --sudo -- 'timeout 60 tcpdump -i any -w /tmp/c.pcap'`
then `vmctl.py pull VM.vmx /tmp/c.pcap out\`.

## Evidence handling

- Hash everything that leaves the guest; `push`, `pull` and `memdump` print
  SHA-256 for exactly this.
- `vmctl.py run --evidence DIR` keeps the script, the output and the exit code
  of each command.
- For an untrusted guest, `vmx.py isolate VM.vmx --no-network` before power-on:
  no clipboard, no drag and drop, no shared folders, no network, while guest
  operations, VNC, serial and memory capture keep working.
- Never run anything pulled out of an analysis VM on the host. Host antivirus
  may quarantine pulled samples; keep them in an encrypted archive.
- Snapshot before detonating; revert after.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.