しばらく前だけど、CentOS 5にVMwareServerをインストールしたときの記録。
まず、RPMファイルをインストール。
# ls
VMware-server-2.0.0-122956.x86_64.rpm license.txt
# rpm -ivh VMware-server-2.0.0-122956.x86_64.rpm
準備中... ########################################### [100%]
1:VMware-server ########################################### [100%]
The installation of VMware Server 2.0.0 for Linux completed successfully.
You can decide to remove this software from your system at any time by
invoking the following command: "rpm -e VMware-server".
Before running VMware Server for the first time, you need to
configure it for your running kernel by invoking the
following command: "/usr/bin/vmware-config.pl".
Enjoy,
--the VMware team
/usr/bin/vmware-config.pl
を実行して、
コンフィギュレーションしろ、と表示されているので、早速実行。
最初に関連サービスを停止するが、失敗するものもある。
まぁ、動いていないので止められないってことだろう。
# /usr/bin/vmware-config.pl
Making sure services for VMware Server are stopped.
Stopping VMware autostart virtual machines:
Virtual machines [失敗]
Stopping VMware management services:
VMware Virtual Infrastructure Web Access
VMware Server Host Agent [失敗]
Stopping VMware services:
VMware Authentication Daemon [ OK ]
Virtual machine monitor [ OK ]
続いて、ライセンスが表示される。
「受け入れるか?」と聞かれるので、「yes」を回答。
You must read and accept the End User License Agreement to continue.
Press enter to display it. [Enter]
...
Do you accept? (yes/no) yes
ネットワーク関連の問い合わせ。
最初は、仮想マシンにネットワークを利用させるか。当然「yes」。
続いて、vmnet0のブリッジに関する設定で、まず名前設定。デフォルトの「Bridged」。
さらにホストマシンのどのIFをブリッジするか。デフォルトの「eth0」。
Do you want networking for your virtual machines? (yes/no/help) [yes] [Enter]
Configuring a bridged network for vmnet0.
Please specify a name for this network.
[Bridged] [Enter]
Your computer has multiple ethernet network interfaces available: eth0, eth0:0,
eth1. Which one do you want to
bridge to vmnet0? [eth0] [Enter]
The following bridged networks have been defined:
. vmnet0 is bridged to eth0
次は、別のブリッジネットワークを設定するか。
今回のホストマシンには、2枚のNICがあり、それぞれをゲストにブリッジしたいので、「yes」。
(何でvmnet2?)
あとは上と同様、ただし、割り当てるIFは「eth1」。
そして、以上で、ブリッジネットワークは終わり。
なお、あとで分かるが、名前を付ける際、上のvmnet0と同じだと、自動的に修正される。
Do you wish to configure another bridged network? (yes/no) [no] yes
Configuring a bridged network for vmnet2.
Please specify a name for this network.
[Bridged] [Enter]
Your computer has multiple ethernet network interfaces available: eth0:0,
eth1. Which one do you want to
bridge to vmnet2? [eth0] eth1
The following bridged networks have been defined:
. vmnet0 is bridged to eth0
. vmnet2 is bridged to eth1
Do you wish to configure another bridged network? (yes/no) [no] [Enter]
次はNAT。
仮想マシンでNATを使うか?との問い合わせには、デフォルトを回答(=yes)。
NATはvmnet8固定みたい。そう言えばWindowsのVMwarePlayerがそうだった気がする。
で、すべてデフォルトで回答。
途中、使ってないサブネットを見つけて、それをNAT用に使うとか、
ホストOSにDHCPサーバがあるので、
VMwareのNAT用DHCPサーバの邪魔をしないよう、
(1)か(2)の方法で設定しろ、と表示される。
Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] [Enter]
Configuring a NAT network for vmnet8.
Please specify a name for this network. [NAT] [Enter]
Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes] [Enter]
Probing for an unused private subnet (this can take some time)...
The subnet 192.168.206.0/255.255.255.0 appears to be unused.
This system appears to have a DHCP server configured for normal use. Beware
that you should teach it how not to interfere with VMware Server's DHCP server.
There are two ways to do this:
1) Modify the file /etc/dhcpd.conf to add something like:
subnet 192.168.206.0 netmask 255.255.255.0 {
# Note: No range is given, vmnet-dhcpd will deal with this subnet.
}
2) Start your DHCP server with an explicit list of network interfaces to deal
with (leaving out vmnet8). e.g.:
dhcpd eth0
Consult the dhcpd(8) and dhcpd.conf(5) manual pages for details.
Hit enter to continue. [Enter]
The following NAT networks have been defined:
. vmnet8 is a NAT network on private subnet 192.168.206.0.
Do you wish to configure another NAT network? (yes/no) [no] [Enter]
次はホストオンリーのネットワーク。
これも一応設定しておくので、[Enter](=yes)。
vmnet1となる。あぁ、2個目のブリッジがvmnet2だったのは、ホストオンリーで予約されてたってことね。
やっぱり、ホストOSのDHCPサーバを設定しろ、と表示される。
Do you want to be able to use host-only networking in your virtual machines?
[yes] [Enter]
Configuring a host-only network for vmnet1.
Please specify a name for this network.
[HostOnly] [Enter]
Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes] [Enter]
Probing for an unused private subnet (this can take some time)...
The subnet 172.16.173.0/255.255.255.0 appears to be unused.
This system appears to have a DHCP server configured for normal use. Beware
that you should teach it how not to interfere with VMware Server's DHCP server.
There are two ways to do this:
1) Modify the file /etc/dhcpd.conf to add something like:
subnet 172.16.173.0 netmask 255.255.255.0 {
# Note: No range is given, vmnet-dhcpd will deal with this subnet.
}
2) Start your DHCP server with an explicit list of network interfaces to deal
with (leaving out vmnet1). e.g.:
dhcpd eth0
Consult the dhcpd(8) and dhcpd.conf(5) manual pages for details.
Hit enter to continue. [Enter]
The following host-only networks have been defined:
. vmnet1 is a host-only network on private subnet 172.16.173.0.
Do you wish to configure another host-only network? (yes/no) [no] [Enter]
vmnet2で指定した名前「Bridged」が、すでにvmnet0で使われているので、
「Bridged (2)」に変更したよ、ってメッセージ。
Network name "Bridged" for vmnet2 is already in use by vmnet0 -- renaming to
"Bridged (2)"
続いて、管理する際にアクセスするポート番号の指定。
すべてデフォルトのまま。
Please specify a port for remote connections to use [902] [Enter]
Please specify a port for standard http connections to use [8222] [Enter]
Please specify a port for secure http (https) connections to use [8333] [Enter]
次が管理者の指定。
現在 '' が管理者だけど、変更する?って聞かれて、
'' って何?と思い、デフォルトで回答したら、rootを管理者として利用するって設定された。
The current administrative user for VMware Server is ''. Would you like to
specify a different administrator? [no] [Enter]
Using root as the VMware Server administrator.
仮想マシン用ファイルの保存先ディレクトリ指定。
あまり意味はないが、「/var/VMs
」に変更した。
In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] /var/VMs
The path "/var/VMs" does not exist currently. This program is going to create
it, including needed parent directories. Is this what you want? [yes] [Enter]
次はシリアル番号。
VMwareのサイトで取得しておいたシリアル番号を入力。
Please enter your 20-character serial number.
Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: *****-*****-*****-*****
VMware VIX APIのインストール。
すべてデフォルトで回答。
ちなみに、「VMware VIX API」とは、VMwareのSDK&APIダウンロードページ内の説明によると、
VIX APIを使用すると、ユーザーは仮想マシンの操作を自動化したり、仮想マシン内でスクリプトを実行したり、仮想マシン間でファイルを転送したりすることができます。
だそうだ。
Creating a new VMware VIX API installer database using the tar4 format.
Installing VMware VIX API.
In which directory do you want to install the VMware VIX API binary files?
[/usr/bin] [Enter]
In which directory do you want to install the VMware VIX API library files?
[/usr/lib/vmware-vix/lib] [Enter]
The path "/usr/lib/vmware-vix/lib" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] [Enter]
In which directory do you want to install the VMware VIX API document pages?
[/usr/share/doc/vmware-vix] [Enter]
The path "/usr/share/doc/vmware-vix" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] [Enter]
The installation of VMware VIX API 1.6.0 build-122956 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-vix.pl".
以上で完了。
サービスが開始される。
Enjoy,
--the VMware team
Starting VMware services:
Virtual machine monitor [ OK ]
Virtual machine communication interface [ OK ]
VM communication interface socket family: [ OK ]
Virtual ethernet [ OK ]
Bridged networking on /dev/vmnet0 [ OK ]
Host-only networking on /dev/vmnet1 (background) [ OK ]
DHCP server on /dev/vmnet1 [ OK ]
Bridged networking on /dev/vmnet2 [ OK ]
Host-only networking on /dev/vmnet8 (background) [ OK ]
DHCP server on /dev/vmnet8 [ OK ]
NAT service on /dev/vmnet8 [ OK ]
VMware Server Authentication Daemon (background) [ OK ]
Shared Memory Available [ OK ]
Starting VMware management services:
VMware Server Host Agent (background) [ OK ]
VMware Virtual Infrastructure Web Access
Starting VMware autostart virtual machines:
Virtual machines [ OK ]
The configuration of VMware Server 2.0.0 build-122956 for Linux for this
running kernel completed successfully.
参考:
VMware Server - VMware内