mandiant / mandiant/flare-vm

[vbox-build-flare-vm.py] Handle VM crashes

Open
#682 0 comments 0 reactions 1 assignee View on GitHub

@emtuls is already working on this.

Since Jul 28, 2025.

:desktop_computer: virtualbox :gem: enhancement
Dominant language
PowerShell
Stars
9.1k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

### Details

I have experienced VM crashes occasionally during FLARE-VM installation (likely due to VM restarts), particularly with newer Debian kernels. The current implementation of `vbox-build-flare-vm.py` takes snapshots every ~20 minutes, which can be restored in case of a crash. However, this restoration is currently manual. Until the VM is manually restored to a pre-crash snapshot, the script continues to take snapshots of the crashed VM. The script needs to be extended to:
- Detect VM crashes.
- Copy the VirtualBox log to `LOGS_DIR` for crash debugging.
- Restart a previous snapshot before the crash to resume installation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.