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
ab8c74aa
Commit
ab8c74aa
authored
Jun 27, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup embeded console code, add console for lxc containers
parent
bdcabcca
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
40 deletions
+61
-40
Makefile
www/manager/Makefile
+0
-1
VNCConsole.js
www/manager/VNCConsole.js
+45
-0
Config.js
www/manager/lxc/Config.js
+12
-0
Config.js
www/manager/qemu/Config.js
+4
-1
Console.js
www/manager/qemu/Console.js
+0
-38
No files found.
www/manager/Makefile
View file @
ab8c74aa
...
...
@@ -115,7 +115,6 @@ JSSRC= \
window/Migrate.js
\
window/MigrateAll.js
\
qemu/Monitor.js
\
qemu/Console.js
\
qemu/Summary.js
\
qemu/OSTypeEdit.js
\
qemu/ProcessorEdit.js
\
...
...
www/manager/VNCConsole.js
View file @
ab8c74aa
Ext
.
define
(
'
PVE.noVncConsole
'
,
{
extend
:
'
Ext.panel.Panel
'
,
alias
:
'
widget.pveNoVncConsole
'
,
nodename
:
undefined
,
vmid
:
undefined
,
consoleType
:
undefined
,
// lxc or kvm
initComponent
:
function
()
{
var
me
=
this
;
if
(
!
me
.
nodename
)
{
throw
"
no node name specified
"
;
}
if
(
!
me
.
vmid
)
{
throw
"
no VM ID specified
"
;
}
if
(
!
me
.
consoleType
)
{
throw
"
no console type specified
"
;
}
// always use same iframe, to avoid running several noVnc clients
// at same time (to avoid performance problems)
var
box
=
Ext
.
create
(
'
widget.uxiframe
'
,
{
id
:
"
vncconsole
"
});
Ext
.
apply
(
me
,
{
layout
:
{
type
:
'
fit
'
},
border
:
false
,
items
:
box
,
listeners
:
{
show
:
function
()
{
box
.
load
(
'
/?console=
'
+
me
.
consoleType
+
'
&novnc=1&vmid=
'
+
me
.
vmid
+
'
&node=
'
+
me
.
nodename
+
'
&resize=scale
'
);
}
}
});
me
.
callParent
();
}
});
PVE_vnc_console_event
=
function
(
appletid
,
action
,
err
)
{
//console.log("TESTINIT param1 " + appletid + " action " + action);
...
...
www/manager/lxc/Config.js
View file @
ab8c74aa
...
...
@@ -162,6 +162,18 @@ Ext.define('PVE.lxc.Config', {
});
}
if
(
caps
.
vms
[
'
VM.Console
'
])
{
me
.
items
.
push
({
title
:
gettext
(
'
Console
'
),
itemId
:
'
console
'
,
xtype
:
'
pveNoVncConsole
'
,
vmid
:
vmid
,
consoleType
:
'
lxc
'
,
nodename
:
nodename
});
}
if
(
caps
.
vms
[
'
VM.Console
'
])
{
me
.
items
.
push
([
{
...
...
www/manager/qemu/Config.js
View file @
ab8c74aa
...
...
@@ -181,7 +181,10 @@ Ext.define('PVE.qemu.Config', {
me
.
items
.
push
({
title
:
gettext
(
'
Console
'
),
itemId
:
'
console
'
,
xtype
:
'
pveQemuConsole
'
xtype
:
'
pveNoVncConsole
'
,
vmid
:
vmid
,
consoleType
:
'
kvm
'
,
nodename
:
nodename
});
}
...
...
www/manager/qemu/Console.js
deleted
100644 → 0
View file @
bdcabcca
Ext
.
define
(
'
PVE.qemu.Console
'
,
{
extend
:
'
Ext.panel.Panel
'
,
alias
:
'
widget.pveQemuConsole
'
,
initComponent
:
function
()
{
var
me
=
this
;
var
nodename
=
me
.
pveSelNode
.
data
.
node
;
if
(
!
nodename
)
{
throw
"
no node name specified
"
;
}
var
vmid
=
me
.
pveSelNode
.
data
.
vmid
;
if
(
!
vmid
)
{
throw
"
no VM ID specified
"
;
}
var
myid
=
"
vncconsole
"
;
var
box
=
Ext
.
create
(
'
widget.uxiframe
'
,
{
id
:
myid
});
Ext
.
apply
(
me
,
{
layout
:
{
type
:
'
fit
'
},
border
:
false
,
items
:
box
,
listeners
:
{
show
:
function
()
{
box
.
load
(
'
/?console=kvm&novnc=1&vmid=
'
+
vmid
+
'
&node=
'
+
nodename
+
'
&resize=scale
'
);
}
}
});
me
.
callParent
();
}
});
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