VMware Server でクローンを作成する




VMware Server には仮想マシンのクローンを作成する機能は無い。

VMware Workstation には仮想マシンのクローンを作成する機能がある。
仮想マシンとして複数のサーバを構築したい場合には、非常に便利な機能である。

VMware Server で無理やり仮想マシンのクローンを作成する方法は次の通り。

今回は、すでに構築済みの Windows 2003 Standard Edition の仮想マシンのクローンを作成します。


1. クローンとなる仮想マシンを作成する

[ File ] --> [ New ] --> [ Vitual Machine ]

Welcome to the New Virtual Machine Wizard

[ 次へ ]

Select the Appropriate Configuration

  ● Typical

     Custom

[ 次へ ]
※ 今回は、特別に設定変更しないでインストールするため、「Typical」を選択。

Select a Guest Operating System

  ● Microsoft Windows
     Linux
     Nover Network
     Sun Solaris
     Other

  version : Windows Server 2003 Standard Edition

[ 次へ ]

Name the Virtual Machine

  Virtual machine name : 任意

  Location : 任意

[ 次へ ]
※ 「 Location 」は VMware のインストールフォルダと分けておいた方が後々便利。

Network Type

  ● Use bridged Networking
     Use network address translation[NAT]
     Use host-only networking
     Do not Use a network connection

[ 次へ ]
※ これで作成される仮想マシンがホスト OS と同じネットワークに接続することになります。
    ネットワーク接続形態は後で変更可能。

Specify Disk capacity

  Disk size : 任意
     〆 Allocate all disk space now
        Split disk into 2 GB files

[ 完了 ]

これで、Windows 2003 をインストールする仮想マシンが作成された。

通常であれば、この仮想マシンに Windows 2003 をインストールするのだが、
今回はそれをやらずに、既に構築している他の仮想マシンから
ゲスト OS のデータをコピーしてくる。


2. 仮想マシンを構成するファイルをコピーする

クローンを作成したい仮想マシンの以下のファイルを手順 1 で 「 Location 」 として指定した
フォルダに上書きコピーする。

Windows 2003 Standard Edition.vmdk
Windows 2003 Standard Edition.vmsd
Windows 2003 Standard Edition.vmx
Windows 2003 Standard Edition-flat.vmdk


3. 仮想マシンを起動する

作成した仮想マシンを選択して Power ON 。

VMware 上で識別子が重複している旨の次のようなメッセージが出力される。

The location of this virtual machine's configuration file has changed since it was last
powered on.

If the virtual machine has been copied, you should create a new unique identifier (UUID).
If it has been moved, you should keep its old identifier.

If you are not sure, create a new identifier.

What do you want to do?

  ● Create
  ○ Keep
  ○ Always Create
  ○ Always Keep

[ OK ]

識別子を新規に作成することで解決。

これで仮想マシンの構成ファイルのコピー元と全く同じ構成の
クローンが作成できました。