templete as below
LXD_SECURITY_PRIVILEGED = “false”
SCHED_DS_REQUIREMENTS = "ID=“108"”
SCHED_REQUIREMENTS = "ID=“0"”
Template
AUTOMATIC_DS_REQUIREMENTS = “(“CLUSTERS/ID” @> 0)”
AUTOMATIC_NIC_REQUIREMENTS = “(“CLUSTERS/ID” @> 0)”
AUTOMATIC_REQUIREMENTS = “(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES)”
CONTEXT = [
DISK_ID = “1”,
ETH0_CONTEXT_FORCE_IPV4 = “”,
ETH0_DNS = “192.168.101.1”,
ETH0_EXTERNAL = “”,
ETH0_GATEWAY = “192.168.101.1”,
ETH0_GATEWAY6 = “”,
ETH0_IP = “192.168.101.2”,
ETH0_IP6 = “”,
ETH0_IP6_PREFIX_LENGTH = “”,
ETH0_IP6_ULA = “”,
ETH0_MAC = “02:00:c0:a8:65:02”,
ETH0_MASK = “255.255.255.0”,
ETH0_MTU = “”,
ETH0_NETWORK = “”,
ETH0_SEARCH_DOMAIN = “”,
ETH0_VLAN_ID = “101”,
ETH0_VROUTER_IP = “”,
ETH0_VROUTER_IP6 = “”,
ETH0_VROUTER_MANAGEMENT = “”,
NETWORK = “YES”,
SET_HOSTNAME = “lxd”,
SSH_PUBLIC_KEY = “”,
TARGET = “hdb” ]
CPU = “1”
DISK = [
ALLOW_ORPHANS = “NO”,
CLONE = “YES”,
CLONE_TARGET = “SYSTEM”,
CLUSTER_ID = “0”,
DATASTORE = “image qcow2”,
DATASTORE_ID = “106”,
DEV_PREFIX = “hd”,
DISK_ID = “0”,
DISK_SNAPSHOT_TOTAL_SIZE = “0”,
DISK_TYPE = “FILE”,
DRIVER = “qcow2”,
IMAGE = “ubuntu_bionic - LXD”,
IMAGE_ID = “13”,
IMAGE_STATE = “2”,
LN_TARGET = “NONE”,
ORIGINAL_SIZE = “1024”,
READONLY = “NO”,
SAVE = “NO”,
SIZE = “8192”,
SOURCE = “/var/lib/one//datastores/106/c4046b0ab7260bdb074264f517f6bddb”,
TARGET = “hda”,
TM_MAD = “qcow2”,
TYPE = “FILE” ]
GRAPHICS = [
LISTEN = “0.0.0.0”,
PORT = “5915”,
TYPE = “vnc” ]
MEMORY = “4096”
NIC = [
AR_ID = “0”,
BRIDGE = “onebr.101”,
BRIDGE_TYPE = “linux”,
CLUSTER_ID = “0”,
IP = “192.168.101.2”,
MAC = “02:00:c0:a8:65:02”,
NAME = “NIC0”,
NETWORK = “eth101”,
NETWORK_ID = “3”,
NIC_ID = “0”,
PHYDEV = “bond-local”,
SECURITY_GROUPS = “0”,
TARGET = “one-15-0”,
VLAN_ID = “101”,
VN_MAD = “802.1Q” ]
SECURITY_GROUP_RULE = [
PROTOCOL = “ALL”,
RULE_TYPE = “OUTBOUND”,
SECURITY_GROUP_ID = “0”,
SECURITY_GROUP_NAME = “default” ]
SECURITY_GROUP_RULE = [
PROTOCOL = “ALL”,
RULE_TYPE = “INBOUND”,
SECURITY_GROUP_ID = “0”,
SECURITY_GROUP_NAME = “default” ]
TEMPLATE_ID = “13”
TM_MAD_SYSTEM = “qcow2”
VCPU = “5”
VMID = “15”