Manual usage:
Oracle VM VirtualBox Command Line Management Interface Version 4.3.6
Oracle Corporation
property in copyright
Usage:
VBoxManage modifyhd
[–type normal | writethrough | immutable | shareable |
Read Only | Multiple Attachments]
[–Auto Reset On | Off]
[–Property]
[–Compact]
[–Resize |–Resize bytes]
Pengdemabook-air: Windows Chen Peng $ cd VirtualBox\ VMs/windows/
Modify a fixed-size virtual hard disk into a dynamically allocated storage hard disk:
Pengdmabook-air: Windows Chen Peng $ vbox manage modify HD Windows-disk1.vmdk-type normal.
Modify the size of the virtual hard disk to 50G:
Pengdmabook-air: Windows Chen Peng $ vbox manage modify HD Windows-disk1.vmdk–Resize 5 1200.
0%…
Progress status: VBOX_E_NOT_SUPPORTED
VBoxManage: Error: The hard disk resizing operation in this format has not been realized!
Eh, this format is not supported. Ok, let's create a new clone disk.
Chen Peng Windows $ VBoxManage createhd
Usage:
Vboxmanage create HD–file name
[–size |–size byte]
[–diff parent |
[–format VDI|VMDK|VHD] (default: VDI)
[–variant standard, fixed, split 2G, streaming, ESX]
PengdemaBook-air: Windows Chen Peng $ vbox manage create HD-–file name windows.VHD-–size 51200–format vhd–variant standard.
0%… 10%…20%…30%…40%…50%…60%…70%…80%…90%… 100%
The disk image has been created. UUID: 1092 de3a-f9ce-40bc-88 C3-6a 29 ebc 8432 1
Cloning usage:
Pengdemabook-air: Windows Chen Peng $ vbox management clone
Usage:
VBoxManage clone
[–format VDI|VMDK|VHD|RAW|]
[–variant standard, fixed, split 2G, streaming, ESX]
[–Existing]
Pengdemabook-air: Windows Chen Peng $ vbox manage clone HD Windows-disk1.vmdkwindows.vhd–existing.
0%… 10%…20%…30%…40%…50%…60%…70%…80%…90%… 100%
A cloned hard disk created in VHD format. UUID: 1092 de3a-f9ce-40bc-88 C3-6a 29 ebc 8432 1