A
A
Alexander Gorsky2015-01-16 13:05:29
linux
Alexander Gorsky, 2015-01-16 13:05:29

A virtual machine with a copy of the system - what to use?

The task is to make a copy of the system running on the server (Debian) and run it in a virtual machine on another server. What means would you use to get a copy (image, snapshot, etc), and what would you use for virtualization? What are the pros and cons of such a solution?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vlad Zhivotnev, 2015-01-16
@inkvizitor68sl

Oh, too lazy to paint all the same)
I hope your level will allow you to understand gibberish)
Start a virtual machine (any, the main thing is not lxc). Create a folder /chroot/ on it. Sinka
data (run on the old server):
rsync -avzP --numeric-ids --exclude=/proc/* --exclude=/sys/* --exclude=/dev/* / root @newvm:/chroot/
When the first synchronization is over, turn off all services on the old server that write something to disk (the DBMS server is a must!)
Start rsync again.
After that, the virtual machine should get a more or less live "cast of the system" in the chute.
https://debian.pro/440- mount the service fs for the chroot, log in to the chroot, start the services (if necessary - reconfigure them a little - change the ip there in the config).
Then we set up traffic forwarding on the old machine - https://debian.pro/523 or https://debian.pro/375
Switch DNS
https://debian.pro/1699 clean the disks.
Something like this.

K
Konkase, 2015-01-16
@Konkase

I would raise a virtual machine with the same system and rsync all the data.
Or you can dd remove the image from the machine and upload the image to the virtual machine with the same dd

S
Sergey, 2015-01-16
@neuxunil

CloneZilla

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question