My CentOS 7 VPS is not booting up, how do I fix this?
We have become aware of an issue with booting up a Barebones VPS running CentOS 7. There is a high chance of this occurring if updates have been run recently. Below are the steps to resolve this.
- Login to the Advanced Control Panel (login details are the same as the Control Panel / My Account area)
- Click on 'Virtual Servers' and then click on the name of the server having issues
- You will likely see a failed reboot or startup log
- Click onto 'Tools' and then 'Startup on Recovery'
- Click 'Ok' in the pop up that appears
- Once the server has been rebooted, click on 'Console' at the top of the screen
- When the console screen appears, log into the VPS using 'root' as the username, and the current root password
- Type 'fdisk -l'
- You should see an entry similar to the below picture, which will display a size that is slightly larger then the disk of your VPS (26.8GB in the picture).
Take note of the disk name (/dev/xvdb1 in the picture) - Type in 'mount [disk name] /mnt' (In the above screenshot this would be 'mount /dev/xvdb1 /mnt')
- You can verify that the disk is mounted by typing 'ls /mnt'
- Type 'vi /mnt/boot/grub/grub.conf'
- Using the arrow keys on your keyboard navigate to the setting for 'default'
- Press 'R' and then '2', this should change the number to '2'
- Save this by pressing ':wq' and pressing enter
- Close the console window and reboot the server normally
- The server should now boot up normally