8月 31
まずは導入前のCPU情報取得する。
[root@uranus]#
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 67
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
stepping : 2
cpu MHz : 2612.071
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy
bogomips : 5226.42
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
powernowがインストールされているか確認する。
Continue reading »
8月 29
いつも設定する度に忘れているのでメモ。
設定ファイルたち。
vi /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/sysconfig/network
vi /etc/hosts
ONBOOT=yes
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:18:F3:EB:57:05
IPADDR=192.168.0.80
NETMASK=255.255.255.0
NETWORK=192.168.0.0
GATEWAY=192.168.0.1
IPV6INIT=no
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=xxxxxxxx
GATEWAY=192.168.0.1
Continue reading »
8月 28
ゲストOSを起動しようとすると以下のエラーが出る。
環境:
ホストOS、ゲストOSともにCentOS 5.3。
VMware Server 1.0.9
VMware Server 起動時のエラーメッセージ。
VMwareServer is installed, but it has not been (correctly) configured
for the running kernel. To (re-)configure it, invoke the
following command: /usr/bin/vmware-config.pl.
/sbin/service vmware start しても同様のエラー。
[root@ariel ~]# /sbin/service vmware start
VMware Server is installed, but it has not been (correctly) configured
for the running kernel. To (re-)configure it, invoke the
following command: /usr/bin/vmware-config.pl.
言われたとおりに、vmware-config.pl でコンフィグし直してみる。
Continue reading »
8月 28
作業内容
・Webサーバー構築(Apache)
・データベースサーバー構築(MySQL)
・MySQLデータベース自動バックアップ運用(mysqlhotcopy)
・MySQL用GUI設定ツール導入(phpMyAdmin)
phpMyAdminをインストしようとしたらPHPバージョンが低かったため、php 5.2をインスコ
centos 5 で php 5.2を使う
・ゲストOSとして複数マシンにCentOS 5.3 をインストール。
→あとから考えたら、クリーンなOSイメージをコピペで良かった気がした。
・phpMyAdminが動作しない模様。
→明日やる。
8月 20
CentOS5初期設定
仮想マシン構築 VMware Server 1.0.9
ゲストOSとしてCentOS5.3をネットワークインストール
Perlモジュールパッケージ管理システム導入(cpan2rpm)
ファイル改竄検知システム導入(Tripwire)
rootkit検知ツール導入(chkrootkit)
アンチウィルスソフト導入(Clam AntiVirus)
ファイアウォール構築(iptables)
NTPサーバー構築(NTPD)
外部からドメイン名でサーバーにアクセスできるようにする(DiCE)
Webサーバー構築(Apache)
8月 20
私が構想を練っていたVMware Serverの運用にかなり近いたメモ。
—-
応用:仮想NIC/スイッチを用いたDMZ環境の構築
VMware Serverを利用すれば1つの物理マシンと2つの物理NICを用いてDMZ環境の構築を行うことが出来ます。
仮想環境におけるシステム要件は下記の通り。
■VMware Server(物理マシン)の要件
○物理NICを2つ持つ
○片方のNICはLANに接続
○片方のNICはWANに接続 (仮想マシンに占有)
■仮想マシン要件
○仮想マシンを2つ構築する必要があります
・1つ目の仮想マシンは仮想NICを2つ持ち、ファイアウォール・ルーターとして動作
・2つ目の仮想マシンは外部公開サービスを動作させます
■仮想スイッチ要件
○2つの仮想スイッチを構築します
・WAN側物理NICとのBridge
・内部通信用スイッチ

かえでのWebログ – VMware Serverにおけるネットワーク
—-
8月 20
yum コマンドで nmap をインストールする。
[root@ariel ~]# yum -y install nmap
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
:略
Installed: nmap.x86_64 2:4.11-1.1
Complete!
nmap コマンドで自分のポート情報を得る。
[root@ariel ~]# nmap localhost
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-08-20 02:06 JST
Interesting ports on Eris (127.0.0.1)
8月 19
パッケージをダウンロードしてサーバにSCPでアップロードする。
VMware Server 1.0.9
http://downloads.vmware.com/d/details/server109/dGpiQGpkYmRAdA==
—-
VMware Server for Linux
File type: .rpm
MD5SUM: c8fc9e9f948f2807b9f8bfb3ca318f36
English
Linux 32-bit, Linux 64-bit
—-
rpmでインストール
[root@ariel ~]# rpm -ivh VMware-server-1.0.9-156507.i386.rpm
準備中... ########################################### [100%]
1:VMware-server ########################################### [100%]
Continue reading »