How-To guides

How to resize a VirtualBox vmdk file

VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Not only is VirtualBox an extremely feature-rich, high-performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software.

VMDK (Virtual Machine Disk) is a file format that describes containers for virtual hard disk drives to be used in virtual machines like VMware Workstation or Oracle VirtualBox.

In the earlier post, we have looked at how to install Ubuntu on Oracle VirtualBox.There could be scenarios wherein you would run out of space on Virtualbox and need to resize the virtual image, the following steps would help you to resize the VMDK file.

  1. Add “VirtualBox Installation location” to the Path variable
  2. We are going to use VBoxManage command-line interface to resize the disk. With VBoxManage, you can completely control VirtualBox from the command line of your host operating system. VBoxManage supports all the features that the graphical user interface gives you access to, but it supports a lot more than that.

    Image – VBoxManage command

  3. For resizing the disk, first, convert the vmdk file to vdi format using the following command VBoxManage clonehd "ubuntu1864.vmdk" "cloned.vdi" --format vdiHere ubuntu1864.vmdk is the file that we are going to resize & cloned.vdi is intermediate file in vdi format.

    Image – Convert the vmdk file to vdi format

  4. Then resize the vdi file to the required size using the following command VBoxManage modifyhd "cloned.vdi" --resize 51200 Here cloned.vdi is an intermediate file in vdi format.

    Image – Resize the vdi file to the required size

  5. Next step is to convert the vdi file back to vmdk file using the following command VBoxManage clonehd "cloned.vdi" "ubuntu18641.vmdk" --format vmdkHere ubuntu18641.vmdk is the resultant file & cloned.vdi is intermediate file in vdi format.

    Image – convert the vdi file back to vmdk file

  6. Once the conversion and resize is completed, we would need to download GParted Live CD to resize the disk. On your VirtualBox Storage settings, set Gparted Live CD and boot the image.

    Image – Set Gparted Live CD and boot the image.

  7. On the GParted boot screen, choose default settings.

    Image – choose default settings.

  8. Resize the disk using the slider per your needs.

    Image – Resize the disk

  9. Choose ‘Apply Changes’ and Resizing would be complete.

    Image – Resizing complete

Congrats! We have now resized the disk, continue using VirtualBox.

Like this post? Don’t forget to share it!

Additional Resources :

Summary
Article Name
How to resize a VirtualBox vmdk file
Description
VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use.Here we look at how to resize a VirtualBox vmdk file
Author
Publisher Name
Upnxtblog
Publisher Logo
Karthik

Allo! My name is Karthik,experienced IT professional.Upnxtblog covers key technology trends that impacts technology industry.This includes Cloud computing,Blockchain,Machine learning & AI,Best mobile apps, Best tools/open source libs etc.,I hope you would love it and you can be sure that each post is fantastic and will be worth your time.

Share
Published by
Karthik

Recent Posts

Developing a Strong Disaster Recovery Plan for Your Business

Operating a business often entails balancing tight schedules, evolving market dynamics, and shifting consumer requirements.…

13 hours ago

How to Secure Your WordPress Hosting by Upgrading Your Login URL

Of course, every site has different needs. In the end, however, there is one aspect…

3 days ago

Social Media Marketing: A Key to Business Success with Easy Digital Life

In today's digital-first world, businesses must adopt effective strategies to stay competitive. Social media marketing…

5 days ago

Best 7 AI Tools Every UI/UX Designer Should Know About

62% of UX designers now use AI to enhance their workflows. Artificial intelligence (AI) rapidly…

7 days ago

How AI Enhances Photoshop Workflow: A Beginner’s Guide

The integration of artificial intelligence into graphic design through tools like Adobe Photoshop can save…

3 weeks ago

The Rise Of Crypto Trading Bots: A New Era In Digital Trading

The cryptocurrency trading world has grown significantly in recent years, with automation playing a key…

4 weeks ago

This website uses cookies.