2011年5月26日木曜日

VMwareServer から ESXi への移行の際の変換

1:ovftoolのダウンロード
http://www.vmware.com/download/eula/ovf_eula.html

2:コマンドプロンプトで変換
C:\User\test> cd C:\Program Files\VMware\VMware OVF Tool
C:\User\test> ovftool C:\Test.vmx C:\Test.ovf

※もしServerでの利用時にディスクドライブにISO等を読み込んでいた場合は
 変換前に対象部分をvmxファイルから削除しておく。

3:vSphere Clientでインポート
ファイル>OVFテンプレートのデプロイ

ESXi のバージョンアップ

1:VMware vSphere CLIのダウンロード&インストール
http://downloads.vmware.com/jp/d/details/vcli41/ZHcqYmRoaCpiZHd0aA==

2:ESXiのパッチをダウンロード
http://www.vmware.com/patch/download/
※検索対象にESXがあるので間違いに注意
 ダウンロードしたファイル(今回はupdate-from-esxi4.1-4.1_update01.zip)をC:\直下に移動

3:コマンドプロンプト起動
C:\User\test> cd C:\Program Files\VMware\VMware vSphere CLI\bin
 CLIフォルダに移動
C:\User\test> vihostupdate.pl --server 192.168.0.0 --install --bundle C:\update-from-esxi4.1-4.1_update01.zip
 ESXiサーバーのIPを指定とパッチファイルを指定し、インストールの実行

4:ESXiサーバー再起動
3のインストール処理が終了したらサーバー再起動後画面確認でVerチェック

2011年5月25日水曜日

ESXi での VMware Tools インストール(CentOS)

仮想サーバー右クリック>ゲスト>VMware Tools のインストール/アップグレード

$ reboot
$ mount /dev/cdrom /mnt
$ tar zxf /mnt/VMwareTools-8.3.7-341836.tar.gz
$ umount /mnt
$ cd vmware-tools-distrib
$ ./vmware-install.pl

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 daemon files?
[/usr/sbin]
$ [空Enter]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
$ [空Enter]

The path "/usr/lib/vmware-tools" 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 documentation files?
[/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]
$ [空Enter]

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]
$ [空Enter]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start

Enjoy,

$ cd ../
$ rm -rf vmware-tools-distrib/