DEV Community

GaMa
GaMa

Posted on

6 2

Virtualbox Increase Disk Size How to Resize a VirtualBox Linux VDI Disk under Windows Host

I usually set a big amount of space for my VMs, but this time I created an Ubuntu VM with just 15GB of dynamic allocated space. I wanted to use it "just to test stuff" and I knew I would probably make a mess and that VM won´t last much. But, all things went more than great and I ended up using it as my "prod" environment for now, this is were the guest started to complain about the limited space left, I did a quick search in Google and I got the following:

  1. Shutdown your VM
  2. Make a copy of you VDI, you can just ctrl+c, ctrl+v
  3. VirtualBox comes with an utility called VBoxManage.exe which is usually located at "c:\Program Files\Oracle\VirtualBox\VBoxManage.exe"
  4. To modify the size of your VDI to 25GB execute the following command:

C:\path\of\your\vdifile\"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd yourvdifilename.vdi --resize 25000

Output:

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Start your guest VM and in my case it registered the new space automatically but if your guest didn´t you can follow the instructions detailed here: http://derekmolloy.ie/resize-a-virtualbox-disk/

Props to derekmolloy from where I took this information

Image of AssemblyAI tool

Challenge Submission: SpeechCraft - AI-Powered Speech Analysis for Better Communication

SpeechCraft is an advanced real-time speech analytics platform that transforms spoken words into actionable insights. Using cutting-edge AI technology from AssemblyAI, it provides instant transcription while analyzing multiple dimensions of speech performance.

Read full post

Top comments (2)

Collapse
 
arnolde profile image
Ethan Arnold

Before anyone else blindly follows these instructions which are really easy... In most cases you actually do need to use a partition manager to enlargen the partition, as described on the derekmolloy page.

Collapse
 
greatvovan profile image
Vladimir

Works on Macs as well.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay