Last Updated: Nov 05, 2025
Introduction
After restarting a VM, you may sometimes be unable to SSH into the instance. This typically occurs when the VM fails to boot properly and enters emergency mode. Using serial console access, you can investigate and recover the VM.
Prerequisites
Crusoe cloud CLI access
Serial console access enabled for the VM
Step-by-Step Instructions
-
Connect to the VM Using Serial Console
Use the following command to connect to the VM via serial console:
Note: Replace
$VM_NAMEand$PROJECT_IDwith the appropriate VM and project identifiers. -
Verify the VM’s Boot Mode
If the VM has booted into emergency mode, the terminal prompt will appear similar to the following:
This indicates the system encountered a critical boot issue preventing normal startup.
-
Identify and Fix the
/etc/fstabIssueIn most cases, the VM enters emergency mode due to an invalid or missing entry in
/etc/fstab.
A common cause is a reference to a RAID device or mount point that no longer exists.-
Open
/etc/fstabusing a text editor such asviornano: -
Locate any invalid entries. For example:
-
Comment out the problematic line by adding a
#at the beginning: Save and exit the file.
-
-
Check System Logs (Optional)
To further diagnose the issue, review the boot logs using:
This can help identify other issues preventing the VM from booting normally.
-
Reboot the VM
Once the
/etc/fstabissue has been corrected, reboot the VM:After the reboot, try connecting via SSH to verify normal operation.