Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

support get kernel, image, hypervisor from oci spec #782

@Ace-Tang

Description

@Ace-Tang

Description of problem

As kernel, image and hypervisor information can be pass from oci spec

// VM contains information for virtual-machine-based containers.
type VM struct {
    // Hypervisor specifies hypervisor-related configuration for virtual-machine-based containers.
    Hypervisor VMHypervisor `json:"hypervisor,omitempty"`
    // Kernel specifies kernel-related configuration for virtual-machine-based containers.
    Kernel VMKernel `json:"kernel"`
    // Image specifies guest image related configuration for virtual-machine-based containers.
    Image VMImage `json:"image,omitempty"`
}

// VMHypervisor contains information about the hypervisor to use for a virtual machine.
type VMHypervisor struct {
    // Path is the host path to the hypervisor used to manage the virtual machine.
    Path string `json:"path"`
    // Parameters specifies parameters to pass to the hypervisor.
    Parameters string `json:"parameters,omitempty"`
}

// VMKernel contains information about the kernel to use for a virtual machine.
type VMKernel struct {
    // Path is the host path to the kernel used to boot the virtual machine.
    Path string `json:"path"`
    // Parameters specifies parameters to pass to the kernel.
    Parameters string `json:"parameters,omitempty"`
    // InitRD is the host path to an initial ramdisk to be used by the kernel.
    InitRD string `json:"initrd,omitempty"`
}

// VMImage contains information about the virtual machine root image.
type VMImage struct {
    // Path is the host path to the root image that the VM kernel would boot into.
    Path string `json:"path"`
    // Format is the root image format type (e.g. "qcow2", "raw", "vhd", etc).
    Format string `json:"format"`
}

How about support to resolve these values from config.json.(still keep kata configuration file way)

/cc @jodh-intel

Expected result

(replace this text with an explanation of what you thought would happen)

Actual result

(replace this text with details of what actually happened)


(replace this text with the output of the kata-collect-data.sh script, after
you have reviewed its content to ensure it does not contain any private
information).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions