### BOSH Deployment Manifest Integration Source: https://context7.com/cloudfoundry/bosh-io-stemcells-windows-index/llms.txt Example configuration for referencing a Windows stemcell in a BOSH deployment manifest. ```yaml # BOSH deployment manifest example name: windows-deployment stemcells: - alias: windows os: windows2019 version: "2019.96" instance_groups: - name: windows-worker stemcell: windows vm_type: default networks: - name: default jobs: - name: windows-worker release: my-release ``` -------------------------------- ### Metalink 4.0 Metadata Structure Source: https://context7.com/cloudfoundry/bosh-io-stemcells-windows-index/llms.txt Example of an XML document following the Metalink 4.0 specification for a Windows stemcell. ```xml 44a0bd72de1fac57701c05db19dd3166 fa74fb8a421b69d7372af27920200446b5bc9891 f435d19a02df72915ecaa7808d2fa18b8c2bb98e9e43dd9ff4107f7ead09bef4 381a93fdd13e63656b3914a00544a20cb4b1b4b26f48cd1d3dcd91d5d2aecd9cd4a1db5d1993c972d9ba5a59699b515ae2e0db2ca504096a38d26c58b51f4f62 607 https://bosh-windows-stemcells-production.s3.amazonaws.com/2019/light-bosh-stemcell-2019.96-aws-xen-hvm-windows2019-go_agent.tgz 2019.96 metalink.dpb587.github.io/0.0.0 ``` -------------------------------- ### Manage Windows Server 2012R2 Stemcells Source: https://context7.com/cloudfoundry/bosh-io-stemcells-windows-index/llms.txt Commands to download and verify Windows Server 2012R2 stemcells for AWS and Google Cloud. ```bash # Download Windows 2012R2 stemcell for AWS curl -O https://bosh-windows-stemcells-production.s3.amazonaws.com/light-bosh-stemcell-1200.7-aws-xen-hvm-windows2012R2-go_agent.tgz # Verify SHA-256 checksum echo "7f8511e013fc7cadae41b9a18d9e6e76b0ad7b727428cbc75c7da3db8092ca27 light-bosh-stemcell-1200.7-aws-xen-hvm-windows2012R2-go_agent.tgz" | sha256sum -c - # Download for Google Cloud curl -O https://bosh-windows-stemcells-production.s3.amazonaws.com/2012R2/light-bosh-stemcell-1200.32-google-kvm-windows2012R2-go_agent.tgz ``` -------------------------------- ### Parse Metalink Files Programmatically Source: https://context7.com/cloudfoundry/bosh-io-stemcells-windows-index/llms.txt Extract metadata from .meta4 files using xmllint or Python's xml.etree.ElementTree. ```bash # Extract download URL from a meta4 file xmllint --xpath "//*[local-name()='url']/text()" published/windows-2019/2019.96/aws-xen-hvm-go_agent.meta4 # Extract SHA-256 hash xmllint --xpath "//*[local-name()='hash'][@type='sha-256']/text()" published/windows-2019/2019.96/aws-xen-hvm-go_agent.meta4 # Extract version number xmllint --xpath "//*[local-name()='version']/text()" published/windows-2019/2019.96/aws-xen-hvm-go_agent.meta4 ``` ```python python3 << 'EOF' import xml.etree.ElementTree as ET tree = ET.parse('published/windows-2019/2019.96/aws-xen-hvm-go_agent.meta4') root = tree.getroot() ns = {'ml': 'urn:ietf:params:xml:ns:metalink'} for file_elem in root.findall('ml:file', ns): print(f"File: {file_elem.get('name')}") print(f"URL: {file_elem.find('ml:url', ns).text}") print(f"Version: {file_elem.find('ml:version', ns).text}") print(f"Size: {file_elem.find('ml:size', ns).text} bytes") for hash_elem in file_elem.findall('ml:hash', ns): print(f"{hash_elem.get('type').upper()}: {hash_elem.text}") EOF ``` -------------------------------- ### Manage Windows Server 2016 Stemcells Source: https://context7.com/cloudfoundry/bosh-io-stemcells-windows-index/llms.txt Commands to download and verify Windows Server 2016 stemcells for AWS. ```bash # Download Windows 2016 stemcell for AWS curl -O https://bosh-windows-stemcells-production.s3.amazonaws.com/1709/light-bosh-stemcell-1709.21-aws-xen-hvm-windows2016-go_agent.tgz # Verify SHA-256 checksum echo "8f9ef908b666fc1b04b4f05b25b49dd362b3dbddfb54f941129a811192f0d702 light-bosh-stemcell-1709.21-aws-xen-hvm-windows2016-go_agent.tgz" | sha256sum -c - ``` -------------------------------- ### Manage Windows Server 2019 Stemcells Source: https://context7.com/cloudfoundry/bosh-io-stemcells-windows-index/llms.txt Commands to download, verify, and upload Windows Server 2019 stemcells for AWS, Azure, and GCP. ```bash # Download the latest Windows 2019 stemcell for AWS curl -O https://bosh-windows-stemcells-production.s3.amazonaws.com/2019/light-bosh-stemcell-2019.96-aws-xen-hvm-windows2019-go_agent.tgz # Verify SHA-256 checksum echo "f435d19a02df72915ecaa7808d2fa18b8c2bb98e9e43dd9ff4107f7ead09bef4 light-bosh-stemcell-2019.96-aws-xen-hvm-windows2019-go_agent.tgz" | sha256sum -c - # Upload stemcell to BOSH Director bosh upload-stemcell light-bosh-stemcell-2019.96-aws-xen-hvm-windows2019-go_agent.tgz ``` ```bash # Download Windows 2019 stemcell for Azure curl -O https://bosh-windows-stemcells-production.s3.amazonaws.com/2019/light-bosh-stemcell-2019.96-azure-hyperv-windows2019-go_agent.tgz # Upload to BOSH Director for Azure deployment bosh upload-stemcell light-bosh-stemcell-2019.96-azure-hyperv-windows2019-go_agent.tgz ``` ```bash # Download Windows 2019 stemcell for GCP curl -O https://bosh-windows-stemcells-production.s3.amazonaws.com/2019/light-bosh-stemcell-2019.96-google-kvm-windows2019-go_agent.tgz # Upload to BOSH Director for GCP deployment bosh upload-stemcell light-bosh-stemcell-2019.96-google-kvm-windows2019-go_agent.tgz ``` -------------------------------- ### Download and Verify Windows Stemcell Source: https://context7.com/cloudfoundry/bosh-io-stemcells-windows-index/llms.txt Use curl to download the stemcell and sha256sum to verify its integrity. ```bash curl -O https://bosh-windows-stemcells-production.s3.amazonaws.com/1803/light-bosh-stemcell-1803.17-azure-hyperv-windows1803-go_agent.tgz # Verify SHA-256 checksum echo "fbbca154a6b796fc68c870f44fdeffbb2528111371c9777d464c855be5216167 light-bosh-stemcell-1803.17-azure-hyperv-windows1803-go_agent.tgz" | sha256sum -c - ``` -------------------------------- ### Repository Directory Structure Source: https://context7.com/cloudfoundry/bosh-io-stemcells-windows-index/llms.txt Visual representation of the stemcell repository organization. ```text published/ ├── windows-1709/ │ └── 1709.20/ │ ├── aws-xen-hvm-go_agent.meta4 │ ├── azure-hyperv-go_agent.meta4 │ └── google-kvm-go_agent.meta4 ├── windows-1803/ │ └── 1803.1/ through 1803.17/ ├── windows-2012R2/ │ ├── stemcells.meta4 # Consolidated index │ ├── google-kvm-go_agent.meta4 │ └── 1200.7/ through 1200.38/ ├── windows-2016/ │ └── 1709.3/ through 1709.21/ └── windows-2019/ └── 2019.1/ through 2019.96/ # Most current edition ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.