Kategorie: Linux

Installation a lot karnel and virtualization OpenVZ Debian 7

The following tutorial describes how to very simply install and run karnel OVZ virtualization.
The reaction comes to enter the number of commands.

We update the system at the outset.

apt-get update
apt-get upgrade

Add the repository OVZ:

cat  /etc/apt/sources.list.d/openvz-rhel6.list
deb http://download.openvz.org/debian wheezy main
# deb http://download.openvz.org/debian wheezy-test main
EOF

We import the GPG key

get http://ftp.openvz.org/debian/archive.key
apt-key add archive.key

We update our database repositories

apt-get update

Installation karnel OVZ

apt-get -y install linux-image-openvz-amd64

Run the system modules

sed -i 's/kernel.sysrq = 0/kernel.sysrq = 1/g' /etc/sysctl.conf
sed -i 's/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g' /etc/sysctl.conf
echo 'net.ipv6.conf.default.forwarding = 1' >> /etc/sysctl.conf
echo 'net.ipv6.conf.all.forwarding = 1' >> /etc/sysctl.conf
echo 'net.ipv4.conf.default.proxy_arp = 0' >> /etc/sysctl.conf
echo 'net.ipv4.conf.all.rp_filter = 1' >> /etc/sysctl.conf
echo 'net.ipv4.conf.default.send_redirects = 1' >> /etc/sysctl.conf
echo 'net.ipv4.conf.all.send_redirects = 0' >> /etc/sysctl.conf

Openvz and install the necessary components

apt-get -y install vzctl vzquota ploop vzstats

Then charge system images openvz

wget -P /vz/template/cache http://download.openvz.org/template/precreated/debian-7.0-x86_64.tar.gz
wget -P /vz/template/cache http://download.openvz.org/template/precreated/debian-8.0-x86_64.tar.gz
wget -P /vz/template/cache http://download.openvz.org/template/precreated/debian-8.0-x86_64-minimal.tar.gz
wget -P /vz/template/cache http://download.openvz.org/template/precreated/centos-6-x86_64-minimal.tar.gz
wget -P /vz/template/cache http://download.openvz.org/template/precreated/centos-7-x86_64-minimal.tar.gz

More available images is available directly on the distribution:

https://download.openvz.org/template/precreated/

We make an update to detect the thick karnel openvz

update-grub

then make changes to the settings thick with each system start immediately boot from karnel OVZ

sed -i 's/GRUB_DEFAULT=0/GRUB_DEFAULT=2/g' /etc/default/grub

important:
GRUB_DEFAULT=2
If the system does not boot from karnel OVZ should replace multiple in this line zamast 2 na 3,4,5,6
Depending on the order karnel.

Again, we reload the grub

update-grub

then reboot the system. Whole should start already karnel OVZ 2.6

If everything went correctly we install rsync move files and make a symbolic link:

apt-get -y install rsync
rsync -avr /var/lib/vz/* /vz/
rm -fr /var/lib/vz
ln -s /vz /var/lib/vz

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu