From 62fb1d2d65d8b95f92717e568deffbab86b51c49 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 17 Aug 2015 12:49:45 +0200 Subject: [PATCH] lxc GUI: implement console mode option --- www/manager/lxc/Options.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/www/manager/lxc/Options.js b/www/manager/lxc/Options.js index 9afe12f4..56b62920 100644 --- a/www/manager/lxc/Options.js +++ b/www/manager/lxc/Options.js @@ -54,6 +54,27 @@ Ext.define('PVE.lxc.Options', { rootfs: { header: gettext('Root Disk'), defaultValue: 'no set' + }, + cmode: { + header: gettext('Console mode'), + defaultValue: 'tty', + editor: caps.vms['VM.Config.Options'] ? { + xtype: 'pveWindowEdit', + subject: gettext('Console mode'), + items: { + xtype: 'pveKVComboBox', + name: 'cmode', + deleteEmpty: true, + value: '', + data: [ + ['', PVE.Utils.defaultText + " (tty)"], + ['tty', "/dev/tty[X]"], + ['console', "/dev/console"], + ['shell', "shell"] + ], + fieldLabel: gettext('Console mode') + } + } : undefined } };