OpenVZ Forum


Home » Mailing lists » Users » how to make an exact copy of the VPS
how to make an exact copy of the VPS [message #3137] Sun, 14 May 2006 19:53 Go to next message
abhishek jain is currently offline  abhishek jain
Messages: 9
Registered: May 2006
Junior Member
ok thanks for the info , I have a few more questions:
1)I am running RHEL 4.x on the server . What will be the OS for mine VPS i
create on this server.
2)I already have some files to and some important databases on this VPS what
will happen to those files once i create VPS or install openVZ.
3)What will happen to the IPs , specificaly to the main IP. I mean once i
install openVZ will mine RHEL 4.x stop to work and i will need to create the
VPSes for it to work and mine mian IP will be there to configure VPS only.

Also apart from the instal;lation guide available on site
http://openvz.org/documentation/guides/installation/quick-in stall , does
anyone have some notes for easy installation. pl provide them that will be
handy.

Pl. provide the info.

Thanks,
Abhishek jain


On 5/15/06, Kir Kolyshkin <kir@openvz.org> wrote:
>
> abhishek jain wrote:
>
> > Dear Friends,
> > I need to
> > 1)Install openVZ will i get a Control panel for mine clients
> > 2) make an exact copy of the VPS from old to new IPs. Tell me how to
> > do so.
>
> Oh I now read the subject and know what you want to do.
>
> Say there is a VE with ID 100, and you want to make a clone of it; a new
> VE will have ID 200. Here is how:
>
> # Stop source VE
> vzctl stop 100
> # Copy VE private area:
> cd /vz/private/
> mkdir 200
> cp -a 100/* 200/
> # Copy VE config file
> cd /etc/sysconfig/vz-scripts/
> cp 100.conf 200.conf
> # Change VE 200 IP address: remove old ones than add some new ones
> vzctl set 200 --ipdel all --ipadd x.x.x.x --save
> # Start original VE and the clone
> vzctl start 100
> vzctl start 200
>
> One can write a simple shell script for that if you want to do it
> regularly. As you can see, this is just a few copy and vzctl set
> operations.
>
> > 3)Also can anyone point me to articles relating with the difference
> > between OpenVZ and Xen based VPS., I need to know which is best, in
> > terms of which can be installed easily,control panel for the client
> > and ease to use/operate and system resources etc.
> >
> > Thanks,
> > Abhishek jain
> >
> > ------------------------------------------------------------ ------------
> >
Re: how to make an exact copy of the VPS [message #3138 is a reply to message #3137] Sun, 14 May 2006 20:43 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

abhishek jain wrote:

> ok thanks for the info , I have a few more questions:
> 1)I am running RHEL 4.x on the server . What will be the OS for mine
> VPS i create on this server.

You can have different distros in different VPSs, including RHEL 4.

> 2)I already have some files to and some important databases on this
> VPS what will happen to those files once i create VPS or install openVZ.

I am not sure what do you mean by "on this VPS". If you mean "on this
server", the answer is they will stay as is.

Still, from the security standpoint, after you have installed OpenVZ,
you should move all the services/daemons (other that sshd and some
needed stuff like syslogd and crond) running on the machine into a VPS
or a few. Otherwise you could have problems.

> 3)What will happen to the IPs , specificaly to the main IP. I mean
> once i install openVZ will mine RHEL 4.x stop to work and i will need
> to create the VPSes for it to work and mine mian IP will be there to
> configure VPS only.

The Linux you have on your server will pretty much stay as-is. If you
want to create VPSs you need more IP addresses for them.

> Also apart from the instal;lation guide available on site
> http://openvz.org/documentation/guides/installation/quick-in stall ,
> does anyone have some notes for easy installation. pl provide them
> that will be handy.

I am not sure how it could be done even more simple than described...
Perhaps an installer script; but the installation is what you do just
once and it's probably better to do it manually in this case, just to
get sense what is happening when you install OpenVZ.

I suggest if you find it too cumbersome you should hire some system
administrator to do that for you, or ask for fee-based installation and
support from OpenVZ; ask for it to sales@openvz.org

PS Looks like you haven't read the documentation at all, going the easy
way of asking before reading -- please do read the docs first. This is
open source project not a commercial entity so free support and the
answers are provided on a 'best-effort' basis and we can not answer each
and every question which is already answered in docs.

Well, of course we (well, not we, but OpenVZ support team) can, if you
buy OpenVZ support. Please do not see it as I am trying to sell
something -- I do not; I just try to let you know how are things are
done here, what are the possible ways and options.

Regards,
Kir.

> Pl. provide the info.
>
> Thanks,
> Abhishek jain
>
>
> On 5/15/06, *Kir Kolyshkin* < kir@openvz.org <mailto:kir@openvz.org>>
> wrote:
>
> abhishek jain wrote:
>
>> Dear Friends,
>> I need to
>> 1)Install openVZ will i get a Control panel for mine clients
>> 2) make an exact copy of the VPS from old to new IPs. Tell me how to
>> do so.
>
> Oh I now read the subject and know what you want to do.
>
> Say there is a VE with ID 100, and you want to make a clone of it;
> a new
> VE will have ID 200. Here is how:
>
> # Stop source VE
> vzctl stop 100
> # Copy VE private area:
> cd /vz/private/
> mkdir 200
> cp -a 100/* 200/
> # Copy VE config file
> cd /etc/sysconfig/vz-scripts/
> cp 100.conf 200.conf
> # Change VE 200 IP address: remove old ones than add some new ones
> vzctl set 200 --ipdel all --ipadd x.x.x.x --save
> # Start original VE and the clone
> vzctl start 100
> vzctl start 200
>
> One can write a simple shell script for that if you want to do it
> regularly. As you can see, this is just a few copy and vzctl set
> operations.
>
>> 3)Also can anyone point me to articles relating with the difference
>> between OpenVZ and Xen based VPS., I need to know which is best, in
>> terms of which can be installed easily,control panel for the client
>> and ease to use/operate and system resources etc.
>>
>> Thanks,
>> Abhishek jain
>>
>> ------------------------------------------------------------ ------------
>>
>>_______________________________________________
>>Users mailing list
>>Users@openvz.org <mailto:Users@openvz.org>
>> https://openvz.org/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> Users mailing list
> Users@openvz.org <mailto:Users@openvz.org>
> https://openvz.org/mailman/listinfo/users
>
>
> ------------------------------------------------------------ ------------
>
Previous Topic: how to make an exact copy of the VPS
Next Topic: Do i need to stop Plesk / etc for openVZ to install
Goto Forum:
  


Current Time: Tue Aug 06 23:28:23 GMT 2024

Total time taken to generate the page: 0.05690 seconds