{"id":275758,"date":"2016-03-09T16:04:02","date_gmt":"2016-03-09T13:04:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=275758"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=275758","title":{"rendered":"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u043e\u0441\u043b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 openvz \u043d\u0430 lxc \u0432 Proxmox 4.x"},"content":{"rendered":"\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/36a\/e58\/f62\/36ae58f62aac4d9abacfbc52d07eeca5.png\"\/><\/div>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 openvz \u0437\u0430\u0448\u043b\u043e \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0442\u0443\u043f\u0438\u043a, \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 virtuozo \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0448\u0435\u043b \u043f\u043e \u043a\u043e\u0434\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u0435 \u0432 \u0431\u043e\u043a \u0438 \u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e openvz \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u044f\u0434\u0440\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 2.6.32, \u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e \u0441\u043b\u0438\u044f\u043d\u0438\u044e openvz \u0438 virtuozo7 \u0438\u0434\u0443\u0442, \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0435\u0441\u0442\u043d\u043e, \u043d\u0435 \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u043f\u043e\u0434\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 proxmox \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 4.0 \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 openvz \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 lxc \u0438 \u044f\u0434\u0440\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 4.2.6. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 proxmox \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0443\u0434\u0435\u043b\u0438\u043b\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e lxc \u0432 proxmox, \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0445\u043e\u0447\u0435\u0442 \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 openvz, \u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u041d\u0438\u0436\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0432\u0441\u0435\u0445 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u044f\u0445 \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445 \u043f\u043e\u0441\u043b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 lxc.<a name=\"habracut\"><\/a><\/p>\n<p>  \u042f \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0443\u0436\u0435 lxc, \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0435\u0441\u0442\u043d\u043e, \u043e\u043d \u0431\u044b\u043b \u043f\u043e\u043b\u043e\u043d \u0434\u0435\u0442\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0438 \u044d\u0442\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043c\u0435\u043d\u044f \u043e\u0442\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u043e \u043e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0435\u0433\u043e \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435, \u0430 \u0445\u043e\u0443\u043c\u043f\u0430\u0433\u0438 \u044f \u043c\u043e\u0433\u0443 \u043f\u043e\u0445\u043e\u0441\u0442\u0438\u0442\u044c \u0438 \u043d\u0430 openvz \u0431\u0435\u0437 \u0434\u0435\u0442\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c lxc, \u0434\u0430\u0436\u0435 \u0442\u043e\u0442 \u0436\u0435 \u0434\u043e\u043a\u0435\u0440 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0434\u0430\u043b\u044c\u0448\u0435 \u0443\u0448\u0435\u043b \u0432 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u0418\u0437 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c openvz \u043c\u043d\u0435 \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 centos 7 \u0433\u0434\u0435 \u043d\u0435 \u043f\u043e\u0434\u044b\u043c\u0430\u043b\u0430\u0441\u044c \u0441\u0435\u0442\u044c, \u0438 \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0440\u043e\u0443\u0442 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0443\u0447\u043a\u0430\u043c\u0438 \u0432 rc.local, \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 <a href=\"https:\/\/forum.proxmox.com\/threads\/fix-for-centos-7-container-networking.22770\/\">\u0432\u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043f\u0430\u0442\u0447\u0430<\/a>.<\/p>\n<p>  \u0412 lxc \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0445\u0443\u0436\u0435, \u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043b \u043d\u0430 \u043d\u0435\u0433\u043e \u0441 openvz, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u0448\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044f proxmox 4.1, \u044f \u0447\u0435\u0441\u0442\u043d\u043e \u0434\u0443\u043c\u0430\u043b \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 lxc \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e \u0438 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e, \u043a\u0430\u043a \u0432 \u0432\u0438\u043d\u0434\u0435 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u0430\u043a\u0430. \u041f\u043b\u044e\u0441\u043e\u043c \u0431\u044b\u043b\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043d\u0443\u0442\u044c \u0431\u0435\u043a\u0430\u043f openvz \u0432 lxc \u0434\u0432\u0443\u043c\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438, \u043d\u043e \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u043f\u0435\u0440\u0435\u0435\u0437\u0434 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043e\u0442\u043a\u043b\u0438\u043a\u043d\u0443\u043b\u0441\u044f \u043c\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0431\u043e\u043b\u044c\u044e \u0438 \u043a\u0443\u0447\u0435\u0439 \u043f\u043e\u0442\u0435\u0440\u044f\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043b\u0443\u0447\u0448\u0435 \u0431\u044b \u044f \u0435\u0449\u0451 \u0433\u043e\u0434\u0438\u043a \u043f\u043e\u0441\u0438\u0434\u0435\u043b \u043d\u0430 openvz. <\/p>\n<p>  lzop -d vzdump-openvz-126-2016_01_27-11_08_32.tar.lzo <br \/>  pct restore 126 vzdump-openvz-126-2016_01_27-11_08_32.tar &#8212;rootfs local:0<\/p>\n<p>  \u041e\u043f\u0446\u0438\u044e \u0443\u0431\u0438\u0440\u0430\u044e\u0449\u0443\u044e \u0434\u0438\u0441\u043a\u043e\u0432\u0443\u044e \u043a\u0432\u043e\u0442\u0443 &#8212;rootfs local:0 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043d\u0435 \u043d\u0430 lvm \u0438\u043b\u0438 zfs. \u0412\u043e\u0442 <a href=\"https:\/\/pve.proxmox.com\/wiki\/Convert_OpenVZ_to_LXC\">\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e<\/a> \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043d\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0441\u044f.<\/p>\n<p>  \u041f\u044f\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c lxc \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b:<\/p>\n<ul>\n<li>\u0412 centos 6 \u043f\u0445\u043f \u043d\u0435 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0441\u043e\u043a\u0435\u0442\u0443 mysql, \u043d\u0430\u0434\u043e \u0432\u0435\u0437\u0434\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e localhost \u0430\u0439\u043f\u0438 127.0.0.1, \u0434\u043e\u043b\u0433\u043e \u0440\u044b\u043b \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b, \u0441\u043f\u0435\u0440\u0432\u0430 \u0434\u0443\u043c\u0430\u043b \u044d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u043b \u0438\u0437 openvz, \u043d\u043e \u043d\u0430 \u0441\u0432\u0435\u0436\u0435\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u044f\u0446\u0438\u0438 lxc centos 6 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430. \u041f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0441\u0442\u0430\u0432\u0438\u0442\u044c percona 5.6 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f.<\/li>\n<li>\u0427\u0443\u0434\u043e\u0432\u0438\u0449\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 lxc \u0432 image base, \u0442\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b\u044b \u0445\u0440\u0430\u043d\u044f\u0439\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043e\u0431\u0440\u0430\u0437\u0430 \u0434\u0438\u0441\u043a\u0430 \u043d\u0430 \u0445\u043e\u0441\u0442\u043e\u0432\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0442\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0439 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u0440\u0430\u0437\u044b, \u043e\u0442 3 \u0434\u043e 20 \u0440\u0430\u0437. \u042f \u043d\u0435 \u0442\u0435\u0441\u0442\u0438\u043b lxc \u043d\u0430 lvm \u0438 zfs. \u041d\u0430 lvm \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435\u0442 thin provision, \u043d\u043e \u043e\u0431\u0435\u0449\u0430\u044e\u0442 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445. \u0423 \u043c\u0435\u043d\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e \u0432 image base \u0432 kvm \u0438 \u0442\u0430\u043c \u0435\u0441\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u0432\u0435\u0440\u0445\u0435\u0434 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u0434\u0438\u0441\u043a, \u043d\u043e \u043e\u043d \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430, \u0434\u0430\u0436\u0435 \u043d\u0430\u0432\u0435\u0440\u043d\u043e \u043d\u0435 \u0432 \u0434\u0435\u0441\u044f\u0442\u043a\u0430\u0445 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432, \u043d\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u0432\u043e\u0445\u0430 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0438\u0441\u044c \u0432 mysql \u0441\u0442\u0430\u043b\u0430 \u0432 20 \u0440\u0430\u0437 \u043c\u0435\u0434\u043b\u0435\u043d\u0435\u0435 \u043e\u0442 lxc \u0432 proxmox \u044f \u043d\u0435 \u043e\u0436\u0438\u0434\u0430\u043b. \u0412\u044b\u043b\u0435\u0447\u0438\u043b \u0432 \u0438\u0442\u043e\u0433\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432 \u0433\u043e\u0441\u0442\u0435\u0439 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0445\u043e\u0441\u0442\u0430 \u043a\u0430\u043a \u0432 openvz. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0434\u0438\u0441\u043a\u043e\u0432\u044b\u0435 \u043a\u0432\u043e\u0442\u044b, \u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u0435\u0441\u0442\u0430 \u043d\u0430\u0432\u0430\u043b\u043e\u043c \u0438 \u0441\u0442\u043e\u0438\u0442 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043c\u0435\u0441\u0442\u0430 \u0442\u043e \u0437\u0430\u0431\u0438\u043b \u043d\u0430 \u043a\u0432\u043e\u0442\u044b, \u0445\u043e\u0442\u044f \u0434\u043b\u044f \u0441\u0441\u0434 \u0441\u0438\u0441\u0442\u0435\u043c \u0434\u0438\u0441\u043a\u043e\u0432\u044b\u0435 \u043a\u0432\u043e\u0442\u044b \u0431\u043e\u043b\u0435\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b. \u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0438 \u0432\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 \u043e\u043f\u0446\u0438\u044e &#8212;rootfs local:0, \u0438\u0437 \u0432\u0435\u0431\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044d\u0442\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f.<\/li>\n<li>\u041d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u0431\u0435\u043a\u0430\u043f\u044b lxc, \u0431\u0435\u043a\u0430\u043f proxmox \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0432\u0438\u0441\u0430\u043b \u043d\u0430 suspend vm \u0434\u0430\u0436\u0435 \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 proxmox 4.1, \u044d\u0442\u043e\u0442 \u0431\u0430\u0433 \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u043b\u0438 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e 2 \u043c\u0430\u0440\u0442\u0430.<\/li>\n<li>\u041e\u043d\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 openvz.<\/li>\n<li>\u0414\u0432\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0443 \u043c\u0435\u043d\u044f \u043d\u0430\u043c\u0435\u0440\u0442\u0432\u043e \u0437\u0430\u0432\u0438\u0441\u043b\u0438 \u0438 \u0438\u0445 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0443\u0431\u0438\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438, \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u044f\u0433\u043a\u043e \u0440\u0435\u0431\u0443\u0442\u043d\u0443\u0442\u044c \u0442\u043e\u0436\u0435 \u0438\u0437 \u0437\u0430 \u043d\u0438\u0445 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0441\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/li>\n<\/ul>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u0435\u0431\u0438\u0430\u043d 6 \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0432 lxc, \u0442\u043e\u0447\u043d\u043e \u043d\u0435 \u043f\u043e\u043c\u043d\u044e \u0432 \u0447\u0435\u043c \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043d\u043e \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0442\u0435\u043c \u0447\u0442\u043e \u0434\u0435\u0431\u0438\u0430\u043d 6 \u0441\u0438\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u0430\u0441\u0438, \u043f\u0435\u0440\u0435\u043d\u0435\u0441 \u0432\u0441\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0441\u0432\u0435\u0436\u0438\u0439 debian 8 \u0440\u0443\u043a\u0430\u043c\u0438.<\/li>\n<li>\u0412\u044b\u0448\u0435 \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0430\u043b \u0447\u0442\u043e php \u043d\u0435 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u0442\u044c\u0441\u044f \u043a mysql \u043f\u043e socket.<\/li>\n<li>\u0412 centos 6 \u043d\u0435 \u043f\u043e\u0434\u044b\u043c\u0430\u0435\u0442\u0441\u044f \u0441\u0435\u0442\u044c \u0438\u0437 \u0437\u0430 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0441 venet \u043d\u0430 eth0, \u043d\u0430\u0434\u043e \u0437\u0430\u0439\u0442\u0438 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 \u0445\u043e\u0441\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 pct enter ID \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b<br \/>   sed -i -e &#8216;s\/venet0\/eth0\/g&#8217; \/etc\/sysconfig\/network<br \/>   rm -rf \/etc\/sysconfig\/network-scripts\/ifcfg-venet0:0<br \/>   rm -rf \/etc\/sysconfig\/network-scripts\/ifcfg-venet0<br \/>   reboot<\/li>\n<li>\u041d\u0435\u043b\u044c\u0437\u044f \u0437\u0430\u0439\u0442\u0438 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 redhat based \u043f\u043e ssh \u0438\u0437 \u0437\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f tty, \u043a\u0430\u043a \u0442\u043e \u043a\u0440\u0438\u0432\u043e \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 udev \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438, \u043f\u043e\u043b\u0435\u0447\u0438\u043b \u0432\u043e\u0442 \u0442\u0430\u043a <br \/>   pct enter ID<br \/>   sed -i -e &#8216;s\/start_udev\/false\/g&#8217; \/etc\/rc.d\/rc.sysinit<br \/>   reboot<\/li>\n<\/ul>\n<p>  FYI: <\/p>\n<p>  1) \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 <a href=\"https:\/\/pve.proxmox.com\/wiki\/Upgrade_from_3.x_to_4.0\">\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e<\/a> \u043f\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044e proxmox 3-&gt;4;<br \/>  2) \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e \u0434\u0438\u0441\u043a\u043e\u0432 \u0432 lxc: <a href=\"https:\/\/forum.proxmox.com\/threads\/performance-issue-with-proxmox-4-high-io-delay.26012\/\">\u0440\u0430\u0437<\/a>, <a href=\"https:\/\/forum.proxmox.com\/threads\/proxmox-4-lxc-chroot-instead-of-raw-images.22881\/#post-115032\">\u0434\u0432\u0430<\/a>, <a href=\"https:\/\/forum.proxmox.com\/threads\/high-wait-io-after-and-load-average-upgrade-to-proxmox-4.25128\/\">\u0442\u0440\u0438<\/a>;<br \/>  3) \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 proxmox 3.x \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u0432 \u0430\u043f\u0440\u0435\u043b\u0435 2016;<br \/>  4) <a href=\"https:\/\/forum.proxmox.com\/threads\/moving-to-lxc-is-a-mistake.25603\/\">\u0422\u0440\u0435\u0434<\/a>, \u043f\u043e\u0447\u0435\u043c\u0443 lxc \u043f\u043b\u043e\u0445\u043e\u0439;<br \/>  5) <a href=\"https:\/\/forum.proxmox.com\/threads\/can-lxc-backup-be-restored-to-openvz.25262\/#post-128805\">\u041a\u0430\u043a \u0441\u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c<\/a> c lxc \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 openvz.<\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442 \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u0443\u0447\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438.       <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/278877\/\"> https:\/\/habrahabr.ru\/post\/278877\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/36a\/e58\/f62\/36ae58f62aac4d9abacfbc52d07eeca5.png\"\/><\/div>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 openvz \u0437\u0430\u0448\u043b\u043e \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0442\u0443\u043f\u0438\u043a, \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 virtuozo \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0448\u0435\u043b \u043f\u043e \u043a\u043e\u0434\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u0435 \u0432 \u0431\u043e\u043a \u0438 \u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e openvz \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u044f\u0434\u0440\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 2.6.32, \u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e \u0441\u043b\u0438\u044f\u043d\u0438\u044e openvz \u0438 virtuozo7 \u0438\u0434\u0443\u0442, \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0435\u0441\u0442\u043d\u043e, \u043d\u0435 \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u043f\u043e\u0434\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 proxmox \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 4.0 \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 openvz \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 lxc \u0438 \u044f\u0434\u0440\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 4.2.6. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 proxmox \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0443\u0434\u0435\u043b\u0438\u043b\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e lxc \u0432 proxmox, \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0445\u043e\u0447\u0435\u0442 \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 openvz, \u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u041d\u0438\u0436\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0432\u0441\u0435\u0445 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u044f\u0445 \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445 \u043f\u043e\u0441\u043b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 lxc.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-275758","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=275758"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275758\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}