1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Restart a VPS Cloud / VPS Lite (including safe mode)
This guide explains how to reboot an Infomaniak VPS Cloud / VPS Lite and what you can do if you no longer have access to the server.
VPS Cloud / VPS Lite Reboot
The classic mode allows you to restart your server normally. To access the VPS Cloud / VPS Lite:
- Log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Edge
- Click on the icon at the top right of the interface (or navigate using the left side menu, for example)
- Choose VPS (in the Cloud Computing universe)
- Click on the name of the relevant object in the displayed table
- Click on the Manage button
- Click on Restart (classic mode)
Activate/Deactivate Safe Mode
If you have lost your SSH key, or made a configuration mistake, etc.
You have the option to reboot in rescue mode. This involves rebooting into a base image from which you can mount the partitions of your cloud. This way, you can modify/repair your configuration.
To activate rescue mode:
- Log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Edge
- Click on the icon at the top right of the interface (or navigate using the left side menu, for example)
- Choose VPS (in the Cloud Computing universe)
- Click on the name of the relevant object in the displayed table
- Click on the Manage button
- Click on Restart (safe mode)
Performing Operations
Once safe mode is active, access your cloud via SSH, either with your ssh key or with the temporary password available in the interface.
Once connected, do:
sudo -i
and then list available partitions (replace ov-abcd with your hostname):
[root@ov-abcd ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 8G 0 disk
└─vda1 253:1 0 8G 0 part /
vdb 253:16 0 20G 0 disk
└─vdb1 253:17 0 20G 0 part
vdb corresponds to your cloud disk.
To access it in write mode, you must mount it:
[root@ov-abcd ~]# mount /dev/vdb1 /mnt/
You can then modify files:
[root@ov-abcd ~]# ls /mnt/
bin boot dev etc home initrd.img initrd.img.old lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var vmlinuz vmlinuz.old
Depending on your cloud's operating system, you can also chroot to replicate your usual environment:
[root@ov-abcd ~]# chroot /mnt/
bash: ls: command not found
root@ov-abcd:/# export PATH="$PATH:/usr/sbin:/sbin:/bin"
root@ov-abcd:/# ls
bin boot dev etc home initrd.img initrd.img.old lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var vmlinuz vmlinuz.old
Once the necessary modifications are made, disable safe mode to restart your cloud on the original disk.