[lxc-devel] [lxd/master] add type to specify the instance type on creation

xlmnxp on Github lxc-bot at linuxcontainers.org
Thu Jun 11 11:35:41 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 338 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200611/51300d0e/attachment.bin>
-------------- next part --------------
From b3463f939cbfe5aba4d040548a95e8a9219728ed Mon Sep 17 00:00:00 2001
From: Salem Yaslem <xlmnxp at outlook.sa>
Date: Thu, 11 Jun 2020 14:34:49 +0300
Subject: [PATCH] add type to specify the instance type on creation
 Signed-off-by: Salem Yaslem <s at sy.sa>

---
 doc/rest-api.md | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/doc/rest-api.md b/doc/rest-api.md
index 64f2ca69ab..34110c2596 100644
--- a/doc/rest-api.md
+++ b/doc/rest-api.md
@@ -517,6 +517,7 @@ Input (instance based on a local image with the "ubuntu/devel" alias):
     "profiles": ["default"],                                            // List of profiles
     "ephemeral": true,                                                  // Whether to destroy the instance on shutdown
     "config": {"limits.cpu": "2"},                                      // Config override.
+    "type": "container",                                                // Optional Can be: "virtual-machine", "container" by default it set to "container"
     "devices": {                                                        // Optional list of devices the instance should have
         "kvm": {
             "path": "/dev/kvm",
@@ -538,6 +539,7 @@ Input (instance based on a local image identified by its fingerprint):
     "profiles": ["default"],                                            // List of profiles
     "ephemeral": true,                                                  // Whether to destroy the instance on shutdown
     "config": {"limits.cpu": "2"},                                      // Config override.
+    "type": "container",                                                // Optional Can be: "virtual-machine", "container" by default it set to "container"
     "devices": {                                                        // Optional list of devices the instance should have
         "kvm": {
             "path": "/dev/kvm",
@@ -558,6 +560,7 @@ Input (instance based on most recent match based on image properties):
     "profiles": ["default"],                                            // List of profiles
     "ephemeral": true,                                                  // Whether to destroy the instance on shutdown
     "config": {"limits.cpu": "2"},                                      // Config override.
+    "type": "container",                                                // Optional Can be: "virtual-machine", "container" by default it set to "container"
     "devices": {                                                        // Optional list of devices the instance should have
         "kvm": {
             "path": "/dev/kvm",
@@ -582,6 +585,7 @@ Input (instance without a pre-populated rootfs, useful when attaching to an exis
     "profiles": ["default"],                                            // List of profiles
     "ephemeral": true,                                                  // Whether to destroy the instance on shutdown
     "config": {"limits.cpu": "2"},                                      // Config override.
+    "type": "container",                                                // Optional Can be: "virtual-machine", "container" by default it set to "container"
     "devices": {                                                        // Optional list of devices the instance should have
         "kvm": {
             "path": "/dev/kvm",
@@ -601,6 +605,7 @@ Input (using a public remote image):
     "profiles": ["default"],                                            // List of profiles
     "ephemeral": true,                                                  // Whether to destroy the instance on shutdown
     "config": {"limits.cpu": "2"},                                      // Config override.
+    "type": "container",                                                // Optional Can be: "virtual-machine", "container" by default it set to "container"
     "devices": {                                                        // Optional list of devices the instance should have
         "kvm": {
             "path": "/dev/kvm",
@@ -625,6 +630,7 @@ Input (using a private remote image after having obtained a secret for that imag
     "profiles": ["default"],                                            // List of profiles
     "ephemeral": true,                                                  // Whether to destroy the instance on shutdown
     "config": {"limits.cpu": "2"},                                      // Config override.
+    "type": "container",                                                // Optional Can be: "virtual-machine", "container" by default it set to "container"
     "devices": {                                                        // Optional list of devices the instance should have
         "kvm": {
             "path": "/dev/kvm",
@@ -649,6 +655,7 @@ Input (using a remote instance, sent over the migration websocket):
     "profiles": ["default"],                                                        // List of profiles
     "ephemeral": true,                                                              // Whether to destroy the instance on shutdown
     "config": {"limits.cpu": "2"},                                                  // Config override.
+    "type": "container",                                                            // Optional Can be: "virtual-machine", "container" by default it set to "container"
     "devices": {                                                                    // Optional list of devices the instance should have
         "kvm": {
             "path": "/dev/kvm",
@@ -676,6 +683,7 @@ Input (using a local instance):
     "profiles": ["default"],                                                        // List of profiles
     "ephemeral": true,                                                              // Whether to destroy the instance on shutdown
     "config": {"limits.cpu": "2"},                                                  // Config override.
+    "type": "container",                                                            // Optional Can be: "virtual-machine", "container" by default it set to "container"
     "devices": {                                                                    // Optional list of devices the instance should have
         "kvm": {
             "path": "/dev/kvm",
@@ -697,6 +705,7 @@ Input (using a remote instance, in push mode sent over the migration websocket v
     "profiles": ["default"],                                                        // List of profiles
     "ephemeral": true,                                                              // Whether to destroy the instance on shutdown
     "config": {"limits.cpu": "2"},                                                  // Config override.
+    "type": "container",                                                            // Optional Can be: "virtual-machine", "container" by default it set to "container"
     "devices": {                                                                    // Optional list of devices the instance should have
         "kvm": {
             "path": "/dev/kvm",


More information about the lxc-devel mailing list