hyper-v: Unable to copy and boot Generation 2 Ubuntu 14.04 VHDs

Bug #1317695 reported by Abhishek Gupta
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
High
Unassigned

Bug Description

After creating a Generation 2 virtual machine, we are unable to shutdown the VM, copy the VHD and create a new Generation 2 virtual machine out of the VHD. It seems that once the copy out operation has occurred, the UEFI boot entry is not available on the file-system. This hinders scenarios where customers routinely copy VHDs to create new virtual machines. Root cause unknown as of now.

Abhishek Gupta (abgupta)
Changed in linux (Ubuntu):
status: New → Confirmed
summary: - Unable to copy and boot Generation 2 Ubuntu 14.04 VHDs
+ hyper-v: Unable to copy and boot Generation 2 Ubuntu 14.04 VHDs
Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: kernel-da-key kernel-hyper-v trusty
Changed in linux (Ubuntu):
importance: Medium → High
Revision history for this message
Jeff Leung (jleung) wrote :

There is a temporary workaround for this issue. That workaround is to:

* Rename the /boot/efi/EFI/ubuntu directory to /boot/efi/EFI/BOOT
* In the newly renamed BOOT directory, rename shimx64.efi to bootx64.efi

This should temporarily resolve the issue.

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

To highlight jleung's comments, what is going on is that generation 2 VM's require UEFI to boot, inform the UEFI boot manager of the OS (via registration of values in the NVRAM). The Ubuntu installer does this at installation time. What jlaeung's describing is converting to "removal" mode.

I suspect that VM's should be installed w/ removal mode by default to support cloning operations. We currently do this on the Ubuntu 14.04 LTS UEFI cloud images.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote : Test with newer development kernel (3.13.0-24.46)

Thank you for taking the time to file a bug report on this issue.

However, given the number of bugs that the Kernel Team receives during any development cycle it is impossible for us to review them all. Therefore, we occasionally resort to using automated bots to request further testing. This is such a request.

  With the recent release of this Ubuntu release, would like to confirm if this bug is still present. Please test again with the newer kernel and indicate in the bug if this issue still exists or not.

You can update to the latest development kernel by simply running the following commands in a terminal window:

    sudo apt-get update
    sudo apt-get dist-upgrade

If the bug still exists, change the bug status from Incomplete to Confirmed. If the bug no longer exists, change the bug status from Incomplete to Fix Released.

If you want this bot to quit automatically requesting kernel tests, add a tag named: bot-stop-nagging.

 Thank you for your help, we really do appreciate it.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: kernel-request-3.13.0-24.46
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Changed in linux (Ubuntu):
status: Expired → New
Revision history for this message
aravinth v (aravinthvvs1) wrote :

I tried to create a Ubuntu virtual machine in 2nd Generation by copying the Vhdx from already booted machine in Hyper-v Generation 2,But it wont booted in Generation 2, shimx64.efi file was not created in while try to boot from the copied Vhdx.

Then I tried your Workaround,It didn't work.Please help me to solve this issue.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1317695

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.