Windows のディスク管理システム ユーティリティを使用して、仮想ハード ディスク (VHD) を作成、アタッチ、デタッチできます。 VHD は、物理ハード ドライブと同様の機能を持つディスク イメージ ファイル形式です。 VHD ファイルの種類は、 .vhd
または .vhdx
です (推奨)。 VHD は、主に Hyper-V 仮想マシンで使用するように設計されています。
VHD が同時に作成および初期化されます。 [ディスク管理] ビューでは、VHD は物理ディスクと同じように見えます。 VHD が接続され、使用できる場合、ディスク アイコンは青色で表示されます。 VHD がデタッチされ、使用できない場合、ディスク アイコンは灰色で表示されます。
Prerequisites
この記事の手順を完了するには、次の前提条件を満たす必要があります。
- The user account must be a member of the Backup Operators or Administrators group.
VHD を作成する
VHD を作成するには、次の手順に従います。
From the Windows Start menu, search for and open Disk Management with Administrator permissions.
Expand the Action menu and select Create VHD.
[ 仮想ハード ディスクの作成と接続 ] ダイアログで、VHD ファイルを格納する物理コンピューター上の場所を指定します。
For the Location field, select Browse. Locate and select the folder to store the new VHD, and select OK.
Note
The location must be a fully qualified path that doesn't include the \Windows directory.
For the File name field, enter a name for the new VHD.
[ 名前を付けて保存 ] ドロップダウン リストを展開し、[ 仮想ディスク ファイル (*.vhdx)] を選択します。
Select Save.
[ 仮想ハード ディスク サイズ ] フィールドに、新しい VHD のファイル サイズを入力します。
Note
VHD は、最小サイズが 3 メガバイト (MB) のベーシック ディスクにのみできます。 サイズが大きい固定サイズの VHD の作成には、余分な時間がかかる場合があります。
[ 仮想ハード ディスクの種類 ] フィールドで、[ 動的に展開] または [固定サイズ] を選択します。
Select OK to finish.
VDH の接続
VHD (作成したディスクまたは別の既存の VHD) を使用できるようにするには、次の手順に従います。
From the Windows Start menu, search for and open Disk Management with Administrator permissions.
Expand the Action menu and select Attach VHD.
[ 仮想ハード ディスクのアタッチ ] ダイアログで、[参照] を選択 します。 Locate and select the
.vhdx
or.vhd
file for the VHD, and select OK.[ 仮想ハード ディスクの接続 ] ダイアログで、[ OK] を 選択して完了します。
VHD の切断
VHD をデタッチすると、ディスクが使用できなくなります。 VHD またはディスクに格納されているデータは削除しません。
次の手順に従って VHD をデタッチします。
From the Windows Start menu, search for and open Disk Management with Administrator permissions.
ディスクの一覧で、アタッチする VHD を見つけます。
Right-click the VHD, select Detach VHD, and then select OK.