[root@centos ~]# yum groupinstall "Server with GUI" -y
[root@centos ~]# systemctl set-default graphical.target
[root@centos ~]# reboot
[root@centos ~]# yum groupinstall "Server with GUI" -y
[root@centos ~]# systemctl set-default graphical.target
[root@centos ~]# reboot