Add Azure Gen2 and NVMe support for stemcells#469
Open
s4heid wants to merge 2 commits intocloudfoundry:ubuntu-noblefrom
Open
Add Azure Gen2 and NVMe support for stemcells#469s4heid wants to merge 2 commits intocloudfoundry:ubuntu-noblefrom
s4heid wants to merge 2 commits intocloudfoundry:ubuntu-noblefrom
Conversation
* Set i/o timeouts for NVMe, as suggested by Microsoft * Create NVMe capable Gen2 images, to enable support for NVMe, which is required for latest VM types, e.g. Dv6+. * Add package `azure-vm-utils`, which contains udev rules for NVMe disks, as well as SRIOV interfaces. (cherry picked from commit 1418ec0)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enhances Azure stemcell images with Gen2 capabilities and NVMe storage support to enable compatibility with latest generation VM types (e.g., Dv6+).
The stemcell metadata have been extended for Azure and now include the following capabilities:
generation: gen2- Marks image as Gen2 compatibleaccelerated_networking: true- Enables accelerated networking supporthibernation: true- Enables hibernation capabilitydisk_controller_types: ['scsi', 'nvme']- Supported disk controller types: This setting allows compatibility with older VM types (such asDv4) that use SCSI, VM types that support both SCSI and NVMe (likeDv5), as well as newer VM types (for example,Dv6) that only support NVMe.security_type: TrustedLaunchSupported- Enables deployment of both standard VMs and TrustedLaunch VMs using the same image. For TrustedLaunch to work, addtional changes in the stemcell are required, which will be provided in a separate change.Note
The BOSH Azure CPI1 will parse and use the Azure-specific metadata to create Azure Compute Gallery Images with the features mentioned above. These features could not be configured with generation 1.
Additionally, this PR introduces NVMe configuration specifically for Azure:
nvme_core.io_timeout=240) in GRUB settings as recommended by Microsoft to avoid I/O timeouts and let Azure handle disk failuresazure-vm-utilspackage: includes udev rules for NVMe disks and SR-IOV interfaces. Previously, SR-IOV udev rules were manually created2 in the stemcell, but with this package, manual creation and ongoing maintenance are no longer needed.Testing
After this change, the
stemcell.MFlooks like this:Related Issues
cloudfoundry/bosh-azure-cpi-release#706
Footnotes
https://github.com/cloudfoundry/bosh-azure-cpi-release/pull/734 ↩
https://github.com/cloudfoundry/bosh-linux-stemcell-builder/pull/443 ↩