Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide support for guest tools through AhvVmResources in addition to spec. #292

Open
glover-chris opened this issue Mar 19, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@glover-chris
Copy link

glover-chris commented Mar 19, 2024

Describe the request
Provide support for guest tools through AhvVmResources
Current behaviour
guest tools are only supported in DSL using a spec file (yaml).
Expected behaviour
Within the AhvVmResources function in blueprints, we should be able to add guest tools specifications. Something like:

class AhvVmResources_Default(AhvVmResources):

    memory = 8
    vCPUs = 1
    cores_per_vCPU = 2
    disks = [AhvVmDisk.Disk.Scsi.cloneFromVMDiskPackage(disk_package, bootable=True,),
             AhvVmDisk.Disk.Scsi.allocateOnStorageContainer(20),AhvVmDisk.CdRom.Ide.emptyCdRom()]
    nics = [AhvVmNic.NormalNic.ingress("@@{subnet_prod.uuid}@@", vpc="@@{tenant_vpc_uuid}@@",ip_endpoints=['@@{prod_ip}@@']),
            AhvVmNic.NormalNic.ingress("@@{subnet_admin.uuid}@@", vpc="@@{tenant_vpc_uuid}@@",ip_endpoints=['@@{admin_ip}@@'])]
    boot_type = "UEFI"
    guest_customization = AhvVmGC.Sysprep.PreparedScript.withoutDomain(filename=os.path.join("specs", "hostname_sysprep_unattend_xml.xml"))
guest_tools = {
            "nutanix_guest_tools": {
                "iso_mount_state": "MOUNTED",
                "state": "ENABLED",
                "enabled_capability_list": ngt_capabilities_list
            }
        }

This would greatly decrease build times versus currently running scripts during the package install section.

@glover-chris glover-chris added the enhancement New feature or request label Mar 19, 2024
fabricekrebs pushed a commit to fabricekrebs/calm-dsl that referenced this issue Oct 14, 2024
DSL Fixes for :

- Tunnel support for escript(python3) tasks.
- depth variable fix for filename param for escript all task types

Bugs: https://jira.nutanix.com/browse/CALM-40389,
https://jira.nutanix.com/browse/CALM-40387
(cherry picked from commit 41c26c4b41441a61c84409047462f5e3a62e815e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants