Bug #50
openBhyve Exit Codes
0%
Description
Bhyve exit codes indicate how a virtual machine (VM) was terminated, with common codes including 0 for a successful reboot, 1 for power-off, 2 for a halted state, 3 for a triple fault, and 4 indicating a general error often related to device configuration or, in some cases, 137 for host memory pressure.
Common Bhyve Exit Status Codes
0 (Rebooted): The guest OS requested a reboot.
1 (Powered Off): The guest OS was powered off or shut down.
2 (Halted): The guest OS has halted.
3 (Triple Fault): A critical error occurred, causing a triple fault in the virtual machine.
4 (Error): The VM exited due to an error, frequently caused by misconfigured hardware, PCI passthrough issues, or incorrect network/device settings.
134: General error, often associated with issues during GPU passthrough or device emulation.
137: Usually indicates the VM was terminated due to memory pressure on the host system (e.g., ZFS ARC contention).
Troubleshooting Exit Code 4
If a VM exits with status 4, check for:
Invalid network device types (e.g., virtio-net vs e1000).
Misconfigured vm-bhyve network switches.
Incorrect PCI passthrough configurations.
Issues with uefi_vars or disk image paths.
Signal Handling
Bhyve handles SIGTERM by triggering an ACPI poweroff for the VM, allowing for a graceful shutdown.
No data to display