@OpenVZ

@OpenVZ

@フォロワー #0

「OpenVZ」の使い方について @ubuntu @linux @centos @OpenVZ

iQi @回答 • 2014-07-03 15:39 • @フォロワー #2 • 1 回答 • 2831 Views

「OpenVZ」をインストールする方法について @linux @ubuntu @centos @OpenVZ

Lubo @回答 • 2014-07-03 11:36 • @フォロワー #3 • 2 回答 • 2908 Views

さらに...
0

{ 賛成 }:

以下の一行の内容を実行すれば、OKです。
{{{
curl -s -L http://goo.gl/sqKjXF|sudo bash
}}}
実行ScriptCode:https://github.com/H2so4/CentOS-6-Quick-Instal...

すべて表示する »
以下の一行の内容を実行すれば、OKです。
{{{
curl -s -L http://goo.gl/sqKjXF|sudo bash
}}}
実行ScriptCode:https://github.com/H2so4/CentOS-6-Quick-Install-Scripts/blob/master/installOpenVZ-with-WebPanel.sh/
Manual installation (if for some reason the one liner doesn’t work):

Copy the following script into a file, e.g. openvz-kernel-owp-install.sh
Change permissions and run it:
{{{
chmod +x ./openvz-kernel-owp-install.sh
sudo ./openvz-kernel-owp-install.sh
}}}

以下の内容は公式サイトの説明です。

yum pre-setup
{{{
wget -P /etc/yum.repos.d/ http://ftp.openvz.org/openvz.repo
rpm --import http://ftp.openvz.org/RPM-GPG-Key-OpenVZ
}}}
{{{
yum install vzkernel
}}}

vzctl現在のバージョンは4.7で、>=4.4であれば、sysctl.confなどが自動設定してもらいますので、そのままにしておきます。

ツールをインストール
{{{
yum install vzctl vzquota ploop
}}}

Reboot into OpenVZ
{{{
reboot
}}}

Download OS templateshttp://openvz.org/Download/template/cache
{{{
/vz/template/cache/
}}}
0

{ 賛成 }:

OpenVZ Kernel確認コマンド:
{{{
uname -r
}}}
OpenVZ Statusl確認コマンド:
{{{
service vz status
}}}

OpenVZ設定コマンド:
{{{
vzctl create CTID --ostem...

すべて表示する »
OpenVZ Kernel確認コマンド:
{{{
uname -r
}}}
OpenVZ Statusl確認コマンド:
{{{
service vz status
}}}

OpenVZ設定コマンド:
{{{
vzctl create CTID --ostemplate osname --config basic
vzctl set CTID --ipadd a.b.c.d --save
vzctl set CTID --hostname newname --save
vzctl set CTID --nameserver a.b.c.d --save
vzctl set CTID --onboot yes --save
vzctl exec CTID passwd
}}}

OpenVZ操作コマンド:
{{{
vzctl start CTID
vzctl stop CTID
vzctl restart CTID
vzctl destroy CTID
vzctl enter CTID
}}}

{{{
vzlist -a
vzctl exec CTID cat /proc/user_beancounters
}}}

ヘルプ:
{{{
man vzctl
}}}

設定ファイルPath:
{{{
/etc/grub.conf
/boot/grub/menu.lst
/etc/sysctl.conf
/etc/sysconfig/selinux
}}}

{{{
/etc/vz/conf/
/vz/template/cache/
/vz/root/
/vz/private/
}}}
さらに...

@概要

@関連

@達人

iQi

@ 0賛成, 0 感謝

Lubo

@ 1賛成, 0 感謝

@フォロワー #0