VirtualBoxで4TBの仮想ディスクを作る
GUIでは仮想ディスクのサイズは2TBまでしか指定できませんが、CUIだと2TB以上のサイズを指定することができます。VBoxManage createhdコマンドで仮想ディスクを作ります。
ホストOS、ゲストOSとも2TB以上のディスクが認識できるOSであることが前提です。
C:\Windows\System32> D:\Package\VirtualBox\VBoxManage createhd Usage: VBoxManage createhd --filename <filename> [--size <megabytes>|--sizebyte <bytes>] [--diffparent <uuid>|<filename> [--format VDI|VMDK|VHD] (default: VDI) [--variant Standard,Fixed,Split2G,Stream,ESX]
早速4TBのHDDに仮想ディスクを作ってみました。
サイズはMB指定で、あまりぴったりにするとエラーがでて作れなかったので15GB程余裕を持たせました。
4000340336640 / 1024 / 1024 = 3815021.8359375 → 3800000
(エラー) C:\Windows\System32>D:\Package\VirtualBox\VBoxManage createhd --filename M:\nas_ 4TB_140119.vdi --size 3815021 --format VDI --variant Fixed 0%... Progress state: VBOX_E_FILE_ERROR VBoxManage.exe: error: Failed to create hard disk VBoxManage.exe: error: Could not create the medium storage unit 'M:\nas_4TB_1401 19.vdi'. VBoxManage.exe: error: VDI: disk would overflow creating image 'M:\nas_4TB_14011 9.vdi' (VERR_DISK_FULL) VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component M edium, interface IMedium VBoxManage.exe: error: Context: "int __cdecl handleCreateHardDisk(struct Handler Arg *)" at line 391 of file VBoxManageDisk.cpp (OK) C:\Windows\System32>D:\Package\VirtualBox\VBoxManage createhd --filename M:\nas_ 4TB_140119.vdi --size 3800000 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Disk image created. UUID: f1b738f9-d6c9-41cd-abf5-f8b206a87634
--variant Fixed を指定して固定サイズにしたので4TBの仮想ディスクを作り終わるまで一晩かかりました。
平均100MB/sで書き込めたとして、10時間くらい見ておけば良いかと思います。