[pve-devel] [PATCH manager] Add the possibility to create an unprivileged container at creation time in the GUI.

Emmanuel Kasper e.kasper at proxmox.com
Wed Nov 30 15:19:38 CET 2016


The setting is afterwards displayed as a read only option in the option time
---
 www/manager6/lxc/CreateWizard.js | 6 ++++++
 www/manager6/lxc/Options.js      | 7 ++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/www/manager6/lxc/CreateWizard.js b/www/manager6/lxc/CreateWizard.js
index ab6c7ac..7c4a722 100644
--- a/www/manager6/lxc/CreateWizard.js
+++ b/www/manager6/lxc/CreateWizard.js
@@ -207,6 +207,12 @@ Ext.define('PVE.lxc.CreateWizard', {
 			    fieldLabel: gettext('Hostname'),
 			    skipEmptyText: true,
 			    allowBlank: true
+			},
+			{
+			    xtype: 'pvecheckbox',
+			    name: 'unprivileged',
+			    value: '',
+			    fieldLabel: gettext('Unprivileged container'),
 			}
 		    ],
 		    column2: column2,
diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js
index 8c45fb1..57d08ae 100644
--- a/www/manager6/lxc/Options.js
+++ b/www/manager6/lxc/Options.js
@@ -135,7 +135,12 @@ Ext.define('PVE.lxc.Options', {
                         fieldLabel: gettext('Enabled')
                     }
                 } : undefined
-	    }
+	    },
+	    unprivileged: {
+		header: gettext('Unprivileged container'),
+		renderer: PVE.Utils.format_boolean,
+		defaultValue: 0,
+	    },
 	};
 
 	var baseurl = 'nodes/' + nodename + '/lxc/' + vmid + '/config';
-- 
2.1.4





More information about the pve-devel mailing list