[vbox-build-flare-vm.py] Handle VM crashes
@emtuls is already working on this.
Since Jul 28, 2025.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.