{
    "definitions": {
        "cpu": {
            "description": "The virtual CPU",
            "properties": {
                "features": {
                    "items": {
                        "enum": [
                            "xsave",
                            "avx",
                            "aes"
                        ]
                    },
                    "type": "array"
                },
                "model": {
                    "enum": [
                        "host",
                        "pentium",
                        "qemu64",
                        "kvm64"
                    ]
                }
            },
            "type": "object"
        }
    },
    "properties": {
        "bios": {
            "description": "64k BIOS image",
            "type": "string"
        },
        "cpu": {
            "$ref": "#/definitions/cpu"
        },
        "description": {
            "description": "A human-readable description of this config",
            "type": "string"
        },
        "drives": {
            "description": "Additional virtual hard drives",
            "items": {
                "properties": {
                    "file": {
                        "type": "string"
                    },
                    "format": {
                        "enum": [
                            "raw",
                            "qcow2",
                            "vdi"
                        ]
                    },
                    "media": {
                        "enum": [
                            "disk"
                        ]
                    },
                    "name": {
                        "type": "string"
                    },
                    "type": {
                        "enum": [
                            "ide",
                            "virtio"
                        ]
                    }
                },
                "required": [
                    "file",
                    "type",
                    "format",
                    "media"
                ],
                "type": "object"
            },
            "type": "array"
        },
        "image": {
            "default": "service.img",
            "description": "A bootable virtual machine image",
            "type": "string"
        },
        "mem": {
            "default": 128,
            "description": "Amount of memory in megabytes",
            "type": "number"
        },
        "modules": {
            "description": "Multiboot 'modules', e.g. extra files provided at boot",
            "items": {
                "properties": {
                    "args": {
                        "type": "string"
                    },
                    "path": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "type": "array"
        },
        "net": {
            "description": "Network devices",
            "items": {
                "properties": {
                    "backend": {
                        "default": "tap",
                        "enum": [
                            "tap",
                            "user"
                        ]
                    },
                    "device": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    }
                },
                "required": [
                    "device"
                ],
                "type": "object"
            },
            "type": "array"
        },
        "smp": {
            "description": "Number of virtual CPU's",
            "type": "number"
        },
        "vfio": {
            "description": "VFIO PCI-passthrough on device",
            "type": "string"
        },
        "vga": {
            "description": "Enable VGA screen",
            "enum": [
                "std",
                "cirrus",
                "vmware",
                "qxl",
                "xenfb",
                "tcx",
                "cg3",
                "virtio",
                "none"
            ]
        }
    },
    "title": "Virtual Machine Image",
    "type": "object"
}