},
pve_detect_migrated_vm: function() {
- if (!(UI.consoletype === 'kvm' || UI.consoletype === 'openvz')) {
+ if (!(UI.consoletype === 'kvm' || UI.consoletype === 'lxc')) {
return;
}
success: function(result) {
var list = result.data;
list.every(function(item) {
- if ((item.type === 'qemu' || item.type === 'openvz') &&
+ if ((item.type === 'qemu' || item.type === 'lxc') &&
(item.vmid == UI.vmid)) {
var url = "?" + UI.urlEncode({
console: UI.consoletype,
if (UI.consoletype === 'kvm') {
baseUrl = '/nodes/' + UI.nodename + '/qemu/' + UI.vmid;
- } else if (UI.consoletype === 'openvz') {
- baseUrl = '/nodes/' + UI.nodename + '/openvz/' + UI.vmid;
+ } else if (UI.consoletype === 'lxc') {
+ baseUrl = '/nodes/' + UI.nodename + '/lxc/' + UI.vmid;
} else {
throw "unknown VM type";
}
{
text: gettext('Start'),
handler: UI.pveCmdStart,
- enable: { kvm: 1, openvz: 1 }
+ enable: { kvm: 1, lxc: 1 }
},
{
text: gettext('Shutdown'),
handler: UI.pveCmdShutdown,
- enable: { kvm: 1, openvz: 1 }
+ enable: { kvm: 1, lxc: 1 }
},
{
text: gettext('Stop'),
handler: UI.pveCmdStop,
- enable: { kvm: 1, openvz: 1 }
+ enable: { kvm: 1, lxc: 1 }
},
{
text: gettext('Reset'),
if (UI.vmname) {
title += " ('" + UI.vmname + "')";
}
- } else if (UI.consoletype === 'openvz') {
- var baseUrl = '/nodes/' + UI.nodename + '/openvz/' + UI.vmid;
+ } else if (UI.consoletype === 'lxc') {
+ var baseUrl = '/nodes/' + UI.nodename + '/lxc/' + UI.vmid;
url = baseUrl + '/vncproxy';
wsurl = baseUrl + '/vncwebsocket';
title = "CT " + UI.vmid;