Ubuntu Fails to Boot with Spice Console
Date: 12 April 2011
I needed to roll a couple of debs for my Ubuntu servers at work. Since I run Gentoo on my desktop, I rolled a 64-bit Lucid VM. Unfortunately, after the install finished, I got the following error on the console and the VM wouldn’t boot.
error: no suitable mode found
error: unknown command 'terminal'
I figured the problem had something to do with the interaction with spice console (which I’m using instead of VNC). Fortunately, the fix is pretty easy.
- Boot the install CD and go into Recovery mode.
- Drop into a shell on the system.
- Make sure
/boot
is mounted in case it’s on a separate partition. - Edit
/etc/default/grub
and setGRUB_TERMINAL=console
- Run
/usr/sbin/grub-mkconfig > /boot/grub/grub.cfg
to update/boot/grub/grub.cfg
- Exit the recovery shell and reboot
Poof! The VM now boots and I can log in.