PR

[VMware] VMware Server2 をインストールする

VMware Server2 をrpm使用でインストールする。

ダウンロード

VMware Server – 無償のサーバ仮想化製品

サーバー構築

pc.casey.jp » [Linux] CentOS 5.5 Final インストール手順(図解)

モジュールのインストール

# yum install gcc kernel-devel xinetd

スポンサードリンク

rpmでインストール

CDROMからインストールする場合の準備

# mkdir /mnt/cdrom
# mount /dev/cdrom /mnt/cdrom
mount: ブロックデバイス /dev/cdrom は書き込み禁止です、読込み専用でマウントします
# cp /mnt/cdrom/VMware-server-2.0.2-203138.i386.rpm ~
# umount /mnt/cdrom/

インストール

# rpm -ivh VMware-server-2.0.2-203138.i386.rpm
準備中…                ########################################### [100%]

1:VMware-server          ########################################### [100%]

The installation of VMware Server 2.0.2 for Linux completed successfully.

following command: “/usr/bin/vmware-config.pl”.

Enjoy,

–the VMware team

セットアップ

※デフォルトで設定した(環境CentOS2.6.18-8.el5-i686smp-RHEL5/GUIなし)

# vmware-config.pl

Making sure services for VMware Server are stopped.

Would you like to skip networking setup and keep your old settings as they are?(yes/no) [yes]
Please specify a port for remote connections to use [902]
Please specify a port for standard http connections to use [8222]
Please specify a port for secure http (https) connections to use [8333]
The current administrative user for VMware Server  is ”.  Would you like to specify a different administrator? [no]
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]
Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel:  (シリアルナンバーの入力)
In which directory do you want to install the VMware VIX API binary files?[/usr/bin]
In which directory do you want to install the VMware VIX API library files?[/usr/lib/vmware-vix/lib]
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]
In which directory do you want to install the VMware VIX API document pages?[/usr/share/doc/vmware-vix]
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]

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  ]
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.2 build-203138 for Linux for this running kernel completed successfully.

確認

クライアント(Windowsパソコンなど)からブラウザで http://サーバーIPアドレス:8222 にアクセスする(その後、https://サーバーIPアドレス:8333/ui/に転送される)。

証明書の受け入れ

自己証明書を利用しているため、セキュリティーに問題があるとブラウザが警告する。例外サイトとして処理する手順。

Firefoxの場合

例外を追加をクリックする。

セキュリティー例外を承認をクリックする。

InternetExplorerの場合

「このサイトの閲覧を続行する(推奨されません)。」をクリックする。

ログイン

IDとパスワードはシステムと共通とのこと。

クライアントからブラウザでアクセスし、このような画面になれば正しくインストールされている。

※サーバー側にX(GUI環境)は必要ない。

アップグレード

Cent OSが5.3から5.4にバージョンアップされました。(VMware Serverを使っている場合、カーネルがバージョンアップするとvmware-config.plを実行しなくてはならないので、自動でバージョンアップしないようにしています : http://zennin.blog55.fc2.com/blog-date-20100116.html

エラー対処

「The configuration of VMware Server 2.0.2 build-203138 for Linux for this running kernel completed successfully.」とならなかった場合は、バージョン判定を書き換える必要があるそうだ。書き換えて再度実行する。詳しくは参考文献を参照。

[root@localhost ~]# cd /tmp/
[root@localhost tmp]# cp /usr/lib/vmware/modules/source/vmnet.tar ./
[root@localhost tmp]# tar xfp vmnet.tar
[root@localhost tmp]# vi vmnet-only/compat_netdevice.h

#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 1, 19)
#   include <linux/if_ether.h>

[root@localhost tmp]# tar cfp vmnet.tar vmnet-only/
[root@localhost tmp]# mv vmnet.tar /usr/lib/vmware/modules/source/
mv: `/usr/lib/vmware/modules/source/vmnet.tar’ を上書きしてもよろしいですか(yes/no)? y

参考文献

コメント