OK,  I gave it a try to /vzdeploy8 /script on a centos 8 CT
here are the details to let you know some warning/error (?) I received :

1) get the script
/[root@c8ct~]# wget http://repo-backend.virtuozzo.com/vzlinux/vzdeploy/vzdeploy8/

2) /export SKIP_KERNEL=1/ to prevent messing around with kernel in a CT !

3) Launch the script
/[root@c8ct ~]# sh vzdeploy8
vzdeploy8 is already the latest version (2.0.1) - continuing
Do you want to continue with deploy (y/n) ?y/

1st serie of messages maybe unrelated on a CT , better destine for a hardware Node ? :

/Running transaction//
//  Preparing : 1/1 //
//  Installing       : pciutils-libs-3.7.0-1.vl8.x86_64 1/3 //
//  Running scriptlet: pciutils-libs-3.7.0-1.vl8.x86_64 1/3 //
//  Installing       : hwdata-0.314-8.7.vl8.noarch 2/3 //
//  Installing       : pciutils-3.7.0-1.vl8.x86_64 3/3 //
//  Running scriptlet: pciutils-3.7.0-1.vl8.x86_64 3/3 //
//  Verifying        : hwdata-0.314-8.7.vl8.noarch 1/3 //
//  Verifying        : pciutils-3.7.0-1.vl8.x86_64 2/3 //
//  Verifying        : pciutils-libs-3.7.0-1.vl8.x86_64 3/3 //
//
//Installed://
//  hwdata-0.314-8.7.vl8.noarch pciutils-3.7.0-1.vl8.x86_64 pciutils-libs-3.7.0-1.vl8.x86_64 //
//
//Complete!//
//pcilib: Cannot open /proc/bus/pci//
//lspci: Cannot find any working access method./


Then comes the package /vzlinux-release/

/Last metadata expiration check: 0:00:01 ago on Tue Feb 16 19:08:35 2021.
Package vzlinux-release-3:8.3-3.vl8.x86_64 is already installed.
Dependencies resolved.
================================================================================
 Package                   Arch    Version Repository            Size
================================================================================
Upgrading:
 vzlinux-release           x86_64  3:8.3-4.vl8 virtuozzolinux-base   44 k
Installing dependencies:
 dnf-plugins-core          noarch  4.0.18-2.vl8 virtuozzolinux-base   68 k
 python3-dateutil          noarch  1:2.6.1-6.vl8 virtuozzolinux-base  251 k
 python3-dnf-plugins-core  noarch  4.0.18-2.vl8 virtuozzolinux-base  227 k
 zstd                      x86_64  1.4.4-1.vl8 virtuozzolinux-base  395 k

Transaction Summary
================================================================================
Install  4 Packages
Upgrade  1 Package
/
/Upgraded://
//vzlinux-release-3:8.3-4.vl8.x86_64 //
//
//Installed://
//dnf-plugins-core-4.0.18-2.vl8.noarch //
//python3-dateutil-1:2.6.1-6.vl8.noarch //
//python3-dnf-plugins-core-4.0.18-2.vl8.noarch //
//zstd-1.4.4-1.vl8.x86_64 //
//
//Complete!/

Then it seems to upgrade everything, but still some warning/errors ?
/
/
/Last metadata expiration check: 0:00:04 ago on Tue Feb 16 19:08:35 2021.//
//Dependencies resolved.//
//Failed to set locale, defaulting to C.UTF-8//
//
// Problem: package gcc-8.4.1-1.vl8.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed// //  - package annobin-9.35-1.vl8.x86_64 requires gcc >= 8, but none of the providers can be installed// //  - package glibc-devel-2.28-138.vl8.x86_64 requires glibc-headers, but none of the providers can be installed// //  - package glibc-devel-2.28-138.vl8.x86_64 requires glibc-headers = 2.28-138.vl8, but none of the providers can be installed// //  - package redhat-rpm-config-125-1.vl8.noarch requires annobin, but none of the providers can be installed// //  - package glibc-headers-2.28-138.vl8.x86_64 requires kernel-headers >= 2.2.1, but none of the providers can be installed// //  - package glibc-headers-2.28-138.vl8.x86_64 requires kernel-headers, but none of the providers can be installed// //  - cannot install the best update candidate for package redhat-rpm-config-123-1.el8.noarch// //  - package kernel-headers-4.18.0-269.vl8.x86_64 is filtered out by exclude filtering//
//==================================================================================================//
// Package                        Arch Version                         Repository            Size//
//==================================================================================================//
//Upgrading://
// acl                            x86_64 2.2.53-1.vl8.1                  virtuozzolinux-base   80 k// // apr                            x86_64 1.6.3-11.vl8                    virtuozzolinux-base  124 k// // apr-util                       x86_64 1.6.1-6.vl8                     virtuozzolinux-base  105 k// // attr                           x86_64 2.4.48-3.vl8                    virtuozzolinux-base   68 k/
...
/Transaction Summary//
//==================================================================================================//
//Install    8 Packages//
//Upgrade  487 Packages//
//Skip       5 Packages//
//
//Total download size: 201 M//
//Downloading Packages://
//(1/495): freetype-2.9.1-4.vl8.1.x86_64.rpm      865 kB/s | 393 kB     00:00 /
...
/Transaction test succeeded.//
//Running transaction//
//  Running scriptlet: filesystem-3.8-3.vl8.x86_64                            1/1 // //  Preparing :                                                        1/1 // //  Running scriptlet: libgcc-8.4.1-1.vl8.x86_64                              1/1 // //  Upgrading        : libgcc-8.4.1-1.vl8.x86_64                            1/982 // //  Running scriptlet: libgcc-8.4.1-1.vl8.x86_64                            1/982 // //  Upgrading        : setup-2.12.2-6.vl8.noarch                            2/982 //
//warning: /etc/shadow created as /etc/shadow.rpmnew//
//
//  Running scriptlet: setup-2.12.2-6.vl8.noarch                            2/982 // //  Upgrading        : filesystem-3.8-3.vl8.x86_64                          3/982 /
...
/yum-4.4.2-2.vl8.1.noarch //
//zip-3.0-23.vl8.x86_64 //
//zlib-1.2.11-17.vl8.x86_64 //
//
//Installed://
//  freetype-2.9.1-4.vl8.1.x86_64 grub2-tools-efi-1:2.02-92.vl8.x86_64 //
//  grub2-tools-extra-1:2.02-92.vl8.x86_64 libibverbs-32.0-3.vl8.x86_64 //
//  libnl3-3.5.0-1.vl8.x86_64 libpng-2:1.6.34-5.vl8.x86_64 //
//  lmdb-libs-0.9.24-1.vl8.x86_64 rdma-core-32.0-3.vl8.x86_64 //
//
//Skipped://
//  annobin-9.35-1.vl8.x86_64 gcc-8.4.1-1.vl8.x86_64 //
//  glibc-devel-2.28-138.vl8.x86_64 glibc-headers-2.28-138.vl8.x86_64 //
//  redhat-rpm-config-125-1.vl8.noarch //
//
//Complete!//
//You can find complete log in /var/log/vzdeploy8.log/

=> did it had to upgrade each and every packages (982 !) ? (I did a fresh yum update when it was still centos 8)

4) done/completed, then check version and reboot
/[root@wad ~]# cat /etc/redhat-release //
//Virtuozzo Linux release 8//
//[root@c8ct ~]# reboot//
/

5) after reboot I issue a yum update , and glibc and kernel headers package are installed ... normal !?

/[root@c8ct ~]# yum update//
//Failed to set locale, defaulting to C.UTF-8//
//Last metadata expiration check: 0:16:41 ago on Tue Feb 16 19:08:35 2021.//
//Dependencies resolved.//
//=============================================================================================================================================================================//
// Package Architecture Version Repository                                     Size//
//=============================================================================================================================================================================//
//Upgrading://
// redhat-rpm-config noarch 125-1.vl8 virtuozzolinux-base                            86 k//
//Installing dependencies://
// annobin x86_64 9.35-1.vl8 virtuozzolinux-base                           104 k// // binutils x86_64 2.30-90.vl8 virtuozzolinux-base                           5.7 M// // cpp x86_64 8.4.1-1.vl8 virtuozzolinux-base                            10 M// // gcc x86_64 8.4.1-1.vl8 virtuozzolinux-base                            23 M// // glibc-devel x86_64 2.28-138.vl8 virtuozzolinux-base                           1.0 M// // glibc-headers x86_64 2.28-138.vl8 virtuozzolinux-base                           476 k// // isl x86_64 0.16.1-6.vl8 virtuozzolinux-base                           841 k// // kernel-headers x86_64 4.18.0-269.vl8 virtuozzolinux-base                           6.4 M// // libmpc x86_64 1.1.0-9.1.vl8 virtuozzolinux-base                            60 k// // libxcrypt-devel x86_64 4.1.1-4.vl8 virtuozzolinux-base                            25 k//
//
//Transaction Summary//
//=============================================================================================================================================================================//
//Install  10 Packages//
//Upgrade   1 Package//
//
//Total download size: 49 M/

/Upgraded://
//redhat-rpm-config-125-1.vl8.noarch //
//
//Installed://
//  annobin-9.35-1.vl8.x86_64 binutils-2.30-90.vl8.x86_64 cpp-8.4.1-1.vl8.x86_64 gcc-8.4.1-1.vl8.x86_64 glibc-devel-2.28-138.vl8.x86_64 // //  glibc-headers-2.28-138.vl8.x86_64 isl-0.16.1-6.vl8.x86_64 kernel-headers-4.18.0-269.vl8.x86_64 libmpc-1.1.0-9.1.vl8.x86_64 libxcrypt-devel-4.1.1-4.vl8.x86_64 //
//
//Complete!/

So it seems to work fine, I'll check for next update and add/remove  of other packages to see if it keeps running fine .

I gave a look at the vzdeploy8 script, it is quite long and thorough for a CT , what would be  wrong with our initial very simple procedure :
/1) replace C8 repos with VzLinux/
//
/2) install vzlinux-release package/
// /3) distro-sync/

which method do you recommend for my next migrations of  Centos8 CTs and VMs ?

Thanks .

Le 12/02/2021 à 16:52, Denis Silakov a écrit :
Hi,

I've pushed updated version of the script to the repo - now it honors SKIP_KERNEL environment variable and skips kernel-related actions if it is set.
------------------------------------------------------------------------
*From:* users-boun...@openvz.org <users-boun...@openvz.org> on behalf of Denis Silakov <dsila...@virtuozzo.com>
*Sent:* Thursday, February 11, 2021 3:24 PM
*To:* users@openvz.org <users@openvz.org>
*Subject:* Re: [Users] virtuozzo base OS and new centos 8 orientations
Yeah, indeed it is initially targeted for hardware nodes, but should not
be hard to adopt for CT. At the first glance it is enough to just skip
the kernel part.


On 02/11/2021 03:01 PM, Ian wrote:
> On 08/02/2021 15:35, Denis Silakov wrote:
>> Hi,
>>
>> we've published rough version of vzdeploy8 script that should
>> eliminate problems with streams/modules mismatch that led to problems
>> mentioned in the thread:
>> http://repo-backend.virtuozzo.com/vzlinux/vzdeploy/vzdeploy8 <http://repo-backend.virtuozzo.com/vzlinux/vzdeploy/vzdeploy8> >> <http://repo-backend.virtuozzo.com/vzlinux/vzdeploy/vzdeploy8 <http://repo-backend.virtuozzo.com/vzlinux/vzdeploy/vzdeploy8>>
>>
>> Just download & launch inside CentOS 8, no additional steps required.
>> ------------------------------------------------------------------------
> <Snip>
>
> Hi,
>
> I tried running this in a test CentOS 8 container but it tried to
> install a kernel so I killed it.
>
> Is this supposed to happen or is this script just for hardware nodes ?
>
>
> Thanks for your help on this issue - I have a lot of containers to
> migrate and run and forget script will be a great help.
>
> Regards
>
> Ian
> _______________________________________________
> Users mailing list
> Users@openvz.org
> https://lists.openvz.org/mailman/listinfo/users <https://lists.openvz.org/mailman/listinfo/users>

--
Regards,

Denis Silakov | Sr. Software Architect, Virtuozzo Linux Team Lead
Otradnaya street 2B/9, “Otradnoye” Business Center | Moscow | Russia
Phone: +7 916-222-9437 | dsila...@virtuozzo.com
Skype: denis.silakov

Virtuozzo.com

_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users <https://lists.openvz.org/mailman/listinfo/users>

_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users


_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users

Reply via email to