So a few days ago we had the wonderful experience of migrating Virtual Private Servers from HyperVM to Virtuozzo. After spending endless hours attempting to migrate with vzmigrate, vzp2v and rsync we were getting very frustrated and were just about to give up. With this we decided to contact our datacenter SoftLayer who usually is able to help out. Like always they managed to rise to the challange and save the day providing us with a solution thay may not have been the best, but probably the only one. We must have searched the entire Internet looking for guides and after we found out a solution we knew it had to be posted so that the frustration we went through would never have to happen again. While this solution is a little timely and requires some work it actually isn't as bad as it sounds. Also we have created a little shell scripts that does a good amount of the migration for you. Below I have made step by step instructions so that there will no longer be "no answer" to this question. Also just to let you know we contacted Parallels and unfortunatly we were told that "I can not find anything in our knowledgebase". Basiclly useless support... they regurgiate their online knowledgebase to you. So below is the guide.
Pre-Requisites:
1. Download the Migration Kit zip that includes the shell scripts for the migration.
Migration Kit Download: [url]
2. You must create a new container in Virtuozzo for each HyperVM VPS that you would like to migrate. You MUST use the same VEID and I you need to keep the hostname the same. Also the OS TEMPLATE you pick DOES NOT MATTER!
If you are copying a customer HyperVM template don't worry cause the OS Template has no effect as far as I know. We transfered 30+ VPS's and the OS TEMPLATE made no difference.
3. Stop the container you created and mount it.
Code:
# vzctl stop <VEID>
#vzctl mount <VEID>
For LIVE MIGRATION SKIP TO STEP 4b.
4a. Stop the VPS on the source server (HyperVM) and mount it.
Code:
# vzctl stop <VEID>
#vzctl mount <VEID>
4b. Leaving the VPS running while migrating has a risk of posible database corruption. During our migration we did it this way and we experienced no issues so I think it is safe to say that in rare cases there may be problems but usually not.
5. Unzip the Migration Kit and be inside the folder where it was unziped.
6. Execute the shell script.
Code:
./migrate.sh <IP-ADDRESS>
IP-ADDRESS = the IP Address of the source VPS Node
7. Enter the CTID when the prompt requests it. (CTID = VEID)
8. Enter the root password for the server you are migrating from.
9. The script runs inside a screen session so to back out of it to do other things or start another migration you must hit:
Code:
CTRL + A + D
To list all the screens you have open.
Code:
# screen -ls
To enter a screen session
Code:
# screen -r SESS-ID
SESS-ID = the numbers before the period listed when you list all the open screens.
10. Once the migration is completed a broadcast message will alert you. Also if you check /var/log/migrate/migrate.log will contain all the migrations that have completed.
11. Once a migration has completed you must unmount the VPS and start it.
Code:
# vzctl umount <VEID>
# vzctl start <VEID>
If everything went "ok" than your VPS should start up without issues and should be just like it was on the old server. Lastly I would like to give credit to SoftLayer for the method of migration. Thanks again SoftLayer
Does anyone know how you can move an entire HyperVM (OpenVZ) Node to Virtuozzo. What has to be copied because we tried coping /vz/private/<VEID> and /etc/sysconfig/vz-scripts/<VEID> and we were not able to get the VE to start. We were getting an error:
Starting Container ... Can't mount: /vz/template:/vz/private/1110 /vz/root/1110: No such file or directory Container start failed
We tried rebooting the server as some other sites mention but still no luck. Any help is greatly appreciated because when we contacted Parallels they did not seem to have answer. (we are still waiting on a ticket reply though)
because Virtuozzo is charged, i think it may more easy to manage for admin and user, xen has it's own feature than Virtuozzo,but i feel hypervm is not very friendly to use ( my personal feeling)
I would like to know which clients would prefer Virtuozzo over HyperVM. Lets say there is a company offering Virtuozzo on there servers. However, there is another company offering HyperVM for a cheaper price. Neither companies are overselling. Would you be willing to pay the extra money for Virtuozzo? Or would you be happy with OpenVZ and HyperVM.
I have used hypervm for over a year and can say it's my favorite. With my jump to futurehost I did not realize they used Virtuozzo until I logged in for the first time.
First reaction was disappointment but the reality is it's not that bad. I am hoping someone can comment on one thing though.
On hypervm if I loaded it with several sites that were being given a load I would typically use between 480mb - 700mb at any given time (Apache, not lighttpd with lxadmin) On Virtuozzo when I loaded 4 somewhat heavy sites on the VPS I am using 88 megs of ram out of 1.5gb and I am once again using apache and lxadmin. If these 4 sites were on hypervm with lxadmin I know I would idle at around 350mb and with decent load roughly 650-700mb.
The sites seem to run good but I just can't figure why hypervm would require up to 7.5x's the resources.
As a provider of Virtual Private Servers im looking at ways to expand our business, I love the fact that we can offer our clients such a good service with the low price we presently charge but as a "Client" or "Potential Client" what would your views be on Virtuozzo?
Is it worth our business cutting our already low profits and going with Virtuozzo as our VPS Control Panel?
This is something we are very interested in doing and we feel it would be a big jump from the very low-end budget HyperVM/OpenVZ Approach.
Your Views on the Virtuozzo Vs HvM/OvZ would be very helpfull.
Would you rather buy a low priced Virtozzo VPS or an even lower priced HyperVM powered VPS? Im quite lost as to wether the financial investment would be worth it, I don't see how it wouldnt be as HyperVM is very buggy and really doesnt give a full sense of security in my personal opinion.
Its becoming more and more difficult to manage VPS using HyperVM and I am personally sick of the control panel design.
So does anyone have any great ideas to move all the VPS in HyperVM (OVZ) to Virtuozzo (PIM)?
If there isn't, I think I'll have to move all data across the orthodox way - which I clearly want to avoid.
PS: OVZ is on a different node from the VZ (duh!) but also will be utilizing different IP ranges. So, I think I need advice on changing IPs of the VEs too.
Is there any way to migrate a VPS from one HyperVM machine to another without the new machine being a slave or part of the same master as the other node? Maybe some kind of simple software that can copy it over? We have root access to the new node, and not the old one. We need to move 3 VPSs over. This is a personal favor for a friend, so I apologize for the lack of specific details. Long story short, he resells VPSs and needs to move hosts (again) as the one he is on turned crappy. He bought his own box @ LSN and wants to put these VPSs on there. It's currently set up as a HyperVM/OpenVZ box, same as the other box that's to be migrated *from*.
I currently own my own hosting company using another companies servers, which is good, and I've learned a lot of the ins and outs of hosting, but there's a great deal I need to learn before I start Hosting using my own servers. Can anyone provide some good resources or books that might help me get on with my mission?
I'm sure by now most of you have read the Web Server Optimization Guide by Shaw Networks. It came in handy for me when I was first starting out, I reduced my load & memory usage by tonnes. I thought I would make a new thread with an updated How-To.
[mysqlhotcopy] interactive-timeout To Save: CTRL-X Restart Service: "service mysqld restart" or "service mysql restart" or "/etc/rc.d/init.d/mysql restart"
Use Pico (pico /usr/local/apache/conf/httpd.conf) or Download via WinSCP for editing, Change the following settings in your httpd.conf...
Set "Timeout" value to "Timeout 60" Set "KeepAlive" to "KeepAlive on" Set "KeepAliveTimeout" to "KeepAliveTimeout 3" Set "MinSpareServers" to "MinSpareServers 16" Set "MaxSpareServers" to "MaxSpareServers 32" Set "MaxRequestsPerChild" to "MaxRequestsPerChild 256" Set "HostnameLookups" to "HostnameLookups Off"
Note: These settings will not work under all server environments its recommended that you tweak around with the numbers until your web server is running 100% please read Apache documentation before changing any settings so you know what you are changing [url]
To Save: CTRL-X Restart Service: "service httpd restart" or "/etc/rc.d/init.d/httpd restart"
Installing eAccelerator: eAccelerator is a further development from mmcache PHP Accelerator & Encoder. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. [url]
If you run CPanel please visit [url] for an auto-installer which will do all the hard work for you.
Run the following in SSH.
Code: cd /
mkdir ea
cd ea
wget [url]
bunzip2 eaccelerator-0.9.5.tar.bz2 tar -xvf eaccelerator-0.9.5.tar
We are about to open a data center in India. Can u please someone guide us to setup a data center. I require some article, reference for all setup and from scratch.
Is there a Windows GUI software for remote Admining servers that run on Red Hat Linux?
FYI: Currently I use Putty for remotely managing our servers.
So if you can recommend a GUI like Windows desktop software for remotely Admining servers running Red Hat Enterprise, I would very much appreciate that.
FYI: we have like 10 dedicated severs, so a desktop GUI that would allow one to monitor/manage multiple servers would be best. But if the GUI that you think is best can only remotely connect/manage one server at a time, requiring disconnecting to connect to the other server to Admin it, that is fine.
Also, I would love to hear what you think is the best book, best tutorial and reference guide for remotely Admining servers running RHEL? I am not looking for one of those books that are 1000 pages, but something that is a few 100 pages and can be read in 1 month assuming a few hours per day of reading.
I have had great difficulty in setting up OpenVPN, so I thought, when I finally do get it to work, I will write a HOWTO, so other can hopefully benefit…
This guide was done using a FC4 VPS, running on Xen, it will work on OpenVZ, all you need to do is ask your VPS provider to install “tun support”.
1.First of all get a few additional repos, If you already have your repos setup, skip this step
If you have Fedora 3, follow these steps,
[url]
If you have Fedora 4, follow these steps,
[url]
If you have Fedora 5, follow these steps,
[url]
If you have CentOS, follow the “additional third party CentOS repos”
[url]
Then issue these commands, each line is a new command, anything beginning with "#" are comments so dont try to execute those.
Code: yum update
yum install openssl openssl-devel # openssl and openssl-devel may be installed already… so don’t worry
2. Right, now you want to install OpenVPN, here are the commands,
Code: yum install openvpn -y
#Now check that it works
service openvpn start service openvpn stop
3. A few things to setup before you can make certificates, issue these commands,
Code:
find / -name "easy-rsa"
#you should get an output like this…
/usr/share/doc/openvpn-2.0.7/easy-rsa
#Now, make a copy of the easy-rsa directory, to /etc/openvpn/ ( make sure you #have put the right version number in i.e. mine was -2.0.7, change if needed)
4. You need to edit the vars file, located in /etc/openvpn/easy-rsa You can use any editor you like, I used vi.
Change the line
Code: export KEY_DIR=$D/keys to
Code: export KEY_DIR=/etc/openvpn/keys Also at the bottom of this file you will see something similar to this,
Code: export KEY_COUNTRY=US export KEY_PROVINCE=CA export KEY_CITY=SOMEWHERE export KEY_ORG="My Org" export KEY_EMAIL=me@mydomain.com Change this to your own values.
5. Now its time to make the certificates, enter these commands
Code: . ./vars
Code: ./clean-all
Code: ./build-ca # just hit enter to the defaults apart from Common Name, this must be unique # call it something like mydomain-ca
Code: ./build-key-server server
Code: ./build-key client1 # remember that common name must be unique e.g. use mydomain-client1 # and YES you want to sign the keys
Code: ./build-key client2 # do this step for as many clients as you need.
Code: ./build-dh
6. We are almost done now… right we need to create a few config files, you can download my template from here,
Code: cd /etc/openvpn
Code: wget www.designpc.co.uk/downloads/server.conf # make sure you change a few things in the server.conf file, like DNS # servers
Code: touch server-tcp.log ~ this makes the log file..
Code: touch ipp.txt this makes the IP reservation list.
7. You need to make a few changes to OpenVPN itself. Go to..
Code: cd /etc/init.d/ edit the openvpn file
#Uncomment this line (line 119)
Code: echo 1 > /proc/sys/net/ipv4/ip_forward Add these lines below it, changing 123.123.123.123 to your public IP address,
Code: iptables -t nat -A POSTROUTING -s 192.168.2.3 -j SNAT --to 123.123.123.123 iptables -t nat -A POSTROUTING -s 192.168.2.4 -j SNAT --to 123.123.123.123 iptables -t nat -A POSTROUTING -s 192.168.2.5 -j SNAT --to 123.123.123.123 iptables -t nat -A POSTROUTING -s 192.168.2.6 -j SNAT --to 123.123.123.123 iptables -t nat -A POSTROUTING -s 192.168.2.7 -j SNAT --to 123.123.123.123 iptables -t nat -A POSTROUTING -s 192.168.2.8 -j SNAT --to 123.123.123.123 iptables -t nat -A POSTROUTING -s 192.168.2.9 -j SNAT --to 123.123.123.123 iptables -t nat -A POSTROUTING -s 192.168.2.10 -j SNAT --to 123.123.123.123 Now install iptables if you don’t have it already,
Code: yum install iptables
#test it
service iptables start service iptables stop
8. Now for the client config files. If your client is a Windows machine, make sure you have installed OpenVPN, use the gui version, downloadable from here;
[url]
You need to copy a few files from the server to your client machine, here is the list, located in /etc/openvpn/keys/
## WARNING ## Use a secure way of transferring these files off the server, something like WinSCP.
ca.crt client1.csr client1.key client1.crt
Put these files in this directory C:Program FilesOpenVPNconfig
Now you need to make a client config, here is an example..
PHP Code:
clientdev tunproto tcp#Change my.publicdomain.com to your public domain or IP addressremote my.publicdomain.com 1194resolv-retry infinitenobindpersist-keypersist-tunca ca.crtcert client1.crtkey client1.keyns-cert-type server#DNS Options here, CHANGE THESE !!push "dhcp-option DNS 123.123.123.123"push "dhcp-option DNS 123.123.123.124"comp-lzoverb 3
Make sure you edit any of the lines with comments above them.
Call this file client1.opvn and put it in C:Program FilesOpenVPNconfig
Make sure the file extension is .opvn not .txt
To connect right click on OpenVPN in the taskbar >> Connect
I can find lots of info on getting started on designing a web site but not much on getting started on publishing/managing the site.
I have been bumbling through trial and error for several years now. I was on infinology with hsphere for awhile. I am now on hostgator with cpanel 10. (Shared-babycroc)
I would like the equivalent of a dummies book that addresses all those pre-made directories and files that come with an account, discussions on permissions, password protecting directories, hotlinking, email account management, add-on domains, subdomains, etc.
I would really like a basic overview so that I could have a better chance of understanding the forum discussions and help sites I do find.
I currently have vps with Hypervm and I was wondering how do I add additional ip's from the ip pool? I do not see the ip pool in my administration panel. Would it be under the server pool? My provider allocates ips to the ip pool but I do not know how to add them myself.
I am trying to create some vps using openvz but after creating the vps with the Centos basic template 304mb i can't ping the ip and i can't view the centos welcome page in my browser (using ip and not domain, so i don't need to change there anything yet) and the most important is that i can't connect to the vps using ssh
I aks for many good users about my problem but i don' found a solution yet.
I ask my DC about ip's and they told me that the ip's are routed in my server.
When you're creating VPS container, you can ssh with that IP and login with your username and password correct? But, what is the problem when I successfully created a VPS, and when trying ssh into it, I can't. Ok, here we go. I want to create a 2nd vps and will be using it as my DNS server. I enter a set of IPs into HyperVM's IPpool. First IP: x.x.x.178 Last IP: x.x.x.182 Resolv Entries (space Separated) : Gateway (IP): x.x.x.x.177 NetMask: 255.255.255.248
Then I created a vps resource plan. And then I created a VPS and it use the first IP from above. I want to connect to SSH and want to make it as my DNS server but seems the IP are not responding, it wasn't even live. So, what is the problem here? Where I did wrong? Just to let you know, I successfully created 1 VPS before that and it works without any hiccups. Got even whm/cpanel installed as well on it. The thing that I suspected is that my DC pulled the IPs off me and assigned them to other server. Waiting for their reply on this though.