Fix GNOME GUI Login After Upgrade to Debian 10 Buster (VirtualBox VM)
Hello!
Yesterday I upgraded my old Debian VirtualBox VM from Debian 9 stretch to Debian 10 buster.
After going through all the usual upgrade steps from the official documentation and rebooting, I found myself waiting for the GNOME user selection in order to log in. Except that it was stuck with the gray background and nothing except the mouse cursor was showing up or working.
I switched to a text-only terminal (Ctrl+Alt+F5) and logged in via command line. Looking at /var/log/syslog I found the following messages repeating over and over:
gnome-shell[1281]: Failed to set CRTC mode 1448x953: Invalid argument kernel: [ 192.917346] [drm:drm_crtc_helper_set_config [drm_kms_helper]] ERROR failed to set mode on [CRTC:29:crtc-0]
1448x953 is the resolution I am using for the VM.
This current VM was created back when Debian 7 wheezy was still current, and I knew that a more recently created VM (originally with Debian 9 stretch) was working fine after upgrading to 10, so I figured that the info about the resolution from gnome-shell might have something to do with the VM's settings.
Sure enough, I found out that there were about a handful of settings that were different, most likely because over time VirtualBox defaulted to slightly different settings depending on my hardware, the template for the OS I selected (different Debian major releases) and the VirtualBox release itself. A couple of VM starts and configuration changes later I narrowed the problem down to the following VM setting:
Display => Screen => Video Memory
I raised the original 12 MB to 16 MB and thankfully the next boot showed the GNOME login mask as per usual!
Surely this is a very edge case kind of scenario, but I am hoping that this might help you in case you come across the same problem. All the other search results I found regarding roughly the same error message in the logs were about different things.
Thanks for reading!
How To Migrate Your Live Windows System To VirtualBox
Hey!
Ever regret that Sun didn't include something like a migration assistant for your live Windows system in VirtualBox?
My method concentrates on these basic steps:
- Create a backup of your whole system partition
- Create a new VirtualBox Hard Disk
- Install Windows onto the VirtualBox Hard Disk to create a function MBR (Master Boot Record)
- Apply the backup onto your VirtualBox Hard Disk
Done!
What you need:
- Sun VirtualBox
- Acronis TrueImage Home 2009 (or an equivalent backup program)
- File-to-ISO converter (like a CD/DVD burning program, e.g. Ahead Nero or Alcohol 120%)
- The Windows installation disc
Process:
- Start Acronis TrueImage and create a backup of your whole system partition. For version 2009 doesn't mean System State but My Computer => Disk 1 => C:. Leave Back up sector-by-sector unchecked. Adjust the other settings to your liking and start the backup process.
- Go to Tools => Create Bootable Rescue Media and create the image as an ISO file.
- Use your File-to-ISO converter or burning software to convert your .tbi backup file to an ISO that you will be able to mount it as a CD/DVD later on. (Reason being that I had problems selecting the right partition to be replaced by the backup when I had two partitions mounted to the virtual machine - the other one included the backup file. Also you won't be able to install the Guest Additions, so you can't mount folders over the VirtualBox shared folders.)
- Start VirtualBox and create a new Machine. Choose your current OS and name it as you like.
- During the process create a new Boot Hard Disk and give it the same size as your current system partition (maybe less if you know the size will be enough).
- Adjust the settings of your new machine and start it.
- Mount the Windows installation disc and install Windows. This is so that a proper MBR (Master Boot Record) is created because we will need one in order to boot from the final system.
- After the Windows installation (as soon as you see the Windows Start Menu and stuff), mount the Acronis Bootable Rescue Media ISO as a CD/DVD and boot from it.
- Select Acronis True Image Home (Full Version) and you'll see the TrueImage program like you did in Windows.
- Dismount the current CD/DVD image.
- Mount your the ISO with your backup file.
- Click on Manage and Restore => Browse for backup... and open the CD/DVD Drive which should have the backup image file right there. If it doesn't, try unmounting and remounting it again.
- Right-click on the backup in the list and select Restore.
- Select the hard disk (partition) you just created and continue. Make sure that the Restore MBR (Master Boot Recover) / Track 0 checkbox is unchecked.
- Let it run through.
- Now reboot your machine.
- Congratulations! You should have a working copy of your live system in VirtualBox!
I guess there are a couple of kinks here and there because I didn't actually do it like that (I installed Windows on the virtual machine before I attempted to restore via Acronis Bootable Rescue Media ... yeah, silly me 😀 ) and it was about 3 days ago, so I'm writing off the top of my head.
Please give me feedback if it worked! (And also if it didn't!) 🙂
In the case of Windows XP (and probably Vista and 7) because of the major change of hardware (actual drivers replaced by virtual drivers) you will be required to re-activate your Windows copy. XP gives you a maximum of 3 days for that.
Just thought I'd mention it for clarity's sake 🙂
Good luck and have fun!