Introduction
In some cases after restarting a VM, you may be unable to SSH into the instance. With serial-console access, you are able to recover the VM.
Prerequisites
- CLI
- Serial-console
Solution
1. Serial-console in to the VM using the CLI. More info on serial-console access can be found here.
crusoe compute vms serial-console --name $VM_NAME --project-id $project_id
2. If your terminal prompt has any root user implications, such as -
root@hostname:~#
3. In most cases, this issue arises from an entry in the /etc/fstab file that references a RAID setup that is no longer available. To resolve this, comment out the relevant entry in /etc/fstab to allow the VM to boot normally. Following is an example /etc/fstab entry that would need to be commented out -
# /dev/md0 /var/ xfs defaults 0 0
4. You could also try running journalctl -xb
to find any other issue causing the VM to boot into emergency mode.
5. Run sudo reboot
sudo reboot
Comments
0 comments
Please sign in to leave a comment.