C
C
comper2016-08-29 12:18:11
linux
comper, 2016-08-29 12:18:11

How to migrate server from LXC container to KVM/Hyper-V/BeraMetall?

Good afternoon friends!
There is such a task - to transfer a Linux server from an LXC container to a Hyper-V virtual machine.
I did the following.
1. Created a virtual machine in Hyper-V.
2. Installed Debian there with a minimum of packages.
3. Copied from the LXC container to the Hyper-V virtual machine with this command.
rsync --numeric-ids -avpogtStlHz --exclude-from="/root/exclude.txt" lxc-host:/ /
In exceptions dev proc run sys Run
command from Hyper-V.
After starting the virtual machine, the download is not complete. Authorization does not reach. If you boot into the recovery and make a chroot in /dev/sda1 , then the services can be started, everything works.
Please tell me how to do it right. Or how to fix what is.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question