[Solved] Black Screen after booting CentOS 7 on VirtualBox

danobrega Asks: Black Screen after booting CentOS 7 on VirtualBox
We have experienced a “black screen of death” after booting a CentOS virtual machine running on an Oracle VirtualBox. The screen is completely black, there is no mouse pointer. This seems to be related to upgrading the system, but we are not sure.

We’ve discovered that reinstalling guest additions and rebooting somehow fixes the problem. Here are the steps used to recover:

  1. boot the VM, the screen should be black.
  2. Ctrl + F2 -> a console login screen should be visible
  3. On virtual box menu, [Devices] -> Insert Guest Additions CD Image…
  4. Login to your linux system
  5. su (or use sudo whenever required)
  6. mkdir /media/cdrom
  7. mount /dev/sr0 /media/cdrom
  8. cd /media/cdrom
  9. sh VBoxLinuxAdditions.run uninstall
  10. sh VBoxLinuxAdditions.run install
  11. reboot

Since we now know how to recover from the black screen, this is not a big problem. Still, anyone knows why this happens and how to avoid it?

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.