lxcenter / hypervm Goto Github PK
View Code? Open in Web Editor NEWVirtualization Manager for OpenVZ and Xen.
Home Page: https://groups.google.com/forum/#!forum/lxdevel
Virtualization Manager for OpenVZ and Xen.
Home Page: https://groups.google.com/forum/#!forum/lxdevel
Add new database flag for #49 to the upcp/cleanup process.
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
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
Beta version installed successfully on centos 6.5 minimal as per http://wiki.lxcenter.org/index.php/Main_Page#Centos_6_Hypervm_Beta_and_xen_installation
But control panel not accessible, even if iptables disabled/stoped
Please help me
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.
Does hypervm has more features and functionalities compare to solusvm?
I am looking for the best open source stable vps managment software with future upgrade and same features as http://solusvm.com/
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
From http://project.lxcenter.org/issues/301
"When you have to (force) delete a non working slave server and that one does had active VM's, then you can not delete the VM's from te list at the master.
Error returned from Master:
Alert: machine_doesnt_exist_in_db [slaveserver.domain.com]
How to delete it in meanwhile?"
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.