Openvz7 : Install and Basics

From vpsget wiki
Revision as of 14:06, 28 February 2018 by Ndi (talk | contribs)
Jump to: navigation, search

This article relied to openvz7/virtuozzo.

You may use ovz7 on RHEL7/Centos7 x64 OS. But we used to download exact openvz7 iso and install bare metal system : info: https://openvz.org/Virtuozzo ISO: https://download.openvz.org/virtuozzo/releases/7.0/x86_64/iso/


Once the system installed make sure it's updated

yum update&&yum upgrade

check kernel&OS build and install corresponding openvz

uname -a
cat /etc/issue

Assuming you've used minimal ISO/netinstall so you need to download/install openvz,example link:

yum localinstall https://download.openvz.org/virtuozzo/releases/openvz-7.0.6-518/x86_64/os/Packages/o/openvz-release-7.0.6-5.vz7.x86_64.rpm

Virtuozzo/openvz 7 config located as in previous versions:

cat /etc/vz/vz.conf

We are using tolls from epel repo so we'll add it:

yum install epel-release

Check the repolist you have:

 yum repolist
  Loaded plugins: fastestmirror, openvz, priorities, product-id, rhsm-auto-add-pools, search-disabled-repos, vzlinux
  Trying to discover and attach new pools
   Loading mirror speeds from cached hostfile
   * epel: nl.mirror.babylon.network
   * openvz-os: ftp.nluug.nl
   * openvz-updates: ftp.nluug.nl
   557 packages excluded due to repository priority protections
   repo id                                                                                                    repo name                                                                                                               
   status
   !epel/x86_64                                                                                               Extra Packages for Enterprise Linux 7 - x86_64                                                                          
    11,882+460
   !openvz-os                                                                                                 OpenVZ                                                                                                                         
    198
   !openvz-updates                                                                                            OpenVZ Updates                                                                                                                  
    11
   !virtuozzolinux-base                                                                                       VirtuozzoLinux Base                                                                                                      
    10,147+98
   !virtuozzolinux-factory                                                                                    VirtuozzoLinux Factory                                                                                                            
    0
   !virtuozzolinux-factory-debuginfo                                                                          VirtuozzoLinux Factory debug packages                                                                                            
    0
   !virtuozzolinux-updates                                                                                    VirtuozzoLinux Updates  

Install prtctl (used instead of vzctl, that also may be installed)

yum install prlctl prl-disp-service

Now you need to install and cache EZ Templates. The openvz7 have rather differ "understanding" of OS templates that makes life easier: Check available EZ OS Templates:

vzpkg list --available
 centos-6-x86_64                    openvz-os
 centos-7-x86_64                    openvz-os
 debian-7.0-x86_64                  openvz-os
 debian-8.0-x86_64                  openvz-os
 debian-9.0-x86_64                  openvz-os
 fedora-23-x86_64                   openvz-os
 sles-11-x86_64                     openvz-os
 sles-12-x86_64                     openvz-os
 suse-42.1-x86_64                   openvz-os
 suse-42.2-x86_64                   openvz-os
 suse-42.3-x86_64                   openvz-os
 ubuntu-14.04-x86_64                openvz-os
 ubuntu-16.04-x86_64                openvz-os
 ubuntu-17.10-x86_64                openvz-os
 vzlinux-6-x86_64                   openvz-os
 vzlinux-7-x86_64                   openvz-os

Install template package, like:

vzpkg install template centos-7-x86_64