How to change the size of a virtual hard disk with VirtualBox

Tags:
How to change the size for a VirtualBox harddisk image file 
Used VirtualBox version 4.1.8 on OS X 10.7.2
 
Open a terminal and navigate to the directory containing the vdi file.
Enter the following command
 
VBoxManage modifyhd 'Windows Server 2009.vdi' --resize 40960
 
After changing the size of the vdi file you should resize the harddisk from within your guest operating system.

 

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.