目次

動作環境情報

  • OS
    CentOS 4.x
  • VMwareServer
    Ver.1.0.1〜1.0.7まで確認済み

VMwareServerの入手

VMware社のサイトより使用するバージョン・パッケージのVMwareServerをダウンロードする。

  • ダウンロード
    VMwareServer(RPM)
    VMware-MUI(tar.gz)

シリアルナンバーを入手するためにはユーザ登録が必須となる。
参考用のライセンスキーは下記

製品種別: VMware Server for Linux
シリアルキー: 7AJ8J-U6Y2D-Q6M60-4368J
製品種別: VMware Server for Windows
シリアルキー: 92DAE-Y694D-17430-411TJ

VMwareServerのインストール

以下のコマンドにてRPM版をインストールする。

rpm -ivh VMware-server-1.0.7-108231.i386.rpm

以下の箇所にインストールされ、自動起動するように設定される。

  • コマンド
    /usr/bin
  • 設定ファイル
    /etc/vmware
  • ライブラリ
    /usr/lib/vmware

VMwareServerの初期設定

以下のコマンドにて初期設定を行う。

/usr/bin/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
    〜略〜
  • ライセンスに承諾する(yを入力)
    Do you accept? (yes/no) y
  • 保管場所指定
    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] 
  • モジュールのコンパイル確認(yを入力)
    your system (you need to have a C compiler installed on your system)? [yes] y
    
  • Linux Kernelのincludeファイル保管場所を指定
    What is the location of the directory of C header files that match your running
    kernel? [/lib/modules/2.6.18-8.el5/build/include] 
  • vmmonモジュールのビルド
    Extracting the sources of the vmmon module.
    
    Building the vmmon module.
    
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-config0/vmmon-only'
    make -C /lib/modules/2.6.18-8.el5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: Entering directory `/usr/src/kernels/2.6.18-8.el5-i686'
    〜中略〜
    make: Leaving directory `/tmp/vmware-config0/vmmon-only'
    The module loads perfectly in the running kernel.
  • 仮想ネットワークの設定(yを入力)
    Do you want networking for your virtual machines? (yes/no/help) [yes] y
  • ブリッジネットワークの使用確認
    Configuring a bridged network for vmnet0.
    
    Your computer has multiple ethernet network interfaces available: eth0, eth1. 
    Which one do you want to bridge to vmnet0? [eth0] yes
  • ブリッジネットワークに使うインターフェイスの変更有無
    The ethernet device "yes" was not detected on your system.  Available ethernet 
    devices detected on your system include eth0, eth1.  Are you sure you want to 
    use this device? (yes/no) [no] 
    
    Your computer has multiple ethernet network interfaces available: eth0, eth1. 
    Which one do you want to bridge to vmnet0? [eth0] 
    
    The following bridged networks have been defined:
    
    . vmnet0 is bridged to eth0
  • ブリッジネットワークの更なる追加有無
    Do you wish to configure another bridged network? (yes/no) [no] 
  • NATネットワークの使用確認
    Do you want to be able to use NAT networking in your virtual machines? (yes/no)
    [yes] 
  • NATネットワークにて使用するサブネットアドレスの指定(空いているネットワークを自動検出)
    Configuring a NAT network for vmnet8.
     
    Do you want this program to probe for an unused private subnet? (yes/no/help) 
    [yes] 
    
    Probing for an unused private subnet (this can take some time)...
     
    The subnet 172.16.53.0/255.255.255.0 appears to be unused.
    
    The following NAT networks have been defined:
    
    . vmnet8 is a NAT network on private subnet 172.16.53.0.
  • NATネットワークの更なる追加有無
    Do you wish to configure another NAT network? (yes/no) [no] 
  • HostOnlyネットワークの使用確認
    Do you want to be able to use host-only networking in your virtual machines? 
    [yes] 
  • HostOnlyネットワークにて使用するサブネットアドレスの指定(空いているネットワークを自動検出)
    Configuring a host-only network for vmnet1.
    
    Do you want this program to probe for an unused private subnet? (yes/no/help) 
    [yes] 
    
    Probing for an unused private subnet (this can take some time)... 
    
    The subnet 172.16.85.0/255.255.255.0 appears to be unused.
    
    The following host-only networks have been defined:
    
    . vmnet1 is a host-only network on private subnet 172.16.85.0.
    
  • HostOnlyネットワークの更なる追加有無
    Do you wish to configure another host-only network? (yes/no) [no] 
  • vmnetモジュールのビルド
    Extracting the sources of the vmnet module.
    
    Building the vmnet module.
    
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-config0/vmnet-only'
    〜中略〜
    The module loads perfectly in the running kernel.
  • 管理コンソール待ち受けポートの指定
    The default port : 902 is not free. We have selected a suitable alternative 
    port for VMware Server use. You may override this value now.
    Remember to use this port when connecting to this server.
    Please specify a port for remote console connections to use [904] 902
    
    Stopping xinetd:                                           [  OK  ]
    Starting 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] /usr/local/vmware/VirtualMachines
    
    The path "/usr/local/vmware/VirtualMachines" does not exist currently. This 
    program is going to create it, including needed parent directories. Is this 
    what you want? [yes] yes
  • ライセンスコードの入力
    Please enter your 20-character serial number.
    
    Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:  7AJ8J-U6Y2D-Q6M60-4368J
  • VMwareServerの起動
    Starting VMware services:
       Virtual machine monitor                                 [  OK  ]
       Virtual ethernet                                        [  OK  ]
       Bridged networking on /dev/vmnet0                       [  OK  ]
       Host-only networking on /dev/vmnet1 (background)        [  OK  ]
       Host-only networking on /dev/vmnet8 (background)        [  OK  ]
       NAT service on /dev/vmnet8                              [  OK  ]
    
    The configuration of VMware Server 1.0.5 build-80187 for Linux for this running
    kernel completed successfully.

VMware MUI (Management User Interface)導入

  • 圧縮ファイルをダウンロードし展開する。
    tar xfvz VMware-mui-1.0.7-108231.tar.gz
  • インストーラを実行する
    cd vmware-mui-distrib
    ./vmware-install.pl 
  • ライセンスが表示される
    Creating a new installer database using the tar3 format.
    
    You must read and accept the End User License Agreement to continue.
    Press enter to display it.  
    
    VMWARE MASTER END USER LICENSE AGREEMENT
  • ライセンスに承諾する(yを入力)
    Do you accept? (yes/no) yes
    
  • 保管先指定(実行ファイル)
    In which directory do you want to install the binary files? 
    [/usr/bin] 
  • 保管先指定(自動起動スクリプト
    What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 
    [/etc/rc.d] 
    
    What is the directory that contains the init scripts? 
    [/etc/rc.d/init.d] 
  • 保管先指定(MUI本体)
    In which directory do you want to install the VMware Management Interface 
    files? [/usr/lib/vmware-mui] 
    
    The path "/usr/lib/vmware-mui" does not exist currently. This program is going 
    to create it, including needed parent directories. Is this what you want? 
    [yes] 
  • 保管先指定(ドキュメント)
    In which directory would you like to install the documentation files? 
    [/usr/lib/vmware-mui/doc] 
    
    The path "/usr/lib/vmware-mui/doc" does not exist currently. This program is 
    going to create it, including needed parent directories. Is this what you want?
    [yes] 
  • MUIの初期設定(インストールから継続して実行)
    Before running VMware Management Interface for the first time, you need to 
    configure it by invoking the following command: 
    "/usr/bin/vmware-config-mui.pl". Do you want this program to invoke the command
    for you 2008-04-30 (水) 02:40:38 [yes] 
  • MUI用apacheの実行ユーザ
    Configuring httpd.conf to run Apache as: 
    User: nobody and Group: nobody
  • セッションタイムアウト時間の指定
    Set the number of minutes before a http session times out. (This is the length 
    of time before someone connecting to VMware Management Interface will be logged
    out) [60] 
  • MUIの起動
    Generating SSL Server Certificate
    
       Starting httpd.vmware:                                  [  OK  ]
    The configuration of VMware Management Interface completed successfully.

VMwareServerの起動/停止

インストール段階で自動起動の設定が行われるが、手動にて起動・停止を行う場合には以下を使用する。

  • 起動
    /etc/init.d/vmware start
    /etc/init.d/httpd.vmware start
  • 停止
    /etc/init.d/httpd.vmware stop
    /etc/init.d/vmware stop

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2008-11-11 (火) 14:44:59 (5637d)