Tuesday, May 11, 2010

How To Resize A VirtualBox VM In 3 Easy Steps

VirtualBox does not make resizing a VM easy. Luckily, I’ve collected the 3 necessary steps that you’ll need to resize your VDI files:

Step 1 – Create a New and Bigger VDI file

Use the VirtualBox ‘Virtual Media Manager’ GUI to create a new VDI file that is larger in size.

Step 2 – Use the ‘VBoxManage CloneHD’ Command

This command will copy the original to the New and larger VDI. Open a command window and call this command from the VirtualBox directory. Be sure you properly reference the correct files, for example, here the command I used:

C:\Program Files\Sun\VirtualBox>vboxmanage clonehd --existing e:\virtualbox\ORIGINAL.vdi C:\Users\Mehul\.VirtualBox\HardDisks\NEW_BIGGER.vdi

Sun VirtualBox Command Line Management Interface Version 3.1.8

(C) 2005-2010 Sun Microsystems, Inc. All rights reserved.

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

Clone hard disk created in format 'VDI'. UUID: 7099c645-15c2-4656-bf90-27a444444444444

Step 2 (optional) – Call ‘setvdiuuid’ in case of an issue

Try to start your VM now that points to the NEW_BIGGER.vdi file. If you get an unusual error like this one:

Cannot register the hard disk ‘PATH’ with UUID {id goes here} because a hard disk ‘PATH2’ with UUID {same id goes here} already exists in the media registry (‘PATH to XML file’).

Then use the following command on your NEW_BIGGER.vdi:

C:\Users\Mehul\.VirtualBox\HardDisks>"c:\Program Files\Sun\VirtualBox\VBoxManage.exe"
internalcommands setvdiuuid MHDXDT1_Laptop.vdi


Sun VirtualBox Command Line Management Interface Version 3.1.8
(C) 2005-2010 Sun Microsystems, Inc. All rights reserved.

UUID changed to: d4c86bf9-3739-4894-9fee-0ec8342432a

Take note that I ran that command from the directory location of the NEW_BIGGER.vdi file. For a good explanation of this command, check out this post.

Step 3 – Resize the local drive in the VM

Your NEW_BIGGER.vdi is larger than before. However, as a final step, you need to increase the local drive in the VM. Windows 7 makes it easy with the disk management.

  • From control panel, bring up ‘Disk Management’.
  • Right click on your local C: drive (Disk 0 usually)
  • Select ‘Extend Volume’

The process is pretty easy to figure out. If you need more info and images then check out this post for a more detail.

And that’s it! You’re done. You now have a bigger drive.

Easy, wasn’t it?

Thanks to this post for majority of the initial guidance.

2 comments:

Anonymous said...

Womens High Heels cause stomach balanced nutrition: Beijing Ji Shui Tan Hospital, director of physical rehabilitation analysis: white women now a high incidence of stomach, in addition to lead to long-term mental stress, lack of scientific diet are also important factors Cheap Air Jordans. Business meals, meat, nutritional imbalance, such as some Western-style package, often a grilled steak, a piece of bread, plus a small, raw vegetables, the type and quantity of vegetables is not enough. And lunch time is short, eat fast, do not have time to slowly, very Shang Wei Cheap High Heels.

[Tips] can be in the office to prepare a pair of comfortable flat shoes, and wear high heels alternately. Usually to wear shoes or leather shoes as well, not higher than 3 cm heel, soles sloping was appropriate. Meanwhile, back protrusion is too large, Christian Louboutin Long Boots hip Alice, a woman or have chronic back pain, it is best not to wear Woman High Heels.

Dunks Heels buy an electric cooker in the morning up to the Tang Bao, and set a good time, come back at night there is a ready-made soup, more soup, make ruddy, but not fat. Meat soup, vegetarian soup, changing the pattern to drink. Meat soup floating on the surface of the oil should Piediao High Heel Sneakers.

Cheap Air Jordan 2011 choose a time to take off high heels every day to exercise, it is best to go to nature, take the initiative to get to know like-minded friends, find their own circle, love and often participate in some activities High Heels For Women.

Unknown said...

Newport Regular Cigarettes 2012 is Guizhou Province leaf tobacco development key one year, the leaf tobacco production task is heavy Marlboro Reds, requests high, the regional each Department concerned must take the high standard high grade implementation program as a core, pays special attention to the leaf tobacco production purchase work earnestly; Must take advance the water source engineering construction as the key point, pays special attention to the infrastructural facilities work earnestly; Must take realize reduces the labor to fall this efficiency as the key point, pays special attention to the modern tobacco agriculture construction earnestly Cheap Newports.

At the meeting, the provincial government with various cities, the state, has signed in 2012 the job objective letter of responsibility, simultaneously, saved the tobacco monopoly bureau on the advancement leaf Newport Cigarettes industrial development, the province water department to carry on the arrangement deployment on the advancement smoke water engineering construction.

On December 7, reporter found that in 2011 the Yunnan Province Kunming leaf tobacco production creates historical new high again, the smoke agriculture income surpasses 1,600,000,000 Yuan, realizes the leaf tobacco tax revenue 344,000,000 Yuan, in 2010 increases 55,000,000 Yuan.in 2011 the whole city completes the leaf tobacco to purchase 1,700,000 bucket, the superior smoke proportion achieves 65.02% Newport Cigarettes Website, compares year to year enhances above 15%, bi shangnian increases 17.4 percentage points Cheap Cigarettes Newport 100s