# Expand the IVS Virtual Disk in VirtualBox

![FileWave-gray-highres.png](https://kb.filewave.com/uploads/images/gallery/2023-06/6C1TXA4sMyYVcXaC-filewave-gray-highres.png)![virtualbox-icon.jpg](https://kb.filewave.com/uploads/images/gallery/2023-06/1H4uO4rUo5Euy8Tt-virtualbox-icon.jpg)

Use this procedure to expand the virtual disk attached to a FileWave Imaging Virtual Server (IVS) running in Oracle VirtualBox.

<p class="callout warning">**Back up before resizing.** Power off the IVS and preserve a copy of the original virtual disk. The resize value is the final total size in megabytes, not the amount to add.</p>

### Resize the VirtualBox disk

The commands convert the original VMDK to VDI, resize the VDI, and convert it back to VMDK. Replace every sample filename with the actual path to your IVS virtual disk.

1\. Power off the virtual machine.  
2\. Open Command Prompt or a terminal and run the following commands. Replace `source.vmdk` with the path to the original VMDK and `(NUMBER OF MEGABYTES)` with the final total disk size.

```
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" clonehd "source.vmdk" "cloned.vdi" --format vdi
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd "cloned.vdi" --resize (NUMBER OF MEGABYTES)
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" clonehd "cloned.vdi" "resized.vmdk" --format vmdk
```

  
![vbox1.png](https://kb.filewave.com/uploads/images/gallery/2023-06/pUzG4TW7Ck3O9Hyp-vbox1.png)

3\. Rename the original vmdk file to "vagrant-centos-6.4-x86\_64-disk1.OLD" and rename resized.vmdk to the original "vagrant-centos-6.4-x86\_64-disk1"

![vbox3.png](https://kb.filewave.com/uploads/images/gallery/2023-06/MMfOVrjaZp7yMSYU-vbox3.png)

4\. Power on the IVS and sign in to its console.

5\. Run the FileWave Imaging command that expands the appliance filesystem to use the enlarged virtual disk:

```
imaging-control increase harddrive
```

6\. You will be asked "Have you extended the hard drive in the VM settings?". Answer "y".

7\. Press **Enter** when prompted. The IVS restarts after the filesystem expansion.

8\. After the restart, verify the available disk capacity from the IVS console before deleting the backup copy of the original virtual disk.