Difference between revisions of "Openvz7 : Install and Basics"
Line 19: | Line 19: | ||
Virtuozzo/openvz 7 config located as in previous versions: | Virtuozzo/openvz 7 config located as in previous versions: | ||
cat /etc/vz/vz.conf | cat /etc/vz/vz.conf | ||
+ | |||
+ | |||
+ | Install openvz kernel. | ||
+ | (Check the cat /boot/grub2/grub.cfg before and after you'll see the changes after installing) | ||
+ | yum install vzkernel | ||
+ | |||
+ | Reboot system | ||
We are using tolls from epel repo so we'll add it: | We are using tolls from epel repo so we'll add it: | ||
Line 48: | Line 55: | ||
!virtuozzolinux-updates VirtuozzoLinux Updates | !virtuozzolinux-updates VirtuozzoLinux Updates | ||
− | Install prtctl (used instead of vzctl, that also may be installed) | + | Install prtctl (used instead of vzctl, that also may be installed) and ploop |
− | yum install prlctl prl-disp-service | + | yum install prlctl prl-disp-service ploop |
− | Now you need to install | + | Now you need to install EZ OS Templates. The openvz7 have rather differ "understanding" of OS templates that makes life easier: |
Check available EZ OS Templates: | Check available EZ OS Templates: | ||
vzpkg list --available | vzpkg list --available | ||
Line 74: | Line 81: | ||
Install template package, like: | Install template package, like: | ||
vzpkg install template centos-7-x86_64 | vzpkg install template centos-7-x86_64 | ||
+ | |||
+ | For some templates you need to configure additional parameters in map file /etc/vztt/url.map | ||
+ | Check https://docs.virtuozzo.com/virtuozzo_7_users_guide/managing-virtual-machines-and-containers/creating-virtual-machines-and-containers.html for details. | ||
+ | For example fro SLES template you need to set the $RCE parameter and SUSE repository credentials. | ||
+ | We'll skip it coz we use usual Centos7 | ||
+ | |||
+ | Next create template cache: | ||
+ | vzpkg create cache centos-7-x86_64 |
Revision as of 14:19, 28 February 2018
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
Install openvz kernel.
(Check the cat /boot/grub2/grub.cfg before and after you'll see the changes after installing)
yum install vzkernel
Reboot system
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) and ploop
yum install prlctl prl-disp-service ploop
Now you need to install EZ OS 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
For some templates you need to configure additional parameters in map file /etc/vztt/url.map Check https://docs.virtuozzo.com/virtuozzo_7_users_guide/managing-virtual-machines-and-containers/creating-virtual-machines-and-containers.html for details. For example fro SLES template you need to set the $RCE parameter and SUSE repository credentials. We'll skip it coz we use usual Centos7
Next create template cache:
vzpkg create cache centos-7-x86_64