How to solve the problem that Centos7 cannot enter the graphical interface

How to solve the problem that Centos7 cannot enter the graphical interface
Photo by Arthur Reeder / Unsplash

Centos cannot enter the graphical interface and the screen is black. The log is called up and it shows that it is stuck at Starting Virtualization daemon

Black screen reason: unexpected shutdown causes the graphical interface configuration to be damaged

Centos7 visual interface version installed in the virtual machineThe host is powered off without shutting down the virtual machine.When the virtual machine starts, the countdown and boot are normal at the beginning, but the screen is black when entering the user login and password input interface

Solution

Modify grub, enter the system with commands, uninstall the graphical interface, and then reinstall the graphical interface. The steps are as follows:

Restart the system. When the GRUB menu appears, press the Esc key within five seconds to stop the boot countdown.
Use the arrow keys to highlight the system menu entry you want to start, and then press the e key to edit it.

Add systemd.unit=multi-user.target to the boot parameters

Press ctrl+x to start

Successfully enter the command line:

Uninstall the graphical interface

yum groupremove "GNOME"

Reinstall the graphical interface

yum groupinstall "GNOME"

Read more