Hyperv desktop images no longer building in Noble

Bug #2064280 reported by Philip Roche
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
Fix Released
Undecided
Unassigned
Noble
Fix Released
Undecided
Philip Roche

Bug Description

We have not built Hyperv desktop images since Jammy and with the re-introduction of HyperV for Noble we have encountered build issues caused by refactoring and removals of code assumed to be redundant but the HyperV desktop images were actually using these code paths.

In bbedffe6 we split the building of cloud images and non cloud to using an ddisk-image-uefi.binary and disk-image-uefi-non-cloud.binary respectively.

In e38264ca there was a change which meant that any attempt to build hyperv images would result in incorrect disk size and incorrect disk label.

A change in 76d79466 changed the logic of how the image size for amd64 images were being set. This overrode the sizes set for the desktop images incorrectly.

A change in 8fb21808 also removed many of the dependencies that the hyperv images require.
This removal has been restored in this commit by adding them expliciltly in the hyperv hook.

With Ubutnu 24.04+ cloud-init was introduced to desktop images. This is not required for HyperV images and can be disabled.

This bug is to track the work to restore functioning Hyperv desktop image builds

[ Impact ]

Unable to build HyperV Desktop image.

[ Test Plan ]

 * Successfully build image
 * Launch through Windows HyperV manager successfully without any errors or warning.

[ Where problems could occur ]

 * If the image built does not launch in hyperv manager or has errors or warnings.

[ Other Info ]

 * There is work required to migrate oem-config to the new provisioning stack but this is out of scope of this bug.

Related branches

Philip Roche (philroche)
Changed in livecd-rootfs (Ubuntu Noble):
assignee: nobody → Philip Roche (philroche)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 24.10.1

---------------
livecd-rootfs (24.10.1) oracular; urgency=medium

  [ Łukasz 'sil2100' Zemczak ]
  * Add experimental support for building ubuntu-core-desktop installer images
    (LP: #2063203)

  [ Philip Roche ]
  * Re-enable ability to build HyperV desktop images (LP: #2064280)

 -- Philip Roche <email address hidden> Tue, 30 Apr 2024 17:58:43 +0100

Changed in livecd-rootfs (Ubuntu):
status: New → Fix Released
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

I verified the Oracular image and it installs, boots and the user session runs successfully.

Revision history for this message
Philip Roche (philroche) wrote :

For context the image @jibel tested was https://partner-images.canonical.com/hyper-v/desktop/oracular/20240522/

@jibel I will start SRU to noble now

Revision history for this message
Philip Roche (philroche) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Philip, or anyone else affected,

Accepted livecd-rootfs into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/24.04.71 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in livecd-rootfs (Ubuntu Noble):
status: New → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

I tested this build:

https://people.canonical.com/~jchittum/hyperv-desktop-2404/

Produced by CPC following thesesteps:
* downloaded the source from proposed
* used bartender to build:
  * $ bartender --livecd-rootfs-dir ./livecd-rootfs-24.04.71/ --build-provider multipass -- --series noble --project ubuntu --image-target all --subproject desktop-preinstalled

I installed it successfully in Hyper-V. I went through oem-config, the desktop environment started. I could update and install package. The machine also rebooted successfully.

Marking as verification-done.

tags: added: verification-done verification-done-noble
removed: verification-needed verification-needed-noble
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Hello Philip, or anyone else affected,

Accepted livecd-rootfs into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/24.04.72 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-noble
removed: verification-done verification-done-noble
Revision history for this message
Philip Roche (philroche) wrote :

I have verified again - using livecd-rootfs 24.04.72 which is currently in -proposed.

I built test image on launchpad and created a VM in Hyper-V manager.

I went through oem-config, the desktop environment started. I could update and install package. The machine also rebooted successfully.

Marking as verification-done.

tags: added: verification-done-noble
removed: verification-needed-noble
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 24.04.72

---------------
livecd-rootfs (24.04.72) noble; urgency=medium

  [ Heinrich Schuchardt ]
  * riscv64: use earlycon=sbi on command line (LP: #2068739)

  [ Philip Roche ]
  * Revert removal of unminimize call in server builds (LP: #2069828)

livecd-rootfs (24.04.71) noble; urgency=medium

  * Re-enable ability to build HyperV desktop images (LP: #2064280)

livecd-rootfs (24.04.70) noble; urgency=medium

  [ Łukasz 'sil2100' Zemczak ]
  * Add experimental support for building ubuntu-core-desktop installer images
    (LP: #2063203)

  [ Philip Roche ]
  * No longer install LXD snap in unminimize script (LP: #2066905)

 -- Philip Roche <email address hidden> Mon, 24 Jun 2024 14:24:52 +0100

Changed in livecd-rootfs (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for livecd-rootfs has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.