PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 23, 2012, 05:10:23 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Resize a VBox vdi/vhd  (Read 1749 times)
rick0612
Full Member
***
Offline Offline

Posts: 231


The only dumb question is the one not asked.


« on: December 08, 2011, 02:32:15 PM »

This procedure is for Windows but Linux commands are the same except for paths.

Quote from Virtualbox manual:
"This currently works only for expanding the capacity of VDI and VHD formats, and only for the dynamically allocated variants. For example, if you originally created a 10G disk which is now full, you can use the --resize 15360 command to add 5 GByte more space to the virtual disk without having to create a new image and copy all data from within a virtual machine."

!!!Remember to back up the data in your vdi before doing this!!!!!

To resize a *.vdi file in Virtualbox 4.x, run this command in Windows cmd.exe:

VBoxManage modifyhd /path/to/YOUR_HARD_DISK.vdi --resize SIZE_IN_MB


   example: VBoxManage modifyhd "C:/Users/Rick/VirtualBox VMs/LXDE/LXDE.vdi" --resize 20000
   Note the quotes due to spaces in path name.

You may need the full path for VBoxManage.
   e.g. "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"
   
Change path to whatever your file name is.

In this example the resize size is 20GB. (I resized a 10GB LXDE.vdi)

The process takes just a couple of seconds.

Once the resize is complete, you need to resize and/or move the partitions in the vdi. I found that Parted Magic worked great. Just download it then make the .iso the boot drive for your vm.

Hope this helps
Logged

Averatec 2573             /HP Envy 14
12.1" screen               /14.5"
2.0GHZ                       /i5 processor
3GB RAM                    /6GB RAM
250GB HDD                /650GB HDD
Minime 2010               Virtualbox client
rubentje1991
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 2052


Rubenum Parvus MCMXCI


« Reply #1 on: December 08, 2011, 04:24:42 PM »

Thanks for all info....
=> can be useful somewhere in the future (and could already have been useful in the past)
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM