To follow up, this was solved by executing the following commands (I managed to configure network without looking, so I could SSH to the VM).
sudo rm /var/lib/apt/lists/lock
$ sudo rm /var/lib/dpkg/lock
$ sudo rm /var/lib/dpkg/lock-frontend
$ sudo dpkg --configure -a
$ sudo apt clean
$ sudo apt update --fix-missing
$ sudo apt install -f
$ sudo dpkg --configure -a
$ sudo apt upgrade
$ sudo apt dist-upgrade
$ sudo reboot
Thanks for the response. This is ubuntu 18, but I tried anyway - no luck, same issue :(
Current available versions of AHV don’t support Gen 2 VMs directly. Therefore, during the cutover process, the following command is run on a migrated VM on the target cluster.
For Ubuntu VM – Before Migration
Run the following commands on the source Ubuntu 14 and 16 Generation 2 VMs before migration.
- sudo bash
- cd /boot/efi/EFI
- cp -r ubuntu/ boot
- cd boot
- mv shimx64.efi bootx64.efi
I hope it would be helpful to change the legacy mode VM to UEFI mode.