Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
3eeb2c56
Commit
3eeb2c56
authored
Jul 31, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow to use serial terminal as display
parent
6dc3c5c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
8 deletions
+39
-8
Utils.js
www/manager/Utils.js
+5
-1
DisplayEdit.js
www/manager/qemu/DisplayEdit.js
+34
-7
No files found.
www/manager/Utils.js
View file @
3eeb2c56
...
...
@@ -187,7 +187,11 @@ Ext.define('PVE.Utils', { statics: {
std
:
'
Standard VGA
'
,
vmware
:
'
VMWare compatible
'
,
cirrus
:
'
Cirrus Logic GD5446
'
,
qxl
:
'
SPICE
'
qxl
:
'
SPICE
'
,
serial0
:
'
Serial terminal 0
'
,
serial1
:
'
Serial terminal 1
'
,
serial2
:
'
Serial terminal 2
'
,
serial3
:
'
Serial terminal 3
'
},
render_kvm_language
:
function
(
value
)
{
...
...
www/manager/qemu/DisplayEdit.js
View file @
3eeb2c56
Ext
.
define
(
'
PVE.qemu.DisplayEdit
'
,
{
extend
:
'
PVE.window.Edit
'
,
vmconfig
:
undefined
,
initComponent
:
function
()
{
var
me
=
this
;
var
displayField
;
var
validateDisplay
=
function
()
{
var
val
=
displayField
.
getValue
();
if
(
me
.
vmconfig
&&
val
.
match
(
/^serial
\d
+$/
))
{
if
(
me
.
vmconfig
[
val
]
&&
me
.
vmconfig
[
val
]
===
'
socket
'
)
{
return
true
;
}
return
"
Serial interface '
"
+
val
+
"
' is not correctly configured.
"
;
}
return
true
;
};
displayField
=
Ext
.
createWidget
(
'
DisplaySelector
'
,
{
name
:
'
vga
'
,
value
:
''
,
fieldLabel
:
gettext
(
'
Graphic card
'
),
validator
:
validateDisplay
});
Ext
.
apply
(
me
,
{
subject
:
gettext
(
'
Display
'
),
width
:
350
,
items
:
{
xtype
:
'
DisplaySelector
'
,
name
:
'
vga
'
,
value
:
''
,
fieldLabel
:
gettext
(
'
Graphic card
'
)
}
items
:
displayField
});
me
.
callParent
();
me
.
load
();
me
.
load
({
success
:
function
(
response
,
options
)
{
var
values
=
response
.
result
.
data
;
me
.
vmconfig
=
values
;
me
.
setValues
(
values
);
}
});
}
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment