KVMをインストールするというよりも、KVMが取り込まれた Linux Kerinel 2.6.20 以降のCentOS(5.4以降)を再インストールした時のメモ。
自宅サーバがそろそろカオス気味なので整理しようと試みる。
以前にも VMware Server や OpenVZ を試したこともあるのだけど、今回は Linux KVM を試してみる。
CPU AMD AM2 64×2 5200+
MEM 8GB
HDD は 1TB を 2台準備し、後でRAID0を組んで二重化する予定。
KVMをインストールするというよりも、KVMが取り込まれた Linux Kerinel 2.6.20 以降のCentOS(5.4以降)を再インストールした時のメモ。
自宅サーバがそろそろカオス気味なので整理しようと試みる。
以前にも VMware Server や OpenVZ を試したこともあるのだけど、今回は Linux KVM を試してみる。
CPU AMD AM2 64×2 5200+
MEM 8GB
HDD は 1TB を 2台準備し、後でRAID0を組んで二重化する予定。
Linux クライアントから Linux サーバのsamba 共有ディレクトリ(smb) をマウントする方法。
ファイルシステム cifs を読み書き出来るようにする。
# yum -y install samba-client
PHPのチューニングの一つとしてAPCをインストールしてみる。
まずは pear 等をインストール。
# yum --enablerepo=utterramblings install php-pear php-devel httpd-devel
続いて APC をインストール。
まずはリポジトリの登録。
# rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
リポジトリファイルを作成する。
# vi /etc/yum.repos.d/utterramblings.repo [utterramblings] name=Jason Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/ gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka gpgcheck=1 priority=1 enabled=0
apxsとはAPacheの拡張機能(eXtenSion)のこと。
標準モジュールでない、サードパーティや独自のDSOモジュールをコンパイルしてインストールすることができます。
# yum -y install httpd-devel yum -y install httpd-devel Loaded plugins: downloadonly, fastestmirror Repository 'vz-base' is missing name in configuration, using id Repository 'vz-updates' is missing name in configuration, using id Loading mirror speeds from cached hostfile * addons: www.ftp.ne.jp * base: www.ftp.ne.jp * epel: ftp.kddilabs.jp * extras: www.ftp.ne.jp * updates: www.ftp.ne.jp Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package httpd-devel.i386 0:2.2.3-43.el5.centos set to be updated --> Processing Dependency: apr-util-devel for package: httpd-devel --> Processing Dependency: apr-devel for package: httpd-devel --> Running transaction check ---> Package apr-devel.i386 0:1.2.7-11.el5_3.1 set to be updated ---> Package apr-util-devel.i386 0:1.2.7-11.el5 set to be updated --> Processing Dependency: openldap-devel for package: apr-util-devel --> Processing Dependency: db4-devel for package: apr-util-devel --> Processing Dependency: expat-devel for package: apr-util-devel --> Running transaction check ---> Package db4-devel.i386 0:4.3.29-10.el5 set to be updated ---> Package expat-devel.i386 0:1.95.8-8.3.el5_4.2 set to be updated ---> Package openldap-devel.i386 0:2.3.43-12.el5 set to be updated --> Processing Dependency: cyrus-sasl-devel >= 2.1 for package: openldap-devel --> Running transaction check ---> Package cyrus-sasl-devel.i386 0:2.1.22-5.el5_4.3 set to be updated --> Finished Dependency Resolution Dependencies Resolved Continue reading »
自宅メインサーバのスペックは CPU AMD AM2 64×2 5200+ メモリ8G。
せっかく 64bit マシンでメモリも 8G まで認識するので VPS の導入を検討していた。
VMWare Server や Xen は既に試した。
VMWare Server は 標準で GUI が用意されていて分かりやすいのだけど、リソースを食うため却下。
Xen は悪くないのだけど、検討している当時(1年ほど前)の私の Linux に対する知識では、やや敷居が高く断念した。
yumコマンドで以下のようなエラーが発生したとき。
There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named cElementTree Please install a package which provides this module, or verify that the module is installed correctly. Continue reading »
自宅サーバの32bitマシンにOpenVZをインストール作業中、以下のようなエラーが出た。
[root@Triton ~]# yum install gcc There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named cElementTree Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.4.3 (#1, Sep 3 2009, 15:37:12) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
yumコマンドのバージョンが不整合を起こしているらしい。
仕方がないので、再インストールしてみる。