「サーバ情報」 サーバ情報に関連する各種申請を纏めるページです。 社外サーバ コーポレートサーバ ホスト名 mythossv.mytho... 続きを読む
CentOS 5 (Linux)にVMware Server 2.0をインストールしてみるテスト
つー事で、CentOS 5.1にVMware Server 2.0をインストールしてみました。
インストールといっても、rpmパッケージを落としたんで楽勝ですけどね。
ダウンロードは下のリンクから出来ます。
http://download2.vmware.com/software/server/VMware-server-2.0.0-116503.i386.rpm
※VMwareアカウントが必要
ダウンロードするとき、何も考えずにwgetで行ったらエラーが出た罠。
[root@www vmware]# wget http://download2.vmware.com/software/server/VMware-server-2.0.0-116503.i386.rpm?HashKey=55b2168085db1408081f962ecf6836d4&AuthKey=1222434039_7a0b7860b7d3240cee3e9c695fc270f3
[1] 2877
[root@www vmware]# --21:50:34-- http://download2.vmware.com/software/server/VMware-server-2.0.0-116503.i386.rpm?HashKey=55b2168085db1408081f962ecf6836d4
download2.vmware.com をDNSに問いあわせています... 204.203.18.146, 204.203.18.161
download2.vmware.com|204.203.18.146|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 403 Forbidden
21:50:35 エラー 403: Forbidden。
[1]+ Exit 1 wget http://download2.vmware.com/software/server/VMware-server-2.0.0-116503.i386.rpm?HashKey=55b2168085db1408081f962ecf6836d4
[root@www vmware]#
AuthKeyもちゃんと取得したやつを指定したんだけどねぇ。
ダウンロードは素直にブラウザなどから行った方が良いみたい。
ダウンロードが終わったらそのディレクトリを開き、rpmコマンドで叩き込みます。
[root@www vmware]# rpm -Uvh VMware-server-2.0.0-116503.i386.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
[root@www vmware]#
"/usr/bin/vmware-config.pl"を使って初期設定を行えと言う事なので、素直に行います。
[root@www vmware]# cd /usr/bin/ [root@www 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 ]You must read and accept the End User License Agreement to continue.
Press enter to display it. [enter]
失敗しているのは、VMwareの仮想マシンの停止処理。
起動してないんで、失敗して当然。気にしません。
黄色で書いた所でエンターキーを押すと、ライセンスとかの表示が始まります。
自分とか英語読めないんで、華麗にスペースキーでスルーですw
NOTICE: BY DOWNLOADING AND INSTALLING, COPYING OR OTHERWISE USING THE
SOFTWARE, YOU AGREE TO BE BOUND BY THE TERMS OF THIS VMWARE MASTER END
USER LICENSE AGREEMENT ("EULA"). IF YOU DO NOT AGREE TO THE TERMS OF
THIS EULA, YOU MAY NOT DOWNLOAD, INSTALL, COPY OR USE THE SOFTWARE, AND
YOU MAY RETURN THE UNUSED SOFTWARE TO THE VENDOR FROM WHICH YOU ACQUIRED
IT WITHIN THIRTY (30) DAYS AND REQUEST A REFUND OF THE LICENSE FEE, IF
ANY, ALREADY PAID UPON SHOWING PROOF OF PAYMENT. "YOU" MEANS THE
NATURAL PERSON OR THE ENTITY THAT IS AGREEING TO BE BOUND BY THIS EULA,
THEIR EMPLOYEES AND THIRD PARTY CONTRACTORS THAT PROVIDE SERVICES TO
YOU. YOU SHALL BE LIABLE FOR ANY FAILURE BY SUCH EMPLOYEES AND THIRD
PARTY CONTRACTORS TO COMPLY WITH THE TERMS OF THIS AGREEMENT.
(中略)
Distributing the Software. VMware Server is intended for your personal
non-commercial use only. If you are interested in distributing the
Software for internal or external use, promotion, review or as part of a
solution, please apply now at http://www.vmware.com/go/distribution.
Do you accept? (yes/no) yes[enter]
この規約に同意しますか?と聞いてくるのでyesと入力しエンターを押します。
Thank you.The bld-2.6.18-8.el5-i686smp-RHEL5 - vmmon module loads perfectly into the
running kernel.The bld-2.6.18-8.el5-i686smp-RHEL5 - vmci module loads perfectly into the
running kernel.The bld-2.6.18-8.el5-i686smp-RHEL5 - vsock module loads perfectly into the
running kernel.Do you want networking for your virtual machines? (yes/no/help) [yes] [enter]
ネットワークを仮想PCに割り当てるかどうか聞かれます。
標準でyesが入ってるので、そのままエンターでOK。
Configuring a bridged network for vmnet0.Please specify a name for this network.
[Bridged] [enter]
仮想ネットアダプタ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 [enter]
仮想PCがネットワークを使う際、NAT接続をするかを聞いてきます。
直接繋ぎたいので、ここは逆らって「NO」と叫んでおきましょう。
Do you want to be able to use host-only networking in your virtual machines?
[no] [enter]
仮想PCだけがネットワークを使えるようにするかどうかです。
別にこだわりはないので、標準のnoで。
The bld-2.6.18-8.el5-i686smp-RHEL5 - vmnet module loads perfectly into the running kernel.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]
The current administrative user for VMware Server is ''. Would you like to
specify a different administrator? [no] [enter]
VMware Infrastructure Web Accessや、VMware Infrastructure Clientで接続するポートなどが指定できます。標準でもポートが衝突してなければ問題ないです。
また、管理者の指定なども出来ますが、ローカルで使う分には誰でも入れた方が便利なのでnoのまま進む感じ。
Using root as the VMware Server administrator.In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] [enter]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] [enter]
VMware Serverの仮想PCをインストールする場所を聞いてきます。
保存先を変えたい場合は変更する感じで。
ディレクトリが無かった場合は、作成の許可も聞いてくるのでyesで。
Please enter your 20-character serial number.Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: *****-*****-*****-***** [enter]
ライセンスキーを入力します。
Ver1のも使えるかもしれませんが、一応Ver2の物を入力しました。
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] Execution aborted.The VMware VIX API failed to install. Please correct the problem and run
vmware-config.pl again.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 ]
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-116503 for Linux for this
running kernel completed successfully.[root@www bin]#
最後にVMware VIX APIのインストールです。
適当にエンターとか押しまくってたら、なぜかインストールが中止された罠。
まー、使う予定無いんで良いんですけどねー。
設定の質問に答え終わると、VMware Server 2.0が自動起動します。
ここまでくればLinuxでの作業は終了で、あとはWindowsから行う事が出来る。
インストールしたVMware Serverへのアクセス手段は、大まかに2通りほど。
まずは、今まで通りコンソールを通してアクセスする。
ただ、バーション2からはプログラムのコンソールは廃止されて、Webコンソールに接続する。
そのため、サーバ側でファイヤーウォールを使っている場合はポート解放など行う必要がある。
接続的にはブラウザで「ServerIP:Port」の形式でアクセスするだけ。
![]()
![]()
![]()
![]()
「Login Name」と「Password」はLinux側のアカウントを指定する。
SSLの警告が出たりするけど、気にせず続行すれば表示される。
ただ、Webなだけあって少しレスポンスが悪い。
もう一つの接続方法としては、ESX Serverなどと同じくVMware Infrastructure Client (VI Client)を使っての接続。
![]()
![]()
![]()
レスポンスタイムもWebより若干良い。
使うならこっちかなー。
よくよく考えると、LinuxにVMware Serverを入れたら、普通にESXもどきじゃない?w
まー、何十万円と無料が同じ性能な分け無いんですけど、VI Client使ってるとESX使ってる気分に。
ちょいとお得な雰囲気を味わえるかもー。
トラックバック(2)
トラックバックURL: http://type-y.com/mt/mt-tb.cgi/601
確定 ハードウェア Dell PowerEdge 2970 CPUクアッドコア AMD Opteron 2376(2.3GHz) × 2メモリ16GB... 続きを読む
コメントする