Skip to content

[Sunstone] Allow RAW hypervisor VM configuration update #7613

@dann1

Description

@dann1

Description
The one.vm.updateconf API call allows adding RAW hypervisor configuration to the VM. This is available through CLI as well

[root@sm15 ~]# onevm updateconf --help
## USAGE
updateconf <vmid> [<file>]
        Updates the configuration of a VM. Valid states are: running, pending,
        failure, poweroff, undeploy, hold or cloning.
        In running state only changes in CONTEXT and BACKUP_CONFIG take effect
        immediately, other values may need a VM restart.

        This command accepts a template or opens an editor.
        A template can be passed as a file with or the content via STDIN
        Bash symbols must be escaped on STDIN passing

        The full list of configuration attributes are:

        OS        = ["ARCH", "MACHINE", "KERNEL", "INITRD", "BOOTLOADER", "BOOT", "KERNEL_CMD", "ROOT", "SD_DISK_BUS", "UUID", "FIRMWARE", "FIRMWARE_FORMAT"]
        FEATURES  = ["ACPI", "PAE", "APIC", "LOCALTIME", "HYPERV", "GUEST_AGENT", "VIRTIO_SCSI_QUEUES", "VIRTIO_BLK_QUEUES", "IOTHREADS"]
        INPUT     = ["TYPE", "BUS"]
        GRAPHICS  = ["TYPE", "LISTEN", "PASSWD", "KEYMAP", "COMMAND"]
        VIDEO     = ["TYPE", "IOMMU", "ATS", "VRAM", "RESOLUTION"]
        RAW       = ["DATA", "DATA_VMX", "TYPE", "VALIDATE"]
        CPU_MODEL = ["MODEL", "FEATURES"]
        BACKUP_CONFIG = ["FS_FREEZE", "KEEP_LAST", "BACKUP_VOLATILE", "MODE", "INCREMENT_MODE"]
        CONTEXT (any value, ETH* if CONTEXT_ALLOW_ETH_UPDATES set in oned.conf, **variable substitution will be made**)
        valid options: append

Sunstone should allow such change as well

Use case
Usability

Interface Changes
Add RAW section to the VM Update configuration dialogue

Image

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions