VMwareESXi 4.1 仮想マシン作成(+VMware Tools) +
はじめに +
仮想マシン(Linux)の作成とvmware-toolsのインストール手順です。
- 仮想マシン作成以外の手順は下記を参考にして下さい。
準備 +
イメージファイルの準備 +
- データストア(/vmfs/volumes/datastore1)にCentOSのイメージファイルを転送するため、SSHを有効にします。
- SSHで接続してCentOSのイメージファイルをダウンロードします。
インターネットに接続してない場合はWinSCP(プロトコルはSCPを指定)などイメージファイルをコピーします。# cd /vmfs/volumes/datastore1 # wget http://ftp.riken.jp/Linux/centos/5.5/isos/x86_64/CentOS-5.5-x86_64-bin-DVD-1of2.iso # wget http://ftp.riken.jp/Linux/centos/5.5/isos/x86_64/CentOS-5.5-x86_64-bin-DVD-2of2.iso
仮想マシン作成 +
仮想マシン作成開始 +
- メニューのインベントリから新規仮想マシンを選択します。
名前と場所 +
- 管理に適した名前を付けます。
データストア +
- datastore1(/vmfs/volumes/datastore1)を選択します。
仮想マシンのバージョン +
- バージョン7を選択します。
ゲストOS +
- RedHat Enterprize Linux 5を選択します。
メモリ +
- 環境に合わせてメモリを割り当てます。
ネットワーク +
- NICを選択します。
SCSIコントローラ +
- SCSIコントローラは「LSI Logic SAS」を選択します。
ディスクの選択 +
- ディスクは新規作成します。
ディスクの作成 +
- datastore1から8GBほど割り当てます
詳細オプション +
- ディスクはSCSIを選択します。
終了準備の完了 +
- 仮想マシンの内容を確認して問題なければ終了を押します。
DVDイメージのマウント +
- 仮想マシンを右クリックして[設定の編集]を選択して仮想マシンのプロパティを開きます。
- 「パワーオン時に接続」にチェックを入れます。
- 「データストアISOファイル」をチェックしてISOファイルを指定します。
仮想マシンの起動 +
- DVDをマウントしたら仮想マシンを起動します。
ゲストOSのインストール +
- コンソールからCentOSのインストールを開始します。
CentOSのインストールは以下を参照してください
VMware-toolsのインストール +
仮想マシンのネットワーク性能やディスクアクセス性能を向上させるため、VMware-toolsをインストールします。
仮想マシンへのログイン +
- vSphere Clientのコンソール経由で仮想マシンにログインします。
VMware-toolsのインストール +
- 仮想マシンを右クリックして「VMware-toolsのインストール/アップグレード」を選択します。
選択後は「/media配下」にVMware-toolsがマウントされます。
- VMwareToolsをコピーします。
# cd /usr/local/src/ # cp /media/VMware\ Tools/VMwareTools-8.3.2-257589.tar.gz ./
- 解凍してインストールを開始します。
# tar xzvf VMwareTools-8.3.2-257589.tar.gz # cd vmware-tools-distrib # ./vmware-install.pl
- インストールを開始します。解像度以外はデフォルトなので、そのまま[ENTER]を押します。
Creating a new VMware Tools installer database using the tar4 format. Installing VMware Tools. 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] #■デフォルト In which directory do you want to install the daemon files? [/usr/sbin] #■デフォルト In which directory do you want to install the library files? [/usr/lib/vmware-tools] #■デフォルト 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] #■デフォルト 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] #■デフォルト The installation of VMware Tools 8.3.2 build-257589 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-tools.pl". 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] #■デフォルト Initializing... Stopping VMware Tools services in the virtual machine: Guest operating system daemon: [ OK ] Virtual Printing daemon: [ OK ] Unmounting HGFS shares: [ OK ] Guest filesystem driver: [ OK ] Found a compatible pre-built module for vmmemctl. Installing it... : :(省略) : Please choose one of the following display sizes that X will start with: [1] "320x200" [2] "320x240" [3] "400x300" [4] "512x384" [5] "640x400" [6] "640x480" [7] "720x480" [8] "800x480" [9] "854x480" [10] "720x576" [11] "800x600" [12] "1024x768" [13] "1280x720" [14] "1280x768" [15] "1152x864" [16] "1280x800" [17] "1366x768" [18] "1280x960" [19] "1440x900" [20] "1280x1024" [21] "1400x1050" [22] "1680x1050" [23] "1600x1200" [24] "1920x1080" [25] "1920x1200" [26] "1920x1440" [27] "2048x1536" [28] "2560x1600" [29] "2560x1920" Please enter a number between 1 and 29: [3] 20 #■解像度を指定します : :(省略) : The configuration of VMware Tools 8.3.2 build-257589 for Linux for this running kernel completed successfully. You must restart your X session before any mouse or graphics changes take effect. You can now run VMware Tools by invoking the following command: "/usr/bin/vmware-toolbox" during an X server session. To enable advanced X features (e.g., guest resolution fit, drag and drop, and file and text copy/paste), you will need to do one (or more) of the following: 1. Manually start /usr/bin/vmware-user 2. Log out and log back into your desktop session; and, 3. Restart your X session. Enjoy, --the VMware team
- 完了後、「VMware-toolsのインストール終了」を選択します。
VMware-toolsの確認 +
- 仮想マシンを再起動すればインストール完了です。 仮想マシンのサマリで「VMware-tools 実行」と表示されていれば問題ありません。
SSHの停止 +
- 作業後はSSHを無効すべきですが、バックアップリストアの設定で利用するため、このまま有効にしておきます。
バックアップ・リストア +
次は仮想マシンのバックアップ/リストアの設定を行ないます。


















