Kernel update errors on a Debian Squeeze Xen Virtual Machine

When performing a apt-get upgrade on a Xen Debian Squeeze Virtual Machine, you might encounted errors like:

 

This happensĀ because grub cannot find the virtual disk in order to rewrite the server’s initrd image.

Since Xen kernel management is transparent to your machine itself, you can safely remove grub by:

This is the output of the remove command: