"enum" : [
"486",
"athlon",
- "pentium",
- "pentium2",
- "pentium3",
- "coreduo",
+ "Broadwell",
+ "Broadwell-noTSX",
+ "Conroe",
"core2duo",
+ "coreduo",
+ "Haswell",
+ "Haswell-noTSX",
+ "host",
+ "IvyBridge",
"kvm32",
"kvm64",
- "qemu32",
- "qemu64",
- "phenom",
- "Conroe",
- "Penryn",
"Nehalem",
- "Westmere",
- "SandyBridge",
- "IvyBridge",
- "Haswell",
- "Haswell-noTSX",
- "Broadwell",
- "Broadwell-noTSX",
"Opteron_G1",
"Opteron_G2",
"Opteron_G3",
"Opteron_G4",
"Opteron_G5",
- "host"
+ "Penryn",
+ "pentium",
+ "pentium2",
+ "pentium3",
+ "phenom",
+ "qemu32",
+ "qemu64",
+ "SandyBridge",
+ "Westmere"
],
"format_description" : "cputype",
"type" : "string"
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "ignore|report|stop",
"optional" : 1,
"type" : "string"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
},
"net[n]" : {
"description" : "Specify network devices.\n\nMODEL is one of: e1000 e1000-82540em e1000-82544gc e1000-82545em i82551 i82557b i82559er ne2k_isa ne2k_pci pcnet rtl8139 virtio vmxnet3\n\nXX:XX:XX:XX:XX:XX should be an unique MAC address. This is\nautomatically generated if not specified.\n\nThe bridge parameter can be used to automatically add the interface to a bridge device. The Proxmox VE standard bridge is called 'vmbr0'.\n\nOption 'rate' is used to limit traffic bandwidth from and to this interface. It is specified as floating point number, unit is 'Megabytes per second'.\n\nIf you specify no bridge, we create a kvm 'user' (NATed) network device, which provides DHCP and DNS services. The following addresses are used:\n\n10.0.2.2 Gateway\n10.0.2.3 DNS Server\n10.0.2.4 SMB Server\n\nThe DHCP server assign addresses to the guest starting from 10.0.2.15.\n\n",
- "format" : "pve-qm-net",
+ "format" : {
+ "bridge" : {
+ "description" : "Bridge to attach the network device to.",
+ "format_description" : "bridge",
+ "optional" : 1,
+ "type" : "string"
+ },
+ "e1000" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "e1000-82540em" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "e1000-82544gc" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "e1000-82545em" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "firewall" : {
+ "description" : "Whether this interface should be protected by the firewall.",
+ "optional" : 1,
+ "type" : "boolean"
+ },
+ "i82551" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "i82557b" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "i82559er" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "link_down" : {
+ "description" : "Whether this interface should be DISconnected (like pulling the plug).",
+ "optional" : 1,
+ "type" : "boolean"
+ },
+ "macaddr" : {
+ "description" : "MAC address",
+ "format_description" : "XX:XX:XX:XX:XX:XX",
+ "keyAlias" : "model",
+ "optional" : 1,
+ "pattern" : "(?^i:[0-9a-f]{2}(?::[0-9a-f]{2}){5})",
+ "type" : "string"
+ },
+ "model" : {
+ "default_key" : 1,
+ "description" : "Network Card Model.",
+ "enum" : [
+ "rtl8139",
+ "ne2k_pci",
+ "e1000",
+ "pcnet",
+ "virtio",
+ "ne2k_isa",
+ "i82551",
+ "i82557b",
+ "i82559er",
+ "vmxnet3",
+ "e1000-82540em",
+ "e1000-82544gc",
+ "e1000-82545em"
+ ],
+ "format_description" : "model",
+ "type" : "string"
+ },
+ "ne2k_isa" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "ne2k_pci" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "pcnet" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "queues" : {
+ "description" : "Number of packet queues to be used on the device.",
+ "maximum" : 16,
+ "minimum" : 0,
+ "optional" : 1,
+ "type" : "integer"
+ },
+ "rate" : {
+ "description" : "Rate limit in mbps as floating point number.",
+ "minimum" : 0,
+ "optional" : 1,
+ "type" : "number"
+ },
+ "rtl8139" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "tag" : {
+ "description" : "VLAN tag to apply to packets on this interface.",
+ "maximum" : 4094,
+ "minimum" : 2,
+ "optional" : 1,
+ "type" : "integer"
+ },
+ "trunks" : {
+ "description" : "VLAN trunks to pass through this interface.",
+ "format_description" : "vlanid[;vlanid...]",
+ "optional" : 1,
+ "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
+ "type" : "string"
+ },
+ "virtio" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "vmxnet3" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ }
+ },
"optional" : 1,
"type" : "string"
},
},
"memory" : {
"description" : "Amount of memory this numa node provides.",
- "format_description" : "mb",
"optional" : 1,
"type" : "number"
},
"bind",
"interleave"
],
- "format_description" : "preferred|bind|interleave",
"optional" : 1,
"type" : "string"
}
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "ignore|report|stop",
"optional" : 1,
"type" : "string"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
},
"iothread" : {
"description" : "Whether to use iothreads for this drive",
- "format_description" : "off|on",
"optional" : 1,
"type" : "boolean"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"queues" : {
"description" : "Number of queues.",
- "format_description" : "nbqueues",
"minimum" : 2,
"optional" : 1,
"type" : "integer"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
},
"usb3" : {
"description" : "Specifies whether if given host option is a USB3 device or port",
- "format_description" : "yes|no",
"optional" : 1,
"type" : "boolean"
}
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
},
"iothread" : {
"description" : "Whether to use iothreads for this drive",
- "format_description" : "off|on",
"optional" : 1,
"type" : "boolean"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "ignore|report|stop",
"optional" : 1,
"type" : "string"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
"enum" : [
"486",
"athlon",
- "pentium",
- "pentium2",
- "pentium3",
- "coreduo",
+ "Broadwell",
+ "Broadwell-noTSX",
+ "Conroe",
"core2duo",
+ "coreduo",
+ "Haswell",
+ "Haswell-noTSX",
+ "host",
+ "IvyBridge",
"kvm32",
"kvm64",
- "qemu32",
- "qemu64",
- "phenom",
- "Conroe",
- "Penryn",
"Nehalem",
- "Westmere",
- "SandyBridge",
- "IvyBridge",
- "Haswell",
- "Haswell-noTSX",
- "Broadwell",
- "Broadwell-noTSX",
"Opteron_G1",
"Opteron_G2",
"Opteron_G3",
"Opteron_G4",
"Opteron_G5",
- "host"
+ "Penryn",
+ "pentium",
+ "pentium2",
+ "pentium3",
+ "phenom",
+ "qemu32",
+ "qemu64",
+ "SandyBridge",
+ "Westmere"
],
"format_description" : "cputype",
"type" : "string"
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "ignore|report|stop",
"optional" : 1,
"type" : "string"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
},
"net[n]" : {
"description" : "Specify network devices.\n\nMODEL is one of: e1000 e1000-82540em e1000-82544gc e1000-82545em i82551 i82557b i82559er ne2k_isa ne2k_pci pcnet rtl8139 virtio vmxnet3\n\nXX:XX:XX:XX:XX:XX should be an unique MAC address. This is\nautomatically generated if not specified.\n\nThe bridge parameter can be used to automatically add the interface to a bridge device. The Proxmox VE standard bridge is called 'vmbr0'.\n\nOption 'rate' is used to limit traffic bandwidth from and to this interface. It is specified as floating point number, unit is 'Megabytes per second'.\n\nIf you specify no bridge, we create a kvm 'user' (NATed) network device, which provides DHCP and DNS services. The following addresses are used:\n\n10.0.2.2 Gateway\n10.0.2.3 DNS Server\n10.0.2.4 SMB Server\n\nThe DHCP server assign addresses to the guest starting from 10.0.2.15.\n\n",
- "format" : "pve-qm-net",
+ "format" : {
+ "bridge" : {
+ "description" : "Bridge to attach the network device to.",
+ "format_description" : "bridge",
+ "optional" : 1,
+ "type" : "string"
+ },
+ "e1000" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "e1000-82540em" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "e1000-82544gc" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "e1000-82545em" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "firewall" : {
+ "description" : "Whether this interface should be protected by the firewall.",
+ "optional" : 1,
+ "type" : "boolean"
+ },
+ "i82551" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "i82557b" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "i82559er" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "link_down" : {
+ "description" : "Whether this interface should be DISconnected (like pulling the plug).",
+ "optional" : 1,
+ "type" : "boolean"
+ },
+ "macaddr" : {
+ "description" : "MAC address",
+ "format_description" : "XX:XX:XX:XX:XX:XX",
+ "keyAlias" : "model",
+ "optional" : 1,
+ "pattern" : "(?^i:[0-9a-f]{2}(?::[0-9a-f]{2}){5})",
+ "type" : "string"
+ },
+ "model" : {
+ "default_key" : 1,
+ "description" : "Network Card Model.",
+ "enum" : [
+ "rtl8139",
+ "ne2k_pci",
+ "e1000",
+ "pcnet",
+ "virtio",
+ "ne2k_isa",
+ "i82551",
+ "i82557b",
+ "i82559er",
+ "vmxnet3",
+ "e1000-82540em",
+ "e1000-82544gc",
+ "e1000-82545em"
+ ],
+ "format_description" : "model",
+ "type" : "string"
+ },
+ "ne2k_isa" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "ne2k_pci" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "pcnet" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "queues" : {
+ "description" : "Number of packet queues to be used on the device.",
+ "maximum" : 16,
+ "minimum" : 0,
+ "optional" : 1,
+ "type" : "integer"
+ },
+ "rate" : {
+ "description" : "Rate limit in mbps as floating point number.",
+ "minimum" : 0,
+ "optional" : 1,
+ "type" : "number"
+ },
+ "rtl8139" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "tag" : {
+ "description" : "VLAN tag to apply to packets on this interface.",
+ "maximum" : 4094,
+ "minimum" : 2,
+ "optional" : 1,
+ "type" : "integer"
+ },
+ "trunks" : {
+ "description" : "VLAN trunks to pass through this interface.",
+ "format_description" : "vlanid[;vlanid...]",
+ "optional" : 1,
+ "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
+ "type" : "string"
+ },
+ "virtio" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "vmxnet3" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ }
+ },
"optional" : 1,
"type" : "string"
},
},
"memory" : {
"description" : "Amount of memory this numa node provides.",
- "format_description" : "mb",
"optional" : 1,
"type" : "number"
},
"bind",
"interleave"
],
- "format_description" : "preferred|bind|interleave",
"optional" : 1,
"type" : "string"
}
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "ignore|report|stop",
"optional" : 1,
"type" : "string"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
},
"iothread" : {
"description" : "Whether to use iothreads for this drive",
- "format_description" : "off|on",
"optional" : 1,
"type" : "boolean"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"queues" : {
"description" : "Number of queues.",
- "format_description" : "nbqueues",
"minimum" : 2,
"optional" : 1,
"type" : "integer"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
},
"usb3" : {
"description" : "Specifies whether if given host option is a USB3 device or port",
- "format_description" : "yes|no",
"optional" : 1,
"type" : "boolean"
}
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
},
"iothread" : {
"description" : "Whether to use iothreads for this drive",
- "format_description" : "off|on",
"optional" : 1,
"type" : "boolean"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "ignore|report|stop",
"optional" : 1,
"type" : "string"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
"enum" : [
"486",
"athlon",
- "pentium",
- "pentium2",
- "pentium3",
- "coreduo",
+ "Broadwell",
+ "Broadwell-noTSX",
+ "Conroe",
"core2duo",
+ "coreduo",
+ "Haswell",
+ "Haswell-noTSX",
+ "host",
+ "IvyBridge",
"kvm32",
"kvm64",
- "qemu32",
- "qemu64",
- "phenom",
- "Conroe",
- "Penryn",
"Nehalem",
- "Westmere",
- "SandyBridge",
- "IvyBridge",
- "Haswell",
- "Haswell-noTSX",
- "Broadwell",
- "Broadwell-noTSX",
"Opteron_G1",
"Opteron_G2",
"Opteron_G3",
"Opteron_G4",
"Opteron_G5",
- "host"
+ "Penryn",
+ "pentium",
+ "pentium2",
+ "pentium3",
+ "phenom",
+ "qemu32",
+ "qemu64",
+ "SandyBridge",
+ "Westmere"
],
"format_description" : "cputype",
"type" : "string"
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "ignore|report|stop",
"optional" : 1,
"type" : "string"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
},
"net[n]" : {
"description" : "Specify network devices.\n\nMODEL is one of: e1000 e1000-82540em e1000-82544gc e1000-82545em i82551 i82557b i82559er ne2k_isa ne2k_pci pcnet rtl8139 virtio vmxnet3\n\nXX:XX:XX:XX:XX:XX should be an unique MAC address. This is\nautomatically generated if not specified.\n\nThe bridge parameter can be used to automatically add the interface to a bridge device. The Proxmox VE standard bridge is called 'vmbr0'.\n\nOption 'rate' is used to limit traffic bandwidth from and to this interface. It is specified as floating point number, unit is 'Megabytes per second'.\n\nIf you specify no bridge, we create a kvm 'user' (NATed) network device, which provides DHCP and DNS services. The following addresses are used:\n\n10.0.2.2 Gateway\n10.0.2.3 DNS Server\n10.0.2.4 SMB Server\n\nThe DHCP server assign addresses to the guest starting from 10.0.2.15.\n\n",
- "format" : "pve-qm-net",
+ "format" : {
+ "bridge" : {
+ "description" : "Bridge to attach the network device to.",
+ "format_description" : "bridge",
+ "optional" : 1,
+ "type" : "string"
+ },
+ "e1000" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "e1000-82540em" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "e1000-82544gc" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "e1000-82545em" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "firewall" : {
+ "description" : "Whether this interface should be protected by the firewall.",
+ "optional" : 1,
+ "type" : "boolean"
+ },
+ "i82551" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "i82557b" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "i82559er" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "link_down" : {
+ "description" : "Whether this interface should be DISconnected (like pulling the plug).",
+ "optional" : 1,
+ "type" : "boolean"
+ },
+ "macaddr" : {
+ "description" : "MAC address",
+ "format_description" : "XX:XX:XX:XX:XX:XX",
+ "keyAlias" : "model",
+ "optional" : 1,
+ "pattern" : "(?^i:[0-9a-f]{2}(?::[0-9a-f]{2}){5})",
+ "type" : "string"
+ },
+ "model" : {
+ "default_key" : 1,
+ "description" : "Network Card Model.",
+ "enum" : [
+ "rtl8139",
+ "ne2k_pci",
+ "e1000",
+ "pcnet",
+ "virtio",
+ "ne2k_isa",
+ "i82551",
+ "i82557b",
+ "i82559er",
+ "vmxnet3",
+ "e1000-82540em",
+ "e1000-82544gc",
+ "e1000-82545em"
+ ],
+ "format_description" : "model",
+ "type" : "string"
+ },
+ "ne2k_isa" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "ne2k_pci" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "pcnet" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "queues" : {
+ "description" : "Number of packet queues to be used on the device.",
+ "maximum" : 16,
+ "minimum" : 0,
+ "optional" : 1,
+ "type" : "integer"
+ },
+ "rate" : {
+ "description" : "Rate limit in mbps as floating point number.",
+ "minimum" : 0,
+ "optional" : 1,
+ "type" : "number"
+ },
+ "rtl8139" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "tag" : {
+ "description" : "VLAN tag to apply to packets on this interface.",
+ "maximum" : 4094,
+ "minimum" : 2,
+ "optional" : 1,
+ "type" : "integer"
+ },
+ "trunks" : {
+ "description" : "VLAN trunks to pass through this interface.",
+ "format_description" : "vlanid[;vlanid...]",
+ "optional" : 1,
+ "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
+ "type" : "string"
+ },
+ "virtio" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ },
+ "vmxnet3" : {
+ "alias" : "macaddr",
+ "keyAlias" : "model"
+ }
+ },
"optional" : 1,
"type" : "string"
},
},
"memory" : {
"description" : "Amount of memory this numa node provides.",
- "format_description" : "mb",
"optional" : 1,
"type" : "number"
},
"bind",
"interleave"
],
- "format_description" : "preferred|bind|interleave",
"optional" : 1,
"type" : "string"
}
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "ignore|report|stop",
"optional" : 1,
"type" : "string"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
},
"iothread" : {
"description" : "Whether to use iothreads for this drive",
- "format_description" : "off|on",
"optional" : 1,
"type" : "boolean"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"queues" : {
"description" : "Number of queues.",
- "format_description" : "nbqueues",
"minimum" : 2,
"optional" : 1,
"type" : "integer"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
},
"usb3" : {
"description" : "Specifies whether if given host option is a USB3 device or port",
- "format_description" : "yes|no",
"optional" : 1,
"type" : "boolean"
}
"native",
"threads"
],
- "format_description" : "native|threads",
"optional" : 1,
"type" : "string"
},
"backup" : {
"description" : "Whether the drive should be included when making backups.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"unsafe",
"directsync"
],
- "format_description" : "none|writethrough|writeback|unsafe|directsync",
"optional" : 1,
"type" : "string"
},
"cyls" : {
"description" : "Force the drive's physical geometry to have a specific cylinder count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"ignore",
"on"
],
- "format_description" : "ignore|on",
"optional" : 1,
"type" : "string"
},
"vmdk",
"cloop"
],
- "format_description" : "drive format",
+ "format_description" : "image format",
"optional" : 1,
"type" : "string"
},
"heads" : {
"description" : "Force the drive's physical geometry to have a specific head count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
},
"iothread" : {
"description" : "Whether to use iothreads for this drive",
- "format_description" : "off|on",
"optional" : 1,
"type" : "boolean"
},
"cdrom",
"disk"
],
- "format_description" : "cdrom|disk",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "ignore|report|stop",
"optional" : 1,
"type" : "string"
},
"secs" : {
"description" : "Force the drive's physical geometry to have a specific sector count.",
- "format_description" : "count",
"optional" : 1,
"type" : "integer"
},
"size" : {
"description" : "Disk size. This is purely informational and has no effect.",
"format" : "disk-size",
+ "format_description" : "DiskSize",
"optional" : 1,
"type" : "string"
},
"snapshot" : {
"description" : "Whether the drive should be included when making snapshots.",
- "format_description" : "on|off",
"optional" : 1,
"type" : "boolean"
},
"lba",
"auto"
],
- "format_description" : "none|lba|auto",
"optional" : 1,
"type" : "string"
},
"report",
"stop"
],
- "format_description" : "enospc|ignore|report|stop",
"optional" : 1,
"type" : "string"
}
"format" : {
"acl" : {
"description" : "Explicitly enable or disable ACL support.",
- "format_description" : "acl",
"optional" : 1,
"type" : "boolean"
},
"backup" : {
"description" : "Whether to include the mountpoint in backups.",
- "format_description" : "[1|0]",
"optional" : 1,
"type" : "boolean"
},
},
"quota" : {
"description" : "Enable user quotas inside the container (not supported with zfs subvolumes)",
- "format_description" : "[0|1]",
"optional" : 1,
"type" : "boolean"
},
"ro" : {
"description" : "Read-only mountpoint (not supported with bind mounts)",
- "format_description" : "ro",
"optional" : 1,
"type" : "boolean"
},
"format" : {
"bridge" : {
"description" : "Bridge to attach the network device to.",
- "format_description" : "vmbr<Number>",
+ "format_description" : "bridge",
"optional" : 1,
"pattern" : "[-_.\\w\\d]+",
"type" : "string"
},
"firewall" : {
"description" : "Controls whether this interface's firewall rules should be used.",
- "format_description" : "[1|0]",
"optional" : 1,
"type" : "boolean"
},
"type" : "string"
},
"hwaddr" : {
- "description" : "Bridge to attach the network device to. (lxc.network.hwaddr)",
- "format_description" : "MAC",
+ "description" : "The interface MAC address. This is dynamically allocated by default, but you can set that statically if needed, for example to always have the same link-local IPv6 address. (lxc.network.hwaddr)",
+ "format_description" : "XX:XX:XX:XX:XX:XX",
"optional" : 1,
"pattern" : "(?^i:(?:[a-f0-9]{2}:){5}[a-f0-9]{2})",
"type" : "string"
},
"mtu" : {
"description" : "Maximum transfer unit of the interface. (lxc.network.mtu)",
- "format_description" : "Number",
"minimum" : 64,
"optional" : 1,
"type" : "integer"
},
"name" : {
"description" : "Name of the network device as seen from inside the container. (lxc.network.name)",
- "format_description" : "String",
+ "format_description" : "string",
"pattern" : "[-_.\\w\\d]+",
"type" : "string"
},
},
"tag" : {
"description" : "VLAN tag for this interface.",
- "format_description" : "VlanNo",
"maximum" : "4094",
"minimum" : "2",
"optional" : 1,
"format" : {
"acl" : {
"description" : "Explicitly enable or disable ACL support.",
- "format_description" : "acl",
"optional" : 1,
"type" : "boolean"
},
"backup" : {
"description" : "Whether to include the mountpoint in backups.",
- "format_description" : "[1|0]",
"optional" : 1,
"type" : "boolean"
},
"quota" : {
"description" : "Enable user quotas inside the container (not supported with zfs subvolumes)",
- "format_description" : "[0|1]",
"optional" : 1,
"type" : "boolean"
},
"ro" : {
"description" : "Read-only mountpoint (not supported with bind mounts)",
- "format_description" : "ro",
"optional" : 1,
"type" : "boolean"
},
"format" : {
"acl" : {
"description" : "Explicitly enable or disable ACL support.",
- "format_description" : "acl",
"optional" : 1,
"type" : "boolean"
},
"backup" : {
"description" : "Whether to include the mountpoint in backups.",
- "format_description" : "[1|0]",
"optional" : 1,
"type" : "boolean"
},
},
"quota" : {
"description" : "Enable user quotas inside the container (not supported with zfs subvolumes)",
- "format_description" : "[0|1]",
"optional" : 1,
"type" : "boolean"
},
"ro" : {
"description" : "Read-only mountpoint (not supported with bind mounts)",
- "format_description" : "ro",
"optional" : 1,
"type" : "boolean"
},
"format" : {
"bridge" : {
"description" : "Bridge to attach the network device to.",
- "format_description" : "vmbr<Number>",
+ "format_description" : "bridge",
"optional" : 1,
"pattern" : "[-_.\\w\\d]+",
"type" : "string"
},
"firewall" : {
"description" : "Controls whether this interface's firewall rules should be used.",
- "format_description" : "[1|0]",
"optional" : 1,
"type" : "boolean"
},
"type" : "string"
},
"hwaddr" : {
- "description" : "Bridge to attach the network device to. (lxc.network.hwaddr)",
- "format_description" : "MAC",
+ "description" : "The interface MAC address. This is dynamically allocated by default, but you can set that statically if needed, for example to always have the same link-local IPv6 address. (lxc.network.hwaddr)",
+ "format_description" : "XX:XX:XX:XX:XX:XX",
"optional" : 1,
"pattern" : "(?^i:(?:[a-f0-9]{2}:){5}[a-f0-9]{2})",
"type" : "string"
},
"mtu" : {
"description" : "Maximum transfer unit of the interface. (lxc.network.mtu)",
- "format_description" : "Number",
"minimum" : 64,
"optional" : 1,
"type" : "integer"
},
"name" : {
"description" : "Name of the network device as seen from inside the container. (lxc.network.name)",
- "format_description" : "String",
+ "format_description" : "string",
"pattern" : "[-_.\\w\\d]+",
"type" : "string"
},
},
"tag" : {
"description" : "VLAN tag for this interface.",
- "format_description" : "VlanNo",
"maximum" : "4094",
"minimum" : "2",
"optional" : 1,
"format" : {
"acl" : {
"description" : "Explicitly enable or disable ACL support.",
- "format_description" : "acl",
"optional" : 1,
"type" : "boolean"
},
"backup" : {
"description" : "Whether to include the mountpoint in backups.",
- "format_description" : "[1|0]",
"optional" : 1,
"type" : "boolean"
},
"quota" : {
"description" : "Enable user quotas inside the container (not supported with zfs subvolumes)",
- "format_description" : "[0|1]",
"optional" : 1,
"type" : "boolean"
},
"ro" : {
"description" : "Read-only mountpoint (not supported with bind mounts)",
- "format_description" : "ro",
"optional" : 1,
"type" : "boolean"
},
use warnings;
use PVE::RESTHandler;
use PVE::LXC::Config;
+use PVE::JSONSchema;
my $prop = PVE::LXC::Config->json_config_properties();
my $mp_prop = $prop->{mp0};
-my $typetext = PVE::PodParser::schema_get_type_text($rootfs_prop);
+my $typetext = PVE::JSONSchema::schema_get_type_text($rootfs_prop);
print "`rootfs`: `$typetext`\n\n";
-$typetext = PVE::PodParser::schema_get_type_text($mp_prop);
+$typetext = PVE::JSONSchema::schema_get_type_text($mp_prop);
print "`mp[n]`: `$typetext`\n\n";
use lib '.';
use strict;
use warnings;
+use PVE::JSONSchema;
use PVE::RESTHandler;
use PVE::LXC::Config;
my $format = $phash->{format};
-my $typetext = PVE::PodParser::schema_get_type_text($phash);
+my $typetext = PVE::JSONSchema::schema_get_type_text($phash);
print "`net[n]`: `$typetext`\n\n";
-`rootfs`: `[volume=]<volume> [,acl=<acl>] [,backup=<[1|0]>] [,quota=<[0|1]>] [,ro=<ro>] [,size=<DiskSize>]`
+`rootfs`: `[volume=]<volume> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]`
-`mp[n]`: `mp=<Path>, [volume=]<volume> [,acl=<acl>] [,backup=<[1|0]>] [,quota=<[0|1]>] [,ro=<ro>] [,size=<DiskSize>]`
+`mp[n]`: `[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]`
-`acl`: `<acl>` ::
+`acl`: `boolean` ::
Explicitly enable or disable ACL support.
-`backup`: `<[1|0]>` ::
+`backup`: `boolean` ::
Whether to include the mountpoint in backups.
Path to the mountpoint as seen from inside the container.
-`quota`: `<[0|1]>` ::
+`quota`: `boolean` ::
Enable user quotas inside the container (not supported with zfs subvolumes)
-`ro`: `<ro>` ::
+`ro`: `boolean` ::
Read-only mountpoint (not supported with bind mounts)
-`net[n]`: `name=<String> [,bridge=<vmbr<Number>>] [,firewall=<[1|0]>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<MAC>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>] [,mtu=<Number>] [,rate=<mbps>] [,tag=<VlanNo>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]`
+`net[n]`: `name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]`
-`bridge`: `<vmbr<Number>>` ::
+`bridge`: `<bridge>` ::
Bridge to attach the network device to.
-`firewall`: `<[1|0]>` ::
+`firewall`: `boolean` ::
Controls whether this interface's firewall rules should be used.
Default gateway for IPv6 traffic.
-`hwaddr`: `<MAC>` ::
+`hwaddr`: `<XX:XX:XX:XX:XX:XX>` ::
The interface MAC address. This is dynamically allocated by default, but
you can set that statically if needed, for example to always have the same
IPv6 address in CIDR format.
-`mtu`: `<Number>` ::
+`mtu`: `integer (64 - N)` ::
Maximum transfer unit of the interface. (lxc.network.mtu)
-`name`: `<String>` ::
+`name`: `<string>` ::
Name of the network device as seen from inside the container.
(lxc.network.name)
Apply rate limiting to the interface
-`tag`: `<VlanNo>` ::
+`tag`: `integer (2 - 4094)` ::
VLAN tag for this interface.
Amount of RAM for the VM in MB.
-`-mp[n]` `mp=<Path>, [volume=]<volume> [,acl=<acl>] [,backup=<[1|0]>] [,quota=<[0|1]>] [,ro=<ro>] [,size=<DiskSize>]` ::
+`-mp[n]` `[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]` ::
Use volume as container mount point (experimental feature).
Sets DNS server IP address for a container. Create will automatically use
the setting from the host if you neither set searchdomain nor nameserver.
-`-net[n]` `name=<String> [,bridge=<vmbr<Number>>] [,firewall=<[1|0]>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<MAC>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>] [,mtu=<Number>] [,rate=<mbps>] [,tag=<VlanNo>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
+`-net[n]` `name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
Specifies network interfaces for the container.
Mark this as restore task.
-`-rootfs` `[volume=]<volume> [,acl=<acl>] [,backup=<[1|0]>] [,quota=<[0|1]>] [,ro=<ro>] [,size=<DiskSize>]` ::
+`-rootfs` `[volume=]<volume> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]` ::
Use volume as container root.
Amount of RAM for the VM in MB.
-`-mp[n]` `mp=<Path>, [volume=]<volume> [,acl=<acl>] [,backup=<[1|0]>] [,quota=<[0|1]>] [,ro=<ro>] [,size=<DiskSize>]` ::
+`-mp[n]` `[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]` ::
Use volume as container mount point (experimental feature).
Sets DNS server IP address for a container. Create will automatically use
the setting from the host if you neither set searchdomain nor nameserver.
-`-net[n]` `name=<String> [,bridge=<vmbr<Number>>] [,firewall=<[1|0]>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<MAC>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>] [,mtu=<Number>] [,rate=<mbps>] [,tag=<VlanNo>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
+`-net[n]` `name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
Specifies network interfaces for the container.
Sets the protection flag of the container. This will prevent the CT or CT's
disk remove/update operation.
-`-rootfs` `[volume=]<volume> [,acl=<acl>] [,backup=<[1|0]>] [,quota=<[0|1]>] [,ro=<ro>] [,size=<DiskSize>]` ::
+`-rootfs` `[volume=]<volume> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]` ::
Use volume as container root.
Amount of RAM for the VM in MB.
-`-mp[n]` `mp=<Path>, [volume=]<volume> [,acl=<acl>] [,backup=<[1|0]>] [,quota=<[0|1]>] [,ro=<ro>] [,size=<DiskSize>]` ::
+`-mp[n]` `[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]` ::
Use volume as container mount point (experimental feature).
Sets DNS server IP address for a container. Create will automatically use
the setting from the host if you neither set searchdomain nor nameserver.
-`-net[n]` `name=<String> [,bridge=<vmbr<Number>>] [,firewall=<[1|0]>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<MAC>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>] [,mtu=<Number>] [,rate=<mbps>] [,tag=<VlanNo>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
+`-net[n]` `name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
Specifies network interfaces for the container.
Sets the protection flag of the container. This will prevent the CT or CT's
disk remove/update operation.
-`-rootfs` `[volume=]<volume> [,acl=<acl>] [,backup=<[1|0]>] [,quota=<[0|1]>] [,ro=<ro>] [,size=<DiskSize>]` ::
+`-rootfs` `[volume=]<volume> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]` ::
Use volume as container root.
Amount of RAM for the VM in MB.
-`mp[n]`: `mp=<Path>, [volume=]<volume> [,acl=<acl>] [,backup=<[1|0]>] [,quota=<[0|1]>] [,ro=<ro>] [,size=<DiskSize>]` ::
+`mp[n]`: `[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]` ::
Use volume as container mount point (experimental feature).
Sets DNS server IP address for a container. Create will automatically use
the setting from the host if you neither set searchdomain nor nameserver.
-`net[n]`: `name=<String> [,bridge=<vmbr<Number>>] [,firewall=<[1|0]>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<MAC>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>] [,mtu=<Number>] [,rate=<mbps>] [,tag=<VlanNo>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
+`net[n]`: `name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
Specifies network interfaces for the container.
Sets the protection flag of the container. This will prevent the CT or CT's
disk remove/update operation.
-`rootfs`: `[volume=]<volume> [,acl=<acl>] [,backup=<[1|0]>] [,quota=<[0|1]>] [,ro=<ro>] [,size=<DiskSize>]` ::
+`rootfs`: `[volume=]<volume> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]` ::
Use volume as container root.
disable hotplug completely. Value '1' is an alias for the default
'network,disk,usb'.
-`-ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,rerror=<ignore|report|stop>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`-ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
Set a name for the VM. Only used on the configuration web interface.
-`-net[n]` `string` ::
+`-net[n]` `[model=]<model> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` ::
Specify network devices.
+
Enable/disable NUMA.
-`-numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<mb>] [,policy=<preferred|bind|interleave>]` ::
+`-numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
numa topology
Allow reboot. If set to '0' the VM exit on reboot.
-`-sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`-sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
-`-scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<off|on>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,queues=<nbqueues>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`-scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,queues=<integer>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
more memory this VM gets. Number is relative to weights of all other
running VMs. Using zero disables auto-ballooning
-`-smbios1` `[family=<str>] [,manufacturer=<name>] [,product=<name>] [,serial=<str>] [,sku=<str>] [,uuid=<UUID>] [,version=<str>]` ::
+`-smbios1` `[family=<string>] [,manufacturer=<string>] [,product=<string>] [,serial=<string>] [,sku=<string>] [,uuid=<UUID>] [,version=<string>]` ::
Specify SMBIOS type 1 fields.
Reference to unused volumes.
-`-usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<yes|no>]` ::
+`-usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
Configure an USB device (n is 0 to 4). This can be used to
pass-through usb devices to the guest. HOSTUSBDEVICE syntax is:
independent displays you want, Linux guests can add displays them self. You
can also run without any graphic card, using a serial device as terminal.
-`-virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<off|on>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`-virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as VIRTIO hard disk (n is 0 to 15).
-`-watchdog` `[action=<reset|shutdown|poweroff|pause|debug|none>] [,[model=]<i6300esb|ib700>]` ::
+`-watchdog` `[[model=]<i6300esb|ib700>] [,action=<reset|shutdown|poweroff|pause|debug|none>]` ::
Create a virtual hardware watchdog device. Once enabled (by a guest
action), the watchdog must be periodically polled by an agent inside the
disable hotplug completely. Value '1' is an alias for the default
'network,disk,usb'.
-`-ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,rerror=<ignore|report|stop>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`-ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
Set a name for the VM. Only used on the configuration web interface.
-`-net[n]` `string` ::
+`-net[n]` `[model=]<model> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` ::
Specify network devices.
+
Enable/disable NUMA.
-`-numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<mb>] [,policy=<preferred|bind|interleave>]` ::
+`-numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
numa topology
Revert a pending change.
-`-sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`-sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
-`-scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<off|on>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,queues=<nbqueues>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`-scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,queues=<integer>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
Ignore locks - only root is allowed to use this option.
-`-smbios1` `[family=<str>] [,manufacturer=<name>] [,product=<name>] [,serial=<str>] [,sku=<str>] [,uuid=<UUID>] [,version=<str>]` ::
+`-smbios1` `[family=<string>] [,manufacturer=<string>] [,product=<string>] [,serial=<string>] [,sku=<string>] [,uuid=<UUID>] [,version=<string>]` ::
Specify SMBIOS type 1 fields.
Reference to unused volumes.
-`-usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<yes|no>]` ::
+`-usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
Configure an USB device (n is 0 to 4). This can be used to
pass-through usb devices to the guest. HOSTUSBDEVICE syntax is:
independent displays you want, Linux guests can add displays them self. You
can also run without any graphic card, using a serial device as terminal.
-`-virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<off|on>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`-virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as VIRTIO hard disk (n is 0 to 15).
-`-watchdog` `[action=<reset|shutdown|poweroff|pause|debug|none>] [,[model=]<i6300esb|ib700>]` ::
+`-watchdog` `[[model=]<i6300esb|ib700>] [,action=<reset|shutdown|poweroff|pause|debug|none>]` ::
Create a virtual hardware watchdog device. Once enabled (by a guest
action), the watchdog must be periodically polled by an agent inside the
disable hotplug completely. Value '1' is an alias for the default
'network,disk,usb'.
-`ide[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,rerror=<ignore|report|stop>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`ide[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
Set a name for the VM. Only used on the configuration web interface.
-`net[n]`: `string` ::
+`net[n]`: `[model=]<model> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` ::
Specify network devices.
+
Enable/disable NUMA.
-`numa[n]`: `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<mb>] [,policy=<preferred|bind|interleave>]` ::
+`numa[n]`: `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
numa topology
Allow reboot. If set to '0' the VM exit on reboot.
-`sata[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`sata[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
-`scsi[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<off|on>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,queues=<nbqueues>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`scsi[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,queues=<integer>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
more memory this VM gets. Number is relative to weights of all other
running VMs. Using zero disables auto-ballooning
-`smbios1`: `[family=<str>] [,manufacturer=<name>] [,product=<name>] [,serial=<str>] [,sku=<str>] [,uuid=<UUID>] [,version=<str>]` ::
+`smbios1`: `[family=<string>] [,manufacturer=<string>] [,product=<string>] [,serial=<string>] [,sku=<string>] [,uuid=<UUID>] [,version=<string>]` ::
Specify SMBIOS type 1 fields.
Reference to unused volumes.
-`usb[n]`: `[host=]<HOSTUSBDEVICE|spice> [,usb3=<yes|no>]` ::
+`usb[n]`: `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
Configure an USB device (n is 0 to 4). This can be used to
pass-through usb devices to the guest. HOSTUSBDEVICE syntax is:
independent displays you want, Linux guests can add displays them self. You
can also run without any graphic card, using a serial device as terminal.
-`virtio[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<on|off>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<count>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<drive format>] [,heads=<count>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<off|on>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<count>] [,serial=<serial>] [,snapshot=<on|off>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
+`virtio[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
Use volume as VIRTIO hard disk (n is 0 to 15).
-`watchdog`: `[action=<reset|shutdown|poweroff|pause|debug|none>] [,[model=]<i6300esb|ib700>]` ::
+`watchdog`: `[[model=]<i6300esb|ib700>] [,action=<reset|shutdown|poweroff|pause|debug|none>]` ::
Create a virtual hardware watchdog device. Once enabled (by a guest
action), the watchdog must be periodically polled by an agent inside the