I can't login to Ubuntu on Virtualbox

Solution 1:

Installing guest additions solved the same issue for me. You have to do it through terminal.

  1. In the "Devices" menu click "Insert Guest Additions CD image" .
  2. Hit Ctrl+Alt+F1 or Right Ctrl+F1 to open a virtual terminal. Then login with username and password.
  3. Mount the guest additions cd and install the thing:

    mkdir /tmp/cd
    sudo mount /dev/sr0 /tmp/cd
    sudo /tmp/cd/VBoxLinuxAdditions.run
    
  4. After it is done, restart the virtual machine and it should work:

    sudo reboot
    

Solution 2:

In my case, what worked was enabling Virtualization on my host computer's BIOS.

After that it all worked.

Hope this helps

Solution 3:

In my case, it was a PATH problem.

I've changed PATH value in /etc/environment and mistakenly I've overridden the default value. thus the solution was to log into the system in Cli mode (right cltrl+f1 or f3) then restore the original PATH value