If the “Auto-resize Guest Display” is greyed out for you, go ahead and reboot your virtual machine and check if the issue is resolved. In case that doesn’t work, go ahead and restart your VirtualBox.
If the keyboard is not working in a VirtualBox virtual machine, follow these solutions: Choose correct pointing device Change keyboard input settings Enable keyboard auto capture Install Guest ...