Resizing virtual disk image(VDI) with fixed size storage
Posted: 26. Feb 2014, 01:51
Hi,
I have installed the latest version (v 4.3.6 r91406) of virtual, and I installed a windows 7 from a disc image file [iso] saved on an external hard disk. As screen shot below shows.

Also, virtula disk image(VDI) is shown in the settings of VM

I have applied the command to rezise virtual disk, but a little error is still showing me.

I have read this section:
Re: How to resize a Virtual Drive
Postby mpack ยป 25. Aug 2013, 11:47
What if I used Fixed Disks or Snapshots, or VMDK?
As the advice above states, resizing of fixed VDIs or VHDs is not directly supported, nor is resizing of formats other than VHD/VDI, nor can you resize disks which are part of a snapshot chain.
However, all of these problems are easily addressed if you clone the disk to a supported format first, using :-
Code: Select all Expand view
VBoxManage clonehd <infilename or UUID> <outfilename> --format VDI --variant Standard
You can then resize the resulting dynamic VDI using "VBoxManage modifyhd" as described in the previous message.
If a snapshot chain is involved then <infilename> should be the name of the latest snapshot VDI in the "Snapshots" subfolder. Do not make the rookie mistake of cloning the base VDI. In this case "clonehd" will create a merged clone and it's important that you not incorporate this back into a VM which is still expecting a chain of difference disk images. Either build a new VM around the clone, or delete all the snapshot markers from the original VM, then replace the disk file. If the VM did not use difference images (no immutable drive, linked clone or snapshot) then you can use the Storage settings panel to remove the old disk and replace with the new one.
----------------
Could anyone please be more detailed about what I can write in-place of of each of these below?
in 'infilename' and
outfilename
--format vdi
--variant Standard
I have installed the latest version (v 4.3.6 r91406) of virtual, and I installed a windows 7 from a disc image file [iso] saved on an external hard disk. As screen shot below shows.

Also, virtula disk image(VDI) is shown in the settings of VM

I have applied the command to rezise virtual disk, but a little error is still showing me.

I have read this section:
Re: How to resize a Virtual Drive
Postby mpack ยป 25. Aug 2013, 11:47
What if I used Fixed Disks or Snapshots, or VMDK?
As the advice above states, resizing of fixed VDIs or VHDs is not directly supported, nor is resizing of formats other than VHD/VDI, nor can you resize disks which are part of a snapshot chain.
However, all of these problems are easily addressed if you clone the disk to a supported format first, using :-
Code: Select all Expand view
VBoxManage clonehd <infilename or UUID> <outfilename> --format VDI --variant Standard
You can then resize the resulting dynamic VDI using "VBoxManage modifyhd" as described in the previous message.
If a snapshot chain is involved then <infilename> should be the name of the latest snapshot VDI in the "Snapshots" subfolder. Do not make the rookie mistake of cloning the base VDI. In this case "clonehd" will create a merged clone and it's important that you not incorporate this back into a VM which is still expecting a chain of difference disk images. Either build a new VM around the clone, or delete all the snapshot markers from the original VM, then replace the disk file. If the VM did not use difference images (no immutable drive, linked clone or snapshot) then you can use the Storage settings panel to remove the old disk and replace with the new one.
----------------
Could anyone please be more detailed about what I can write in-place of of each of these below?
in 'infilename' and
outfilename
--format vdi
--variant Standard













