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
f7b706cb
Commit
f7b706cb
authored
Dec 02, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use new AbstractMigrate.pm
parent
25ac9b68
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
175 additions
and
396 deletions
+175
-396
OpenVZ.pm
PVE/API2/OpenVZ.pm
+13
-1
OpenVZMigrate.pm
PVE/OpenVZMigrate.pm
+159
-373
VNCConsole.js
www/manager/VNCConsole.js
+3
-22
No files found.
PVE/API2/OpenVZ.pm
View file @
f7b706cb
...
...
@@ -320,6 +320,16 @@ __PACKAGE__->register_method({
my
$cmd
=
['
vzctl
',
'
--skiplock
',
'
--quiet
',
'
set
',
$vmid
,
'
--applyconfig_map
',
'
name
',
'
--save
'];
run_command
(
$cmd
);
# reload config
my
$conf
=
PVE::OpenVZ::
load_config
(
$vmid
);
# and initialize quota
my
$disk_quota
=
$conf
->
{
disk_quota
}
->
{
value
};
if
(
!
defined
(
$disk_quota
)
||
(
$disk_quota
!=
0
))
{
my
$cmd
=
['
vzctl
',
'
--skiplock
',
'
quotainit
',
$vmid
];
run_command
(
$cmd
);
}
};
return
$rpcenv
->
fork_worker
(
$param
->
{
restore
}
?
'
vzrestore
'
:
'
vzcreate
',
...
...
@@ -1037,7 +1047,9 @@ __PACKAGE__->register_method({
my
$realcmd
=
sub
{
my
$upid
=
shift
;
PVE::OpenVZMigrate::
migrate
(
$target
,
$targetip
,
$vmid
,
$param
->
{
online
});
PVE::
OpenVZMigrate
->
migrate
(
$target
,
$targetip
,
$vmid
,
$param
);
return
;
};
...
...
PVE/OpenVZMigrate.pm
View file @
f7b706cb
This diff is collapsed.
Click to expand it.
www/manager/VNCConsole.js
View file @
f7b706cb
...
...
@@ -292,17 +292,7 @@ Ext.define('PVE.KVMConsole', {
vm_command
(
"
resume
"
);
}
},
{
text
:
gettext
(
'
Migrate
'
),
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.window.Migrate
'
,
{
vmtype
:
'
qemu
'
,
nodename
:
me
.
nodename
,
vmid
:
me
.
vmid
});
win
.
show
();
}
},
// Note: no migrate here, because we can't display migrate log
{
text
:
gettext
(
'
Console
'
),
handler
:
function
()
{
...
...
@@ -397,17 +387,8 @@ Ext.define('PVE.OpenVZConsole', {
});
}
},
{
text
:
gettext
(
'
Migrate
'
),
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.window.Migrate
'
,
{
vmtype
:
'
openvz
'
,
nodename
:
me
.
nodename
,
vmid
:
me
.
vmid
});
win
.
show
();
}
},
// Note: no migrate here, because we can't display migrate log
// and openvz migrate does not work if console is open
{
text
:
gettext
(
'
Console
'
),
handler
:
function
()
{
...
...
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