LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » HyperVM Community Support » Knowledge Base » Preparing a node for configuring vps
Preparing a node for configuring vps [message #3243] Fri, 26 January 2007 03:54 Go to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion

This is a basic tutorial on how to prepare a server for hosting vpses. We will try to highlight some of the common mistakes made when running a vps host. First the obligatory DONTS.

DONT run any of the control panels (cpanel/plesk/lxadmin) on the node. If you want to run a hosting business, please create a separate vps for that. The overhead of xen/openvz is too low to warrant running a complex control panel on the node. If the control panel crashes or gets compromised, that will bring down all your vpses with it.

DONT Run any service other than hyperVM. Run ntsysv and clear out every service other than sshd, network and hypervm. Just run ntsysv, and you can select the list of services from a graphical list, and disable everything except the primary ones. On the master, you will need mysql too.

DONT add the the ips dedicated for vpses to the nodes. You have to make sure that the DC hasn't added all the ips that has been assigned to you the node, and remove them if they are. This has been recurring problem, where you will see that suddenly the vpses are not responding because the node has been configured with the ips meant for them.


The recommendations:

DO have only a single master to control many slaves, since hyperVM now has a lot of features that are meant to take advantage of this setup, and if configured this way, it can save you a lots and lots of work. For instance, in hyperVM you need to setup the ostemplates only on the master and nowhere else, the slaves will automatically download them when they need it.

DONT have multiple masters. We will not support any configuration issues arising from having many masters. A single master controlling many slaves is the correct way to install hyperVM. HyperVM clustering is transparent, and will work seamlessly.

HyperVM clustering is optimized to work efficiently across Data Centers. You can have master in one DC and slave in another, the communication protocol is efficient enough to work without any problem.




[Updated on: Wed, 20 February 2008 00:53] by Moderator

Report message to a moderator

Re: Preparing a node for configuring vps [message #3245 is a reply to message #3243] Fri, 26 January 2007 09:20 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
More DOs.

DO use a 64 bit processor. The 32 bit system can only recognize 2GB of RAM. There is a AWE extension for 32bit which enables the 32 bit processor to access more Memory, but it has significant overheads, so ultimately it is better you stick with 64 bit itself. There were some minor 64<=>32 bit issues with the linux kernel, but this has been very properly solved in hyperVM, and we currently have most of our customers running their vpses for over 4 months without any issue on 64bit systems.


DO Take a remote backup of your master database. It is very simple and the total size is around 200KB or so. Go to 'admin home' -> advanced -> 'config self backup' and setup and ftp server where the master database backup will be uploaded to. This will save you a lot of trouble if the master database corrupted. Since the master contains quite a lot of important information, it is always recommended that you a remote backup of it alone, especially considering the small size of the file.




[Updated on: Fri, 26 January 2007 10:53] by Moderator

Report message to a moderator

Re: Preparing a node for configuring vps [message #5097 is a reply to message #3243] Sun, 15 April 2007 01:32 Go to previous messageGo to next message
Anthony is currently offline Anthony  Canada
Messages: 45
Registered: April 2007
Member
To be sure, the OS can be 64bit, but the VPS' os can be 32 bit, correct? There are still some issues with cPanel on 64 bit on the vps' and I'd rather have them all run as 32 bit for now.
Re: Preparing a node for configuring vps [message #5098 is a reply to message #5097] Sun, 15 April 2007 01:38 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Quote:


>
>
> To be sure, the OS can be 64bit, but the VPS' os can be 32 bit, correct? There are still some issues with cPanel on 64 bit on the vps' and I'd rather have them all run as 32 bit for now.



Yes. The normal method is to run 32 bit vps on 64bit host.

Thanks.


Re: Preparing a node for configuring vps [message #16700 is a reply to message #5098] Mon, 12 November 2007 10:19 Go to previous messageGo to next message
hpham is currently offline hpham  Vietnam
Messages: 390
Registered: November 2007
Location: the net
Master
Lxhelp wrote on Sun, 15 April 2007 12:38

The normal method is to run 32 bit vps on 64bit host.


Is it correctly with Xen? I have heard someone said that with Xen 64-bit hosts cannot run 32-bit guests?
Re: Preparing a node for configuring vps [message #16730 is a reply to message #3243] Tue, 13 November 2007 09:30 Go to previous messageGo to next message
hpham is currently offline hpham  Vietnam
Messages: 390
Registered: November 2007
Location: the net
Master
any confirmation for Xen pls? I am going to order hardware soon, and want to know I should install 32 or 64-bit OS.

Is there any trouble to install guests 32-bit OS on Xen 64-bit node?

Re: Preparing a node for configuring vps [message #16742 is a reply to message #3243] Tue, 13 November 2007 16:36 Go to previous messageGo to next message
Marie is currently offline Marie  France
Messages: 511
Registered: June 2007
Location: France
Master

At this time, Xen won't support to run 32bit vps on a 64bit node so you need to load your node with a 32bit OS for now, sorry Smile




Marie
Need Further Assistance ? Here you go !
English, french and spanish support Smile
Re: Preparing a node for configuring vps [message #16766 is a reply to message #3243] Wed, 14 November 2007 11:28 Go to previous messageGo to next message
MarKus is currently offline MarKus  United States
Messages: 78
Registered: June 2007
Location: US
Valuable Member
according to this xen faq:
http://wiki.xensource.com/xenwiki/XenFaq
the issue of 32 xen vps on a 64bit os has been solved? Can I get a confirm that this will work now with hypervm (32bit os vps on a 64bit os node for xen vps)
Re: Preparing a node for configuring vps [message #16905 is a reply to message #16766] Sun, 18 November 2007 20:20 Go to previous messageGo to next message
hpham is currently offline hpham  Vietnam
Messages: 390
Registered: November 2007
Location: the net
Master
MarKus wrote on Wed, 14 November 2007 23:28

according to this xen faq:
http://wiki.xensource.com/xenwiki/XenFaq
the issue of 32 xen vps on a 64bit os has been solved? Can I get a confirm that this will work now with hypervm (32bit os vps on a 64bit os node for xen vps)


I would like to know to. Is there any one here can confirm it please? Which version of Xen are you using?

Re: Preparing a node for configuring vps [message #16906 is a reply to message #16905] Mon, 19 November 2007 04:53 Go to previous messageGo to next message
Marie is currently offline Marie  France
Messages: 511
Registered: June 2007
Location: France
Master

hpham wrote on Mon, 19 November 2007 02:20


I would like to know to. Is there any one here can confirm it please? Which version of Xen are you using?



Name : xen
Arch : i386
Version: 3.0.3
Release: 25.0.4.el5
Size : 5.0 M
Repo : installed
Summary: Xen is a virtual machine monitor

There is currently no yum update for Xen and I'm not sure Hypervm would support a manual update. Lxhelp ?


Marie
Need Further Assistance ? Here you go !
English, french and spanish support Smile
Re: Preparing a node for configuring vps [message #17536 is a reply to message #16766] Tue, 04 December 2007 23:59 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
It is only supported in Xen 3.1, and the redhat still uses 3.0.3 version.

Thanks.


On Wed, Nov 14, 2007 at 04:28:19PM -0000, mark r wrote:
>
>
> according to this xen faq:
> http://wiki.xensource.com/xenwiki/XenFaq
> the issue of 32 xen vps on a 64bit os has been solved? Can I get a confirm that this will work now with hypervm (32bit os vps on a 64bit os node for xen vps)
>
> --
> Our HyperVM VPS Site- http://www.wsservers.com
Re: Preparing a node for configuring vps [message #23098 is a reply to message #3243] Sun, 24 February 2008 07:09 Go to previous messageGo to next message
JFOC is currently offline JFOC  Indonesia
Messages: 88
Registered: February 2008
Valuable Member

Hello lxhelp, do you have quick step for creating LVM to use Xen? Because my data center staff cannot doing this.

Thank you


HyperVM/Kloxo PHP-Security Developer
-------------------------------------------
Unmetered Web Hosting - http://www.jfoc.net

Server Hosting Support a.k Outsourced Server Hosting Support - http://www.serverhostingsupport.com
Re: Preparing a node for configuring vps [message #23133 is a reply to message #23098] Sun, 24 February 2008 11:26 Go to previous messageGo to next message
Marie is currently offline Marie  France
Messages: 511
Registered: June 2007
Location: France
Master

JFOC wrote on Sun, 24 February 2008 13:09

Hello lxhelp, do you have quick step for creating LVM to use Xen? Because my data center staff cannot doing this.

Thank you


A nice Howto here : http://www.linuxconfig.org/Linux_lvm_-_Logical_Volume_Manage r

Good luck Smile



Marie
Need Further Assistance ? Here you go !
English, french and spanish support Smile
Re: Preparing a node for configuring vps [message #25247 is a reply to message #3243] Sun, 09 March 2008 16:27 Go to previous messageGo to next message
jhamon is currently offline jhamon  United Kingdom
Messages: 357
Registered: May 2006
Master
Hi,

I'm going to be deploying a new host node soon and want to try to set everything up to my best advantage

I'm going to get CENTOS 5_x64 installed

I've been reading various posts on the Forums and would like some various advice about setting things up.

I'm going to make this my master node so will need to set everything up. I've read on the forum about creating a master in a VPS so it is easy in the future to move this to another server.

Not sure exactly how to set this up. Is it a case of installing HypverVM as master but with no virtualisation?

I also want to make use of reversedns I've tried this out by creating creating a new openvz vps and adding the reversedns role.

I can see the files on the VPS but if I tracert or lookup the RDNS the correct information isn't being shown. Is it best to make this VPS openvz or xen?

Thanks for your help and advice with this.






Jonathan Hamon
FREE for UK Businesses - Never Miss Another Call
Visit http://www.0844callmanager.com to get your FREE number and call management service
Re: Preparing a node for configuring vps [message #29357 is a reply to message #25247] Fri, 11 April 2008 04:10 Go to previous messageGo to next message
nibb is currently offline nibb  Paraguay
Messages: 49
Registered: February 2008
Member
Can you point out what services need the master to run so i disable the others?

When i run ntsysv i see allot of services activated. You only said sshd, network, mysql and hypervm need to run. I suppose you forgot vz and others. What are the ones needed so i disable the rest?

Thanks
Re: Preparing a node for configuring vps [message #29554 is a reply to message #3243] Mon, 14 April 2008 17:33 Go to previous messageGo to next message
sdebenham is currently offline sdebenham  United Kingdom
Messages: 18
Registered: February 2008
Member
Lxhelp wrote on Fri, 26 January 2007 03:54


DONT Run any service other than hyperVM. Run ntsysv and clear out every service other than sshd, network and hypervm. Just run ntsysv, and you can select the list of services from a graphical list, and disable everything except the primary ones. On the master, you will need mysql too.



...on my basic Centos5 install, I have the following enabled:

acpid, anacron, apmd, atd, , auditd, autofs, bluetooth, cpuspeed, crond, cups, firstboot, gpm, haldaemon, hidd, ip6tables, iptables, irqbalance, mcstrans, mdmonitor, messagebus, microcode_ctl, netfs, network, nfslock, pcscd, portmap, readahead_early, restorecond, rpcgssd, rpcidmapd, sendmail, smartd, sshd, syslog and yum-updatesd


...so I should switch them all off, apart from sshd, network, hypervm and mysql, as this one server will carry all the VPS's locally to it

...just wish to confirm before I accidentally switch something off that I shouldn't!
Re: Preparing a node for configuring vps [message #29952 is a reply to message #3245] Wed, 23 April 2008 11:59 Go to previous messageGo to next message
SoftDux is currently offline SoftDux  South Africa
Messages: 344
Registered: April 2008
Location: Johannesburg, South Afric...
Senior Member
Lxhelp wrote on Fri, 26 January 2007 16:20

More DOs.

DO use a 64 bit processor. The 32 bit system can only recognize 2GB of RAM. There is a AWE extension for 32bit which enables the 32 bit processor to access more Memory, but it has significant overheads, so ultimately it is better you stick with 64 bit itself. There were some minor 64<=>32 bit issues with the linux kernel, but this has been very properly solved in hyperVM, and we currently have most of our customers running their vpses for over 4 months without any issue on 64bit systems.



This isn't quite true. 32bit supports up to 3.8GB RAM, and with the PAE kernel upto 64GB.
Re: Preparing a node for configuring vps [message #31472 is a reply to message #3243] Fri, 06 June 2008 20:38 Go to previous messageGo to next message
rfhmendes  Portugal
Messages: 121
Registered: March 2008
Valuable Member
Don't forget to use sendmail in your master and active this service to send you email notifications. If you don't have this service running, you won't receive any email notifications.


Regards,
R. Mendes
Re: Preparing a node for configuring vps [message #31489 is a reply to message #3243] Sat, 07 June 2008 01:12 Go to previous messageGo to next message
rfhmendes  Portugal
Messages: 121
Registered: March 2008
Valuable Member
xend service must be running in all xen servers or you cannot start any VM. xendomains service should be running to start automatically any VM created (when the servers boot).


Regards,
R. Mendes
Re: Preparing a node for configuring vps [message #31494 is a reply to message #3243] Sat, 07 June 2008 05:53 Go to previous messageGo to next message
nibb is currently offline nibb  Paraguay
Messages: 49
Registered: February 2008
Member
It would be so nice if someone puts a guide to prepare a server for Xen. I actually managed to install OpenVZ and then over it HyperVM pretty easy but I heard the story is different with Xen. Could someone put a guide on how to prepare a new server with Xen and HyperVM?
Re: Preparing a node for configuring vps [message #31495 is a reply to message #3243] Sat, 07 June 2008 06:52 Go to previous messageGo to next message
rfhmendes  Portugal
Messages: 121
Registered: March 2008
Valuable Member
You need to use the installation GUI (Graphical Mode not Text Mode). It is the easier way to do it, at least for me.

Inside the partition scheme... choose custom (when it asks about if you want the default scheme etc). After that, create the usual "/" partition, "swap" partition and "/boot". (I don't personally recommend to have "/" and "swap" partitions inside a LVM, because I already had problems with this - but notice that it is a personal choice, maybe for you can work well).

Choose 500mb for the boot partition (like Lxlabs says in the installation web page), use the double space of your RAM for swap partition (personal choice too, Lxlabs recommendation is to use 1gb of space for swap), also 10Gb to "/" partition or add more space to "/" partition if you want to add more templates etc). If you do like Lxlabs says (creating the partitions "/" and "swap" inside the LVM - I tell you later after 2 steps).

After creating the usual partitions, create a new one called LVM (in the same place you create "swap", "/" and "/boot"). Configure it to occupy the rest of the disk. If you have more disks, you must also create new partitions for LVM and also configure it to occupy the rest of the disk - do as you wish. After that in the up right corner you can see the LVM button. Click on it.

Create a new group with whatever name. The default name should do it very well. In this window it is where you create volume groups. You can add one or more partitions (that you created before called LVM Partitions) to the Volume Groups, do as you wish. You can also, create as much volume groups as you wish and select the space they occupy in the LVM partitions. After you add the volume groups, you are OK to continue installing CentOS as you wish. Now, Xen VMs can be created now.

For those who wants to install "/" and "swap" inside the LVM read this. Now that you created the group volumes, you can create now the "/" and "swap" partitions with whatever space you want. It is almost like creating them (in the normal way). Again, in the up right corner you can see the LVM button, click on it. You ill see the "new" bottom... click on it (I think you may need select what group you want to install the partition). After that you can decide what you want... "/", "swap" or whatever (don't remember very well what kind of options are available and how it is perfectly done), also you can decide here the amount of space to occupy for each partition you create and also if you want ext2 or ext3. After that, they are going to be created inside the LVM. With LVM you can through the shell, resize the partitions very easily. Create, remove... add a disk and add a new partition to a group etc... there are a lot of possibilities with LVM and types of groups. You should really read the pdf that contains every information an IT needs to know.

You can learn much more about it here: " http://www.centos.org/docs/5/html/5.1/pdf/Cluster_Logical_Vo lume_Manager.pdf".

After you read that pdf... you can fully dominate LVM through shell. I read it... and I didn't regret it, I learned. Smile

This way it is the my preferred way to do it, I learn it for myself without any kind of help from anyone (after that I read the documentation to dominate LVM through shell).

If you can't use the installation GUI, then, you really must read that documentation. It is everything in there, you can't miss that.

I hope I helped most of the people here with issues installing HyperVM Xen. I typed all of this very fast because I'm running out of time. Any kind of correction that is needed to my text let me know - so I can make the needed corrections to make this the most accurate possible.

Also, I must remind that my English is not 100% perfect (maybe not even 50%, so, I apologize about it). Cool


Thanks,
R. Mendes

[Updated on: Sat, 07 June 2008 07:06]

Report message to a moderator

Re: Preparing a node for configuring vps [message #31497 is a reply to message #31495] Sat, 07 June 2008 08:41 Go to previous messageGo to next message
nibb is currently offline nibb  Paraguay
Messages: 49
Registered: February 2008
Member
Thanks. Yes I will use text mode or console mode. Thats basically on how to prepare the server, how about the steps of actually installing then xen and hypervm? I thought you have to boot the machine with the xen disk and install there Sad
Re: Preparing a node for configuring vps [message #31499 is a reply to message #31497] Sat, 07 June 2008 10:15 Go to previous messageGo to next message
rfhmendes  Portugal
Messages: 121
Registered: March 2008
Valuable Member
nibb wrote on Sat, 07 June 2008 13:41

Thanks. Yes I will use text mode or console mode. Thats basically on how to prepare the server, how about the steps of actually installing then xen and hypervm? I thought you have to boot the machine with the xen disk and install there Sad



You don't need to do that (boot the machine with the xen disk), when you use the automated script from lxlabs, the script install everything needed.

Anyway, I ill try to help the most I can with details, so, every new user to lxlabs, ill find it helpful. I ask Lxlabs or someone else that finds something wrong, to correct me, please (so I can edit the text etc).

You really should use the normal way (using the graphical installation and actually the best way to do it, since it is more complete than the text mode Cool - anyway do as you wish ) After the installation of CentOS, inside the shell you ill need to use the following commands:

Update first your CentOS:
yum -y update


Check if you have "nano" and "wget" installed by doing this:
yum list nano wget


if you are using the 32bit arch, you ill find here 2 lines starting like this, "nano.i386" and another one "wget.i386"... at the end of them, you ill find the word: "installed" if the packages are installed. if your arch is 64bit, instead of getting "*.i386" you ill find something else, replace it for what the yum command shows to you. the symbol "*" means whatever package name.

If you didn't find that word (installed) at the end of those lines, then run this:
yum -y install nano.i386 wget.i386


(note that it is not supposed to run any kind of driver for several reasons (xen and/or openvz) on hypervm master. use xen or openvz with hypervm slave - thats the right way) so if you are installing the hypervm master (only with hypervm master), add "sendmail.i386" to the list of packages to check if needs to be installed or not and if needs, just add a "{space}sendmail.386" to the last command above. "{space} = to press space".

If you have them installed already, run this:
nano /etc/sysconfig/selinux


In this text file you ill find the following parameter:
SELINUX=enforcing


Change it to:
SELINUX=disabled


After changing the file press "CTRL+X" to exit. Press "Y" to save. Press "Enter" to save with the same name.

After this, run:
cd

setenforce 0


to install hypervm master, download this:
wget http://download.lxlabs.com/download/hypervm/production/hypervm-install-master.sh


to install hypervm slave, just change the word "master" to "slave".

check if you have ntsysv installed with the command:
yum list ntsysv


just like before, if you need to install it, run:
yum -y install ntsysv.i386


after this, run this if you are installing hypervm master with the possibility to run xen on it:
sh hypervm-install-master.sh --virtualization-type=xen


if you don't want to run xen on it, just change "xen" to "NONE"... notice the capitalized word, it is important that.

if you are installing on a slave server, then install hypervm slave, change on the command "master" to "slave" and you are ok.

After running the script... at the end... run this:
nano /etc/grub.conf


Edit the parameter: "default=1" to "default=0". CTRL+X to exit. press "Y" to save and then "enter" to confirm the filename is the same.

Now, run:
cd /usr/local/lxlabs/hypervm/httpdocs/

lphp.exe ../bin/misc/fixcentos5xen.php


now, lets restart.
shutdown -r now


after the restart and enter your root password, run this:
ntsysv


with the space or enter, unselect the packages or select them. with the tab you can choose OK or CANCEL.

Now, if you are running a master without any driver (xen or openvz), then.. unselect everything except sshd, network, hypervm and sendmail. The rest you can safely unselect.

If you are running master with the xen driver, then... unselect everything except sshd, network, hypervm, xend, sendmail and xendomains.

If you are going to run a slave with the xen driver, then just unselect everything except sshd, network, hypervm, xend and xendomains.

ok, then:
shutdown -r now
(it is more easier to do shutdown -r now than turn off every service manually with the "service" command).

after this you should be able to access hypervm master through the web browser (something like: "https://yourip:8887" or if you configured a hostname, you can replace "yourip" with your hostname that ill work too if it is well configured (notice you need a domain to do this and configure it properly).

If you had configure everything properly (including the LVM), xen ill work very well, if you didn't configure LVM properly, then you should start to read the pdf above and learn more about it.

I think I didn't forget anything... and every command etc is correct, if you notice something that shouldn't happen let me know so I can see if it is wrong to correct it! Smile

Hope this helps the most novice users. Cool



Regards,
R. Mendes
Re: Preparing a node for configuring vps [message #32299 is a reply to message #3245] Sat, 28 June 2008 14:11 Go to previous messageGo to next message
shanlar is currently offline shanlar  United States
Messages: 4
Registered: June 2008
Member
Lxhelp wrote on Fri, 26 January 2007 06:20



DO use a 64 bit processor. The 32 bit system can only recognize 2GB of RAM. There is a AWE extension for 32bit which enables the 32 bit processor to access more Memory, but it has significant overheads, so ultimately it is better you stick with 64 bit itself. There were some minor 64<=>32 bit issues with the linux kernel, but this has been very properly solved in hyperVM, and we currently have most of our customers running their vpses for over 4 months without any issue on 64bit systems.



If I still HyperVM on a 32 bit box, is there anything I need to do for it access the RAM beyond 2GB?
Re: Preparing a node for configuring vps [message #32300 is a reply to message #32299] Sat, 28 June 2008 14:16 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Install, ovzkernel-PAE

 
 yum -y install ovzkernel-PAE
 


thanks.


On Sat, Jun 28, 2008 at 06:11:57PM -0000, shanlar wrote:
>
>
> Lxhelp wrote on Fri, 26 January 2007 06:20
> > DO use a 64 bit processor. The 32 bit system can only recognize 2GB of RAM. There is a AWE extension for 32bit which enables the 32 bit processor to access more Memory, but it has significant overheads, so ultimately it is better you stick with 64 bit itself. There were some minor 64<=>32 bit issues with the linux kernel, but this has been very properly solved in hyperVM, and we currently have most of our customers running their vpses for over 4 months without any issue on 64bit systems.
Re: Preparing a node for configuring vps [message #32303 is a reply to message #3243] Sat, 28 June 2008 15:12 Go to previous messageGo to next message
rfhmendes  Portugal
Messages: 121
Registered: March 2008
Valuable Member
I have installed 32bit centos 5.1 and installed hypervm on the server. He detects the full 8gb ram I have on the server without any problem and I didn't done anything. I don't see any kind of significant overhead at the moment either.
Re: Preparing a node for configuring vps [message #32304 is a reply to message #31497] Sat, 28 June 2008 15:16 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
There is a problem regarding xen and some specific motherboards. Xen is supposed to automatically recognize full RAm, but doesn't work on some motherboards. It is a linux kernel bug, and for now, motherboard replacement is the only way.

thanks.


On Sat, Jun 07, 2008 at 12:41:25PM -0000, Nibb wrote:
>
>
> Thanks. Yes I will use text mode or console mode. Thats basically on how to prepare the server, how about the steps of actually installing then xen and hypervm? I thought you have to boot the machine with the xen disk and install there :(
Re: Preparing a node for configuring vps [message #32554 is a reply to message #32300] Tue, 01 July 2008 22:54 Go to previous messageGo to next message
shanlar is currently offline shanlar  United States
Messages: 4
Registered: June 2008
Member
Should I run this command for an OpenVZ box, or is this a Xen only recommendation?
Re: Preparing a node for configuring vps [message #32555 is a reply to message #32554] Tue, 01 July 2008 22:56 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
It is for openvz. For xen, the kernel is PAE.

thanks.


On Wed, Jul 02, 2008 at 02:54:41AM -0000, shanlar wrote:
>
>
> Should I run this command for an OpenVZ box, or is this a Xen only recommendation?
Re: Preparing a node for configuring vps [message #32556 is a reply to message #32555] Tue, 01 July 2008 23:01 Go to previous messageGo to next message
shanlar is currently offline shanlar  United States
Messages: 4
Registered: June 2008
Member
So for OpenVZ I should run:

yum -y install ovzkernel-PAE


Is this correct? You said for Xen it is PAE, which is the command you told me to run.
Re: Preparing a node for configuring vps [message #32557 is a reply to message #32556] Tue, 01 July 2008 23:03 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Yes, this is for openvz. For xen, the default kernel is PAE


On Wed, Jul 02, 2008 at 03:01:47AM -0000, shanlar wrote:
>
>
> So for OpenVZ I should run:
>
Re: Preparing a node for configuring vps [message #37253 is a reply to message #3243] Wed, 10 September 2008 11:50 Go to previous messageGo to next message
markb14391 is currently offline markb14391  United States
Messages: 239
Registered: June 2008
Senior Member
Argh, I followed the instructions exactly for turning off all services except the ones specified. Now my VPSs show as disabled. When I click to enable them (in the HyperVM web interface), I get an error message like:

Could Not Start Vps, Reason: vzquota : (error) Quota getstat syscall for id 110: Inappropriate ioctl for device: vzquota on failed [3]:

Note that OpenVZ did not appear in the list of services, but hypervm did. And HyperVM service is running after reboot. So what's wrong and how do I fix it?

It's always concerning when I follow instructions to the letter and things break.

Thanks.
Re: Preparing a node for configuring vps [message #37262 is a reply to message #37253] Wed, 10 September 2008 17:25 Go to previous messageGo to next message
markb14391 is currently offline markb14391  United States
Messages: 239
Registered: June 2008
Senior Member
Found my error. (User error.)
Re: Preparing a node for configuring vps [message #37263 is a reply to message #37262] Wed, 10 September 2008 17:27 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Basically, someone is chdired into the vps's /vz/private directory. You have to find that session and kill it.

 
 lsof  | grep 'vz.private'
 


Will show who has the dir open.

thanks.

On Wed, Sep 10, 2008 at 09:25:13PM -0000, Mark Bailey wrote:
>
>
> Found my error. (User error.)
Re: Preparing a node for configuring vps [message #37265 is a reply to message #37263] Wed, 10 September 2008 17:28 Go to previous messageGo to next message
markb14391 is currently offline markb14391  United States
Messages: 239
Registered: June 2008
Senior Member
Yep, thank you! Smile
Re: Preparing a node for configuring vps [message #38284 is a reply to message #37265] Tue, 23 September 2008 18:23 Go to previous messageGo to next message
stev868 is currently offline stev868  Netherlands
Messages: 332
Registered: March 2008
Senior Member
Hi,

I do not understand this DONT:

DONT add the the ips dedicated for vpses to the nodes. You have to make sure that the DC hasn't added all the ips that has been assigned to you the node, and remove them if they are. This has been recurring problem, where you will see that suddenly the vpses are not responding because the node has been configured with the ips meant for them.

Can you please explain this?

Kind regards,

Steven
Re: Preparing a node for configuring vps [message #38285 is a reply to message #38284] Tue, 23 September 2008 18:26 Go to previous messageGo to next message
markb14391 is currently offline markb14391  United States
Messages: 239
Registered: June 2008
Senior Member
This means that you should not follow the normal procedure for adding those IP addresses directly to the host server (a process known as "binding") outside of HyperVM. Instead, the IP addresses should be added to a HyperVM IP pool so HyperVM can manage the IPs.

For example, my data center offers a procedure that is normally used to bind an IP address to the server. I simply ignore that procedure and add the IPs to HyperVM's IP pool. HyperVM takes care of everything necessary under the hood to bind the IPs.

If you bind them yourself without HyperVM, then HyperVM cannot use them properly.

I hope this helps.
Re: Preparing a node for configuring vps [message #48387 is a reply to message #3243] Sun, 30 November 2008 21:58 Go to previous messageGo to next message
Michele is currently offline Michele  Italy
Messages: 76
Registered: May 2008
Location: Italy
Valuable Member
I'm going to setup Hypervm for first time on a new server.
Here I have minimal centos 5.2 64bit
selinux=disabled
This would be a master

This is the disk info (I don't know to much on linux disk partitions):

Disk /dev/sda: 248.9 GB, 248999051264 bytes
255 heads, 63 sectors/track, 30272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 267 2040255 82 Linux swap / Solaris
/dev/sda3 268 30272 241015162+ 83 Linux

Is this a good config? Can I proceed to download hypervm?
Thanks
Re: Preparing a node for configuring vps [message #48405 is a reply to message #31499] Mon, 01 December 2008 05:24 Go to previous messageGo to next message
Michele is currently offline Michele  Italy
Messages: 76
Registered: May 2008
Location: Italy
Valuable Member
Hi, I'm using this step guide but have a problem
rfhmendes wrote on Sat, 07 June 2008 16:15

Now, run:
cd /usr/local/lxlabs/hypervm/httpdocs/

lphp.exe ../bin/misc/fixcentos5xen.php



lphp.exe ../bin/misc/fixcentos5xen.php
No module xenblk found for kernel 2.6.18-92.1.18.el5, aborting.

What now? Is this essential?
Thanks for help
Re: Preparing a node for configuring vps [message #48407 is a reply to message #3243] Mon, 01 December 2008 06:20 Go to previous messageGo to previous message
SoftDux is currently offline SoftDux  South Africa
Messages: 344
Registered: April 2008
Location: Johannesburg, South Afric...
Senior Member
It sounds like you're missing some XEN stuff, or you have changes the kernel without updating the rest of the stuff.

Do a "yum upgrade -y"
Previous Topic:Importing vpses from another master
Next Topic:APF and HyperVM
Goto Forum:
  


Current Time: Thu Jun 20 06:11:42 EDT 2013

Total time taken to generate the page: 0.01724 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software