首页 > 代码库 > opennebula 创建模板【配置集群、配置VNC、配置RAW、配置SSH】

opennebula 创建模板【配置集群、配置VNC、配置RAW、配置SSH】

{    "vmtemplate": {        "NAME": "bbbb",         "MEMORY": "512",         "CPU": "1",         "DESCRIPTION": "aaaa",         "DISK": [            {                "IMAGE": "ubuntu-001-iso-image",                 "IMAGE_UNAME": "oneadmin"            }        ],         "NIC": [            {                "NETWORK": "testvn",                 "NETWORK_UNAME": "oneadmin"            }        ],         "GRAPHICS": {            "TYPE": "VNC",             "LISTEN": "0.0.0.0",             "PORT": "5400",             "PASSWD": "123456"        },         "CONTEXT": {            "SSH_PUBLIC_KEY": "aaa",             "NETWORK": "YES"        },         "SCHED_REQUIREMENTS": "ID=\\\"46\\\" | CLUSTER_ID=\\\"103\\\"",         "RAW": {            "TYPE": "xen"        }    }}