GithubHelp home page GithubHelp logo

lxcenter / hypervm Goto Github PK

View Code? Open in Web Editor NEW
80.0 22.0 59.0 15.81 MB

Virtualization Manager for OpenVZ and Xen.

Home Page: https://groups.google.com/forum/#!forum/lxdevel

Shell 2.01% PHP 50.07% Perl 4.89% CSS 5.25% JavaScript 33.41% ASP 1.22% ColdFusion 1.07% Lasso 0.65% Python 0.62% C 0.62% Dart 0.05% OpenEdge ABL 0.14%

hypervm's Introduction

HyperVM

A complete virtualization manager. Some of the features:

  • OpenVZ and Xen virtualization support
  • Cross Datacenter Deployment
  • Distributed management via single console
  • Hierarchical client system
  • Web based graphic user interface
  • Intelligent IP handling
  • Traffic Shaping and Network management
  • Built in messaging system
  • Complete, stable API

and much, much more.

Install

Just follow this simple guide:

http://lxcenter.org/software/hypervm/hypervm-installation

Contributing

Please have a look at LxCenter's Coding Standards and Issue Tracker.

And don't forget our forums!

Licensing - AGPLv3

HyperVM, Server Virtualization GUI for OpenVZ and Xen

Copyright (C) 2000-2009	LxLabs
Copyright (C) 2009-2011	LxCenter

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

hypervm's People

Contributors

dterweij avatar shakaran avatar shazarlx avatar waltern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hypervm's Issues

Full RHEL6 / CentOS6 support

Currently both Xen and OpenVZ support doesn't work for current development version of hypervm. Supporting of RHEL6 / CentOS6 is required for new release of hypervm

{"message":"__error_cannot_find_the_resource_plan","return":"error"}

Hello,

Please what is the proper HyperVM Dev API URL used to change openvz VPS resource plan?
I used:
http://myservipishere:8888/webcommand.php?login-class=client&login-name=&login-password=&output-type=json&class=vps&name=aqjrzaab.vm&action=update&subaction=change_plan&v-newresourceplan=768mb&newresourceplan=768mb&resourceplan=768mb&v-plan_name=768mb

but no luck, returns: cannot_find_the_resource_plan

i wanted to ask if something changed in HyperVM Dev version (when comparing to Master) regarding resource plan change function?

Im asking because the HyperVM module i had created for HyperVM Master version, started showing error: cannot_find_the_resource_plan once i try to initiate VM plan change, when used on Dev version.

My HyperVM module is running this query to the server:
******&action=update&subaction=change_plan&v-newresourceplan=
(it is empty, no "v-newresourceplan")

This is the function that is used by my module:

function hypervm_ChangePackage($params) {
$result = lxlabs_get_via_json( $params["serversecure"], $params["serverip"], $params["serverusername"], $params["serverpassword"], "8888", "action=simplelist&resource=resourceplan" );
$result->result;

if ($list) {
foreach ($list as $key => $value) {
$plansarray[strtolower( $value )] = $key;
}
}

$result = $list = lxlabs_get_via_json( $params["serversecure"], $params["serverip"], $params["serverusername"], $params["serverpassword"], "8888", "class=vps&name=" . $params["username"] . ".vm&action=update&subaction=change_plan&v-newresourceplan=" . $plansarray[strtolower( $params["configoption2"] )] . "" );

if (lxlabs_if_error( $result )) {
return $result->message;
}

return "success";
}

This is part of my hypervm/hypervm/httpdocs/htmllib/phplib/lib/client/lxclient.php

$gbl->__ajax_refresh = true;
$tname = $param['newresourceplan'];
$parent = $this->getParentO();
$template = getFromAny(array($parent, $login), "resourceplan", $tname);
if (!$template) {
throw new lxException('cannot_find_the_resource_plan', 'nname', $this->nname);
}

Please how i need to tweak my code mentioned above so it allows changing of the VPS resource plan?

Thank You

What URL should i use instead of download.lxcenter.org/download/ ?

HyperVm installation (hypervm-install-master.sh) obviously can not connect offline server of the lxcenter.org:

Installing packages which lxlighttpd zip unzip hypervm-core-php curl yum-plugin-replace mysql mysql-server...
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile

  • base: mirror.23media.com
  • epel: mirrors.aliyun.com
  • extras: mirror.wiuwiu.de
  • soluslabs: repo-france-rbx.solusvm.com
  • updates: mirror.checkdomain.de
    http://download.lxcenter.org/download/update/centos-6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'download.lxcenter.org'"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: lxcenter-updates. Please verify its path and try again

Please which URL i should be using instead or how do i setup own repository? Thank you

Lxcenter.org not available

Hello,

installation instructions are not mentioned here, but instead im linked to lxcenter.org site which seems to not be working.
How to install HyperVM and what are requirements please?

Thank You

vswap on CentOS 6, how to skip privvmpages being added?

Hello,

i am using HyperVM 2.1.0 (dev) on CentOS 6 and i bet that when HyperVM creating new OpenVZ VPS, it is sending PRIVVMPAGES value to the vzctl and then i can find it inside VPS .conf file.

I would like to use vSWAP. Currently vSWAP is On (vzlist -o vswap,ctid), but when PRIVVMPAGES are defined for VPS, i face out of memory errors.


CT 3580 | HELD Bar% Lim%| MAXH Bar% Lim%| BAR | LIM | FAIL
-------------+---------------+---------------+-----+-----+------
kmemsize|19.3M 0.9% 0.9%|20.8M 1% 1%| 2G| 2G| -
lockedpages| - - - | - - - |19.5M|19.5M| -
privvmpages**| 500M 97% 97%| 512M 100% 100%| 512M| 512M| 1021
shmpages| 1.7M 0.7% 0.7%| 1.7M 0.7% 0.7%| 256M| 256M| -
numproc| 97 2% 2%| 129 2% 2%|4.88K|4.88K| -
physpages**| 151M 29% 29%| 169M 33% 33%| 512M| 512M| -
vmguarpages| - - - | - - - | 256M| - | -
oomguarpages|94.1M 36% - |94.1M 36% - | 256M| - | -

failcount only for PRIVVMPAGES even PHYSPAGES are on same value (512M)

[38265972.747821] CT: 3580: started
[38265977.127905] Fatal resource shortage: privvmpages, UB 3580.

So how can i prevent these errors, how to stop Hypervm adding PRIVVMPAGES to the VPS .conf file?

Also when i change resource plan for the VPS using HyperVM, the vswap is resetted from:
PHYSPAGES="131072"
to:
PHYSPAGES="0:unlimited"

even target resource plan do not have unlimited value for burst/guar. RAM

I found file /usr/local/lxlabs/hypervm/httpdocs/lib/vps/driver/vps__openvzlib.phps
https://github.com/lxcenter/hypervm/search?utf8=%E2%9C%93&q=--privvmpages

I tried to play with vzctl commands in that file and probably found the way to make HyperVM set PHYSPAGES and ignore PRIVVMPAGES (if vswap is supported)

here is the resulting/updated file:
vps__openvzlib.zip

inside is one more modification at line 920 and 922 where is reboot confirmation commented out in order for it to work with whmcs billing system module.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.