jammy-server-cloudimg-amd64.ova does not create cdrom device on vsphere

Bug #1970795 reported by Jim W
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-images
In Progress
Undecided
Simon Poirier
livecd-rootfs (Ubuntu)
Fix Released
Undecided
Simon Poirier
Jammy
Fix Released
Undecided
Simon Poirier
Kinetic
Fix Released
Undecided
Simon Poirier

Bug Description

[Impact]

 * Ubuntu jammy OVA images will not have a CD-ROM drive by default when imported by vmware

[Test Plan]

* having the free vmware-player (or vsphere)

* file: import the ova

* open settings and check for the presence of the CD-ROM drive

[Where problems could occur]

 * The change is limited only to the OVA template, so other image generation should not be affected

 * This is a revert to a previous bus mapping, prior to adding the serial port. From this bug, getting the bus mapping wrong will have vmware to keep discarding that config.

* virtualbox doesn't appear to use that setting. There is a small risk that another hypervisor not mentioned here loses cdrom in the same way if it relies on the cdrom being only on a SCSI bus.

[Original description]

jammy-server-cloudimg-amd64.ova does not create cdrom device when deploying on vsphere 7.

VMware vsphere injects properties like user-data or ssh keys to the VM by means of an iso image mounted on the first CDROM device at boot.

jammy-server-cloudimg-amd64.ova apparently does not include a cdrom in the OVF spec. In order to use the .ova image, a cdrom device has to be added before boot.

Prior versions of ubuntu server (such as focal-server-cloudimg-amd64.ova) included the cdrom device in the OVF spec. So this is a change from prior practice. Wondering if cdrom could be included again.

Related branches

Revision history for this message
John Chittum (jchittum) wrote :

Thank you for reporting this issue. for comparison:

definition for jammy:

https://git.launchpad.net/livecd-rootfs/tree/live-build/ubuntu-cpc/hooks.d/base/ovf/ubuntu-ova-v1-vmdk.tmpl

with the cdrom passthrough item:

      <Item ovf:required="false">
        <rasd:AddressOnParent>0</rasd:AddressOnParent>
        <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
        <rasd:ElementName>CD-ROM 1</rasd:ElementName>
        <rasd:InstanceID>9</rasd:InstanceID>
        <rasd:Parent>3</rasd:Parent>
        <rasd:ResourceSubType>vmware.cdrom.remotepassthrough</rasd:ResourceSubType>
        <rasd:ResourceType>15</rasd:ResourceType>
        <vmw:Config ovf:required="false" vmw:key="backing.exclusive" vmw:value="false"/>
      </Item>

definition for focal:

https://git.launchpad.net/livecd-rootfs/tree/live-build/ubuntu-cpc/hooks.d/base/ovf/ubuntu-ova-v1-vmdk.tmpl?h=ubuntu/focal

and cdrom passthrough:

      <Item ovf:required="false">
        <rasd:AddressOnParent>0</rasd:AddressOnParent>
        <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
        <rasd:ElementName>CD-ROM 1</rasd:ElementName>
        <rasd:InstanceID>8</rasd:InstanceID>
        <rasd:Parent>4</rasd:Parent>
        <rasd:ResourceSubType>vmware.cdrom.remotepassthrough</rasd:ResourceSubType>
        <rasd:ResourceType>15</rasd:ResourceType>
        <vmw:Config ovf:required="false" vmw:key="backing.exclusive" vmw:value="false"/>
      </Item>

I think the issue may be the rasd:Parent. It's set to 3 on Jammy, which lines up with the SCSI controller, not the IDE controller. We'll check that assumption and start working on it.

Simon Poirier (simpoir)
Changed in cloud-images:
assignee: nobody → Simon Poirier (simpoir)
status: New → In Progress
Simon Poirier (simpoir)
description: updated
Eric Desrochers (slashd)
Changed in livecd-rootfs (Ubuntu Kinetic):
status: New → In Progress
Changed in livecd-rootfs (Ubuntu Jammy):
status: New → In Progress
assignee: nobody → Simon Poirier (simpoir)
Changed in livecd-rootfs (Ubuntu Kinetic):
assignee: nobody → Simon Poirier (simpoir)
Revision history for this message
Eric Desrochers (slashd) wrote :

Sponsored for kinetic and Jammy

* kinetic [devel] upload will go over the automatic workflow. No approval post my upload is needed.
* Jammy [stable] upload would require SRU verification team approval.

The Jammy upload can be seen here:
https://launchpad.net/ubuntu/jammy/+queue?queue_state=1&queue_text=livecd-rootfs

- Eric

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
livecd-rootfs (2.766) kinetic; urgency=medium

  * live-build/ubuntu-cpc/hooks.d/base/ovf/ubuntu-ova-v1-vmdk.tmpl:
    Revert OVF cd-rom controller to be IDE for VMWare (LP: #1970795)

 -- Simon Poirier <email address hidden> Sat, 11 Jun 2022 13:11:30 -0400

Changed in livecd-rootfs (Ubuntu Kinetic):
status: In Progress → Fix Released
Revision history for this message
Simon Poirier (simpoir) wrote :

I verified livecd-rootfs - 2.766 on kinetic

I generated an image (https://simpoir.com/shared/livecd.ubuntu-cpc.ova)
and testing it against a clean virtual environment (https://pastebin.ubuntu.com/p/bw5wxYrYPJ/)

Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Jim, or anyone else affected,

Accepted livecd-rootfs into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.764.1 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-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. 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 Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Jim W (jwitte) wrote :

tested the image generated by Simon Poirier against VMWare Workstation 16.2.3 build-19376536. Yes, the resulting VM now includes a CDROM. Appears to be fixed for vmware.

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Huh, this was never pushed to git, thereby disrupting everyone's workflow. Please always create MPs and push to git - the sponsoree and the sponsorer.

Simon Poirier (simpoir)
tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Simon Poirier (simpoir) wrote :

Verified livecd-rootfs - 2.764.1 from jammy-proposed

Again, here's a link to the generated image (https://simpoir.com/shared/livecd.ubuntu-cpc.jammy.ova) which I also tested against the same clean virtual environment (https://pastebin.ubuntu.com/p/bw5wxYrYPJ/)

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
livecd-rootfs (2.764.1) jammy; urgency=medium

  * live-build/ubuntu-cpc/hooks.d/base/ovf/ubuntu-ova-v1-vmdk.tmpl:
    Revert OVF cd-rom controller to be IDE for VMWare (LP: #1970795)

 -- Simon Poirier <email address hidden> Thu, 16 Jun 2022 19:34:03 -0400

Changed in livecd-rootfs (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) 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.