Migrate from Xen / pvgrub

bastien_durel

Member
Jan 22, 2020
3
0
6
43
Hello,

I'm migrating from a Xen host, where most VM are paravirtualized linux with each partition as a disk image.
I've moved the images on the proxmox host, imported them with `qm importdisk` but as I don't have any MBR, the VMs won't boot past bios ...

Is there a trick to make them boot ?

thanks,

--
Bastien
 
I migrated only a couple of PV machines. Can you install kernel inside them ,and the grub?
If not,maybe try with live cd , mount the partitions and try again.
 
I've build a small (500 Mb) disk with MBR and 1 (/boot) partition with grub installed in, and default debian kernel booting on /dev/vda that I copied on every VM (as scsi0), each VM boots on this disk, and after boot I've mounted the /dev/sda1 on /boot, fixed fstab (/dev/xvda1 -> /dev/vda, xvda2 -> vdb, etc.) and re-generated grub config file