仮想マシン制御サーバ(Linux実機 - vmhost)のセットアップ

OSとしてCentOS4.4をインストール。(SELinux無効)

初期設定

yumのレポジトリを最適化したり、yum -y updateしたりしておく。

VMWareのインストール

VMWare Serverをダウンロード(要ユーザ登録)し、インストール。
VMWare Server Console (以下VSC)からアクセスする為に、ポート902に穴をあけておく。

[root@vmhost ~]# # yumでカーネルがアップデートされないようにする。
[root@vmhost ~]# echo "exclude=kernel* kmod-nvidia* xorg-x11-drv-nvidia" >>/etc/yum.conf

[root@vmhost ~]# # インストール
[root@vmhost ~]# rpm -Uvh VMware-server-1.0.2-39867.i386.rpm
[root@vmhost ~]# vmware-config.pl
Making sure services for VMware Server are stopped.

Stopping VMware services:
   Virtual machine monitor                                 [  OK  ]

You must read and accept the End User License Agreement to continue.
Press enter to display it. 

VMWARE MASTER END USER LICENSE AGREEMENT
(略)

Do you accept? (yes/no) yes

Thank you.

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons? 
[/usr/share/icons] 

What directory contains your desktop menu entry files? These files have a 
.desktop file extension. [/usr/share/applications] 

In which directory do you want to install the application's icon? 
[/usr/share/pixmaps] 

Trying to find a suitable vmmon module for your running kernel.

The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.

Do you want networking for your virtual machines? (yes/no/help) [yes] 

Configuring a bridged network for vmnet0.

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

All your ethernet interfaces are already bridged.

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] no

Do you want to be able to use host-only networking in your virtual machines? 
[no] no

Trying to find a suitable vmnet module for your running kernel.

The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.

Please specify a port for remote console connections to use [902] 

xinetd を停止中:                                           [  OK  ]
xinetd を起動中:                                           [  OK  ]
Configuring the VMware VmPerl Scripting API.

Building the VMware VmPerl Scripting API.

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Installing the VMware VmPerl Scripting API.

The installation of the VMware VmPerl Scripting API succeeded.

Generating SSL Server Certificate

In which directory do you want to keep your virtual machine files? 
[/var/lib/vmware/Virtual Machines] 

The path "/var/lib/vmware/Virtual Machines" does not exist currently. This 
program is going to create it, including needed parent directories. Is this 
what you want? [yes] 

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:  (適宜入力)

Starting VMware services:
   Virtual machine monitor                                 [  OK  ]
   Virtual ethernet                                        [  OK  ]
   Bridged networking on /dev/vmnet0                       [  OK  ]

The configuration of VMware Server 1.0.2 build-39867 for Linux for this running
kernel completed successfully.

[root@vmhost ~]# # 常時起動
[root@vmhost ~]# chkconfig vmware on

Sambaのインストール

後々便利なので、お好みでSambaを入れておく。(scpでもいいんだけど)

[root@vmhost ~]# yum -y install samba
(略)
[root@vmhost ~]# pdbedit -a -u cepoc
new password:
retype new password:
(略)

[root@vmhost ~]# # 適宜修正
[root@vmhost ~]# vi /etc/samba/smb.conf

[root@vmhost ~]# chkconfig smb on
[root@vmhost ~]# /etc/rc.d/init.d/smb start
SMB サービスを起動中:                                      [  OK  ]
NMB サービスを起動中:                                      [  OK  ]
[root@vmhost ~]#