sanvila wrote:
The following worked for me to migrate a newly installed Debian 8 system to KVM using distro-provided kernel:
* Keep using linode kernel.
* Switch to KVM using the button. Make sure "Distro Helper" is enabled, as it takes care of modifying /etc/fstab automatically.
* apt-get install grub-pc linux-image-amd64
* Do not select *any* device like /dev/sda to install GRUB.
* When asked "Continue without installing GRUB?", say Yes.
* nano /etc/default/grub
GRUB_CMDLINE_LINUX="console=ttyS0"
* update-grub
* Select GRUB2 in Dashboard.
* reboot
I just want to add to this, while obvious in hindsight... If you're using a custom kernel, you'll have to recompile it for KVM depending on your compile options. mine had XEN-specific options so it wouldn't boot. Just boot with a linode supplied kernel, remove the old kernel and recompile a new one. I also removed all old grub packages and installed grub2 so I could boot with the grub 2 option instead of the legacy one.
I followed:
https://www.linode.com/docs/tools-refer ... ith-pvgrub (oh and mkinitrd is called mkinitramfs under debian)