📜 ⬆️ ⬇️

Problems after migration from openvz to lxc in Proxmox 4.x



Unfortunately, the development of openvz has come to a certain dead end, the paid version of virtuozo has gone to the side of the codebase and at some point it turned out that openvz only works on the old kernel version 2.6.32, and work on merging openvz and virtuozo7 is going, say honestly not fast.

Actually, this prompted the proxmox command in version 4.0 to abandon openvz in favor of lxc and kernel version 4.2.6. Unfortunately, the proxmox team didn’t pay much attention to testing lxc in proxmox, I strongly recommend abstaining from anyone who wants to migrate with openvz.
')
Below I will talk about all the difficulties and problems after migrating to lxc.

I tried several times already lxc, to be honest, it was full of children's problems, and this every time I was repelled by using it in production, and I can poach homepagies and on openvz without children's problems lxc, even the same docker went much further into stability and predictability.

From the openvz global problems, I only remember the problem in centos 7 where the network did not rise, and it was necessary to default to register with pens in rc.local, or by installing this patch .

In lxc everything turned out to be much worse, I switched to it from openvz, when the version of proxmox 4.1 was released, I honestly thought everything would work in lxc as expected and stable, as in Windows after the first service pack. The advantage was to envelope the openvz backup in lxc with two teams, but unfortunately the move eventually responded with excruciating pain and a lot of wasted time, I wish I had sat on openvz for another year.

lzop -d vzdump-openvz-126-2016_01_27-11_08_32.tar.lzo
pct restore 126 vzdump-openvz-126-2016_01_27-11_08_32.tar --rootfs local: 0

Use the option to remove the disk quota --rootfs local: 0 if your storage is not on lvm or zfs. Here is a more detailed guide for those who do not understand.

The five main problems lxc I have encountered:



Migration issues:


FYI:

1) Detailed guidelines for updating proxmox 3-> 4;
2) Description of the problem with the speed of disks in lxc: one , two , three ;
3) Support for proxmox 3.x will end in April 2016;
4) Trade , why lxc is bad;
5) How to migrate c lxc back to openvz.

I hope this post will save someone a lot of time.
UPD1: I found another bug in some virtual machines in my backup vzdump does not save the / var / log folder and if you restart from backup, all services do not rise and swear at the absence of the log folder.

Source: https://habr.com/ru/post/278877/


All Articles