The following operations are all under root, please confirm the login user.
1. Modify the/etc/gdm/custom.conf file
#vi/etc/gdm/custom.conf
Locate [XDMCP] and enter the line below it enable=1
Save and exit
2. Modify the/usr/share/gdm/defaults.conf file
#vi/usr/share/gdm/defaults.conf
Modify Allowremoteroot=true
Modify Allowremoteautologin=true
Save and exit
3. Modify the/etc/inittab file
#vi/etc/inittab
Id:5:initdefault: Guarantee that the number behind this line ID is 5
4. Restart Linux
#vi reboot
5. Open Xbrowser
Double-click to connect the virtual machine, and sometimes prompts the following diagram in succession, always click OK on the line.
And then there's the following error.
I have checked a lot of methods are not resolved, specifically do not know exactly where the problem, but I by adding a host-only to the virtual machine card can be normal connection.
6. Add a network card to the virtual machine