[SOLVED] Ubuntu VM EFI boot problem

Nikolay

New Member
Jul 16, 2016
16
1
3
Hello,

Few days ago we have decided to migrate our VMs from Hyper-V to proxmox. Everything gone fine, except 2 VM with Hyper-V generation 2 system. They dont want to boot from disk and drop to UEFI boot bios, then i select Boot From File and vm start.


Any solutions for this problem?
upload_2016-7-16_2-8-35.png
 
Grub2 cannot be writen to GPT disk. I `ve tried to reinstall grub-uefi with no luck.

Boot with standart bios stucked at Boot from Hard Disk...
upload_2016-7-16_9-31-53.png
 
Solution that works for me:


1) attach new empty disk to VM
2) boot from live cd
3) create mbr partitions at new disk with fdisk
4) mount root partition from old and new disks
5) make 2 previous steps for as many partitions as you have
6) rsync data from old partitions to new
7) edit fstab
8) grub-install --root-directory=/mnt(choose yours) /dev/sdX
9) reboot and it`s done.
 
Solution that works for me:


1) attach new empty disk to VM
2) boot from live cd
3) create mbr partitions at new disk with fdisk
4) mount root partition from old and new disks
5) make 2 previous steps for as many partitions as you have
6) rsync data from old partitions to new
7) edit fstab
8) grub-install --root-directory=/mnt(choose yours) /dev/sdX
9) reboot and it`s done.

Fine, thank you for your instructions :)