*VMWare Sever [#b5718ef1]
RIGHT:更新日&lastmod(); 

**GuestOSの時計が狂うとき [#vc97e3f3]

/etc/vmware/configに以下を追加
/etc/vmware/configに以下を追加し一度GustOSを止め、起動させる

 host.cpukHz = 2400000
 host.noTSC = TRUE
 ptsc.noTSC = TRUE

host.cpukHzはHostOSのCPUクロック数。この場合は2.4GHz

**インストール [#jf88e4ce]

VMWare Severはフリーなので登録すれば[[ここ:http://www.vmware.com/jp/download/server/]]からDownloadして使用できる。このページに登録画面へのリンクがあるので
登録してライセンスキーを取得する必要がある

Downloadは「VMware-server-1.0.4-56528.i386.rpm、VMware-mui-1.0.4-56528.tar.gz」が最低あれば使用できるのでDownloadする

***Sever本体のインストール [#v39796ad]

# rpm -ivh VMware-server-1.0.4-56528.i386.rpm

***Serverの設定 [#u3d05d6b]

 # /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. <==Enter
 
 VMWARE MASTER END USER LICENSE AGREEMENT
 
 NOTICE:  BY DOWNLOADING AND INSTALLING,
 (略)
 Foundation (GPL).  A copy of the GPL is
 included on the media on which you
 
 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] <==Enter
 
 What directory contains your desktop menu entry files? These files have a
 .desktop file extension. [/usr/share/applications] <==Enter
 
 In which directory do you want to install the application's icon?
 [/usr/share/pixmaps] <==Enter
 
 Trying to find a suitable vmmon module for your running kernel.
 
 None of the pre-built vmmon modules for VMware Server is suitable for your
 running kernel.  Do you want this program to try to build the vmmon module for
 your system (you need to have a C compiler installed on your  system)? [yes] <==Enter
 
 Using compiler "/usr/bin/gcc". Use environment variable CC to override.
 
 What is the location of the directory of C header files that match your running
 kernel? [/lib/modules/2.6.16-0vl73/build/include] <==Enter
 
 Extracting the sources of the vmmon module.
 
 Building the vmmon module.
 
 Using 2.6.x kernel build system.
 make: ディレクトリ `/tmp/vmware-config0/vmmon-only' に入ります
 make -C /lib/modules/2.6.16-0vl73/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
 make[1]: ディレクトリ `/usr/src/kernels/2.6.16-0vl73-i686' に入ります
   CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
   CC [M]  /tmp/vmware-config0/vmmon-only/linux/hostif.o
 (略)
   CC [M]  /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
   LD [M]  /tmp/vmware-config0/vmmon-only/vmmon.o
   Building modules, stage 2.
   MODPOST
   CC      /tmp/vmware-config0/vmmon-only/vmmon.mod.o
   LD [M]  /tmp/vmware-config0/vmmon-only/vmmon.ko
 make[1]: ディレクトリ `/usr/src/kernels/2.6.16-0vl73-i686' から出ます
 cp -f vmmon.ko ./../vmmon.o
 make: ディレクトリ `/tmp/vmware-config0/vmmon-only' から出ます
 The module loads perfectly in the running kernel.
 
 Do you want networking for your virtual machines? (yes/no/help) [yes] <==Enter
 
 
 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 (NATは使用しない)
 
 Do you want to be able to use host-only networking in your virtual machines?
 [no] <==Enter
 
 xtracting the sources of the vmnet module.
 
 Building the vmnet module.
 
 Using 2.6.x kernel build system.
 make: ディレクトリ `/tmp/vmware-config0/vmnet-only' に入ります
 make -C /lib/modules/2.6.16-0vl73/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
 make[1]: ディレクトリ `/usr/src/kernels/2.6.16-0vl73-i686' に入ります
   CC [M]  /tmp/vmware-config0/vmnet-only/driver.o
 (略)
   CC [M]  /tmp/vmware-config0/vmnet-only/smac_compat.o
   SHIPPED /tmp/vmware-config0/vmnet-only/smac_linux.x386.o
   LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.o
   Building modules, stage 2.
   MODPOST
 Warning: could not find /tmp/vmware-config0/vmnet-only/.smac_linux.x386.o.cmd  for /tmp/vmware-config0/vmnet-only/smac_linux.x386.o
   CC      /tmp/vmware-config0/vmnet-only/vmnet.mod.o
   LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.ko
 make[1]: ディレクトリ `/usr/src/kernels/2.6.16-0vl73-i686' から出ます
 cp -f vmnet.ko ./../vmnet.o
 make: ディレクトリ `/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] <== Enter 
 [VMware Server Consoleの接続ポート(Defaultは902だが使用中のため、904に変更された)]

xinetdがインストールされていないと以下のようなWARNINGで止まるのでxinetdをインストール後/usr/bin/vmware-config.plを起動すると同じことを繰り返し、上記ポートの表示まで進む以降は以下のように続く。

 (
 WARNING: VMware Server has been configured to run on a port different from the
 default port. Remember to use this port when connecting to this server.
 Unable to find any instance of the super-server "inetd" or "xinetd".  It is
 possible that you do not have one of these packages installed on this machine.
 Please install "inetd" or "xinetd".
 
 If you do have "inetd" or "xinetd" installed, make sure that /etc/inetd.conf or
 /etc/xinetd.d exists.
 The configuration will continue, but you should re-run
 /usr/bin/vmware-config.pl after you fix the super-server.
 
 Hit enter to continue.
 
 #  <==終了してしまう
 )

''Xinetdのインストール''
 # apt-get install xinetd

''/usr/bin/vmware-config.plの再実行の続き''


 # /usr/bin/vmware-config.pl
 
 (略)
 
 WARNING: VMware Server has been configured to run on a port different from the
 default port. Remember to use this port when connecting to this server.
 xinetdを停止中:                                            [ 失敗 ]
 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] <== 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
 
 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.4 build-56528 for Linux for this running
 kernel completed successfully.


***マネージメントインターフェイスのインストール [#uf9174a5]

 # tar zxvf VMware-mui-1.0.4-56528.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. <== Enter
 
 VMWARE MASTER END USER LICENSE AGREEMENT
 
 NOTICE:  BY DOWNLOADING AND INSTALLING,
 (略)
 Foundation (GPL).  A copy of the GPL is
 included on the media on which you
 
 Do you accept? (yes/no) <==yes
 
 Thank you.
 
 Installing the content of the package.
 
 In which directory do you want to install the binary files?
 [/usr/bin] <== Enter
 
 What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
 [/etc/rc.d] <== Enter
 
 What is the directory that contains the init scripts?
 [/etc/rc.d/init.d] <== Enter
 
 In which directory do you want to install the VMware Management Interface
 files? [/usr/lib/vmware-mui] <== Enter
 
 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] <== Enter
 
 In which directory would you like to install the documentation files?
 [/usr/lib/vmware-mui/doc] <== Enter
 
 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] <== Enter
 
 The installation of VMware Management Interface 1.0.4 build-56528 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-mui.pl".
 
 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 now? [yes]<== Enter
 
 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] <== Enter
 
 Generating SSL Server Certificate
 
    Starting httpd.vmware:                                  [  OK  ]
 The configuration of VMware Management Interface completed successfully.
 
 
***起動と停止 [#e5f74499]

''VMWare ServerのVMwareの起動と停止''
 # /etc/rc.d/init.d/vmware stop
 Stopping VMware services:
    Virtual machine monitor                                 [  OK  ]
    Bridged networking on /dev/vmnet0                       [  OK  ]
    Virtual ethernet                                        [  OK  ]
 # /etc/rc.d/init.d/vmware start
 Starting VMware services:
    Virtual machine monitor                                 [  OK  ]
    Virtual ethernet                                        [  OK  ]
    Bridged networking on /dev/vmnet0                       [  OK  ]
    Starting VMware virtual machines...                     [  OK  ]

''Management Interfaceの起動と停止''
 # /etc/rc.d/init.d/httpd.vmware stop
    Shutting down http.vmware:                              [  OK  ]
 # /etc/rc.d/init.d/httpd.vmware start
    Starting httpd.vmware:                                  [  OK  ]

**GuestOSのインストール [#u44ab29f]

Xwindowのターミナルから

 $vmware

と入力するとWindowsと同じような画面(コンソール)が開くのでlocalhostで接続し、あとはWorkstationと同じようにインストールできる

コンソールを終了してもguestOSは起動している

また、このコンソール(VMware Server Windows client package)だけを別マシンにインストールして、リモートでも制御できるようだ。今回はLocalのみで行った。

**Setting [#s0c8617a]

コンソールで以下のようにセットするとホストOSをシャットダウンしたときguestOS
をシャットダウンし、ホストOSを起動したときにguestOSも起動する。

 VM -> Setting
 Option
 Startup/Shutdown
 On host startup: Power on virtual machine
 On host shutdown: Shut down guest operation system

**参考ページ [#kb67a2f1]

[[VMware Server インストール:http://rewse.jp/fukugan/article.php?id=808]]

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS