content type ovf: vm template

Provide template VM information in an OVF template (see OvfTemplate#type). The template VM provide the information about the operation system, CPU, memory, disks and NICs.

Representation:

{
    "memory"{
        "shares"1,
        "size"1,
        "limit"1,
        "reservation"1
    },
    "disks"[
        {
            "name""string",
            "disk_capacity"1,
            "storage_policy"{
                "group_id""string"
            }
        },
        {
            "name""string",
            "disk_capacity"1,
            "storage_policy"{
                "group_id""string"
            }
        }
    ],
    "os_description""string",
    "cpu"{
        "num_cpus"1,
        "shares"1,
        "limit"1,
        "reservation"1
    },
    "disk_controllers"[
        {
            "sub_type""string",
            "name""string",
            "type""string"
        },
        {
            "sub_type""string",
            "name""string",
            "type""string"
        }
    ],
    "floppies"[
        {
            "connected"true,
            "name""string",
            "type""string"
        },
        {
            "connected"true,
            "name""string",
            "type""string"
        }
    ],
    "usb_controllers"[
        {
            "ehci_pci_slot_number"1,
            "pci_slot_number"1,
            "auto_connect"true,
            "type""string"
        },
        {
            "ehci_pci_slot_number"1,
            "pci_slot_number"1,
            "auto_connect"true,
            "type""string"
        }
    ],
    "video_cards"[
        {
            "enable3d"true,
            "use_auto_detect"true,
            "graphics_memory_size"1,
            "num_displays"1,
            "render_type""string",
            "video_ram_size"1
        },
        {
            "enable3d"true,
            "use_auto_detect"true,
            "graphics_memory_size"1,
            "num_displays"1,
            "render_type""string",
            "video_ram_size"1
        }
    ],
    "drives"[
        {
            "sub_type""string",
            "name""string",
            "type""string"
        },
        {
            "sub_type""string",
            "name""string",
            "type""string"
        }
    ],
    "storage_policies"[
        {
            "group_id""string"
        },
        {
            "group_id""string"
        }
    ],
    "os_type""string",
    "nics"[
        {
            "start_connected"true,
            "mac_address""string",
            "name""string",
            "network_name""string"
        },
        {
            "start_connected"true,
            "mac_address""string",
            "name""string",
            "network_name""string"
        }
    ],
    "vm_name""string"
}

Attributes:

Name Type Description
Required
vm_name string Name of the VM

cpu.num_cpus long number of CPUs

memory.size long memory size in MB

Optional
os_type string OS type of the VM

Optional. A VM template is not required to specify an OS.

os_description string OS description

Optional. A VM template is not required to specify an OS.

cpu cpu CPU information of the VM

Optional. A VM template is not required to specify a CPU.

cpu.reservation long reservation in MHz

Optional. It is optional to set a CPU reservation.

cpu.limit long CPU limit in MHz

Optional. Is is optional to set a CPU limit.

cpu.shares long CPU shares

Optional. It is optional to specify CPU shares.

memory memory memory information of the VM

Optional. A VM template is not required to specify memory.

memory.reservation long memory reservation in MB

Optional. It is not required that memory reservation be specified.

memory.limit long memory limit in MB

Optional. It is not required that memory limit be specified.

memory.shares long memory shares

Optional. It is not required that memory shares be specified.

disks disk[] All hard disks on the VM

Optional. A VM template is not required to specify a list of disks.

nics nic[] All NICs on the VM

Optional. A VM template is not required to specify a list of network interfaces.

video_cards video_card[] Video cards of the VM

Optional. A VM template is not required to specify a list of video cards.

drives drive[] CD / DVD drives of the VM

Optional. A VM template is not required to specify a list of drives.

floppies floppy[] floppy drives of the VM

Optional. A VM template is not required to specify a list of floppy drives.

disk_controllers disk_controller[] Disk Controllers

Optional. A VM template is not required to specify a list of disk controllers.

usb_controllers USB_controller[] USB Controllers

Optional. A VM template is not required to specify a list of USB controllers.

storage_policies storage_policy[] Storage policies of the VM.

Optional. A VM template is not required to specify a list of storage policies.