4.1. Converting from CentOS 7¶
To convert a CentOS 7 installation to VzLinux 8, do the following:
Log in as the root user.
Update the system:
# yum update
Add the VzLinux repository. For example:
# cat << EOF > /etc/yum.repos.d/vzlinux.repo [vzlinux] name=vzlinux baseurl=http://repo.virtuozzo.com/vzlinux/7.9/x86_64/os/ enabled=1 gpgcheck=0 EOF
Install the conversion tool from the VzLinux repository:
# yum install vzupgrade
Disable the VzLinux repository. For example:
# yum-config-manager --disable vzlinux
Optionally, add custom executable files. Files placed in
/usr/share/vzupgrade/pre-check
will be run before the check stage (includingvzupgrade check
). Files placed in/usr/share/vzupgrade/pre-install
will be run before the upgrade stage. All executable files are run in the alphabetical order.Check that the system is ready for converting:
# vzupgrade check --skip-vz No upgrade blockers found! <...> A report has been generated at /var/log/leapp/leapp-report.json A report has been generated at /var/log/leapp/leapp-report.txt <...> Answerfile has been generated at /var/log/leapp/answerfile
This command will imitate the conversion, downloading the required RPM packages in the process.
If issues are found, investigate the logs in
/var/log/leapp
. In addition, note the packages that are marked as unknown. They may be removed during the upgrade.Once no blockers have been found and the system is ready, launch the conversion:
# vzupgrade install --skip-vz <...> A reboot is required to continue. Please reboot your system. A report has been generated at /var/log/leapp/leapp-report.json A report has been generated at /var/log/leapp/leapp-report.txt <...> Answerfile has been generated at /var/log/leapp/answerfile
The upgrade tool will perform preparation steps and ask you to reboot to the kernel
Vz-Upgrade-Initramfs
to perform the upgrade.Reboot to the VzLinux 8 kernel.