To extend space for a virtual disk using the VirtualBox own management Tools command

Source: Internet
Author: User
Tags gparted

VirtualBox Virtual disk space is not enough, the default is 10G. To enlarge, the graphical interface does not find the operable menu. Google a bit with the VBox command tool vboxmanage can be resolved.

C:\Program files\oracle\virtualbox>vboxmanage MODIFYHD E:\VBOX\UBUNTU12.04\UBUNTU1204-201302-DISK1.VMDK-- Resize 30000
0% ...
Progress state:vbox_e_not_supported
VBoxManage.exe:error:Resize hard disk operation for this format was not implemented yet!

The original virtual machine is in the VMDK format, this command can only support VDI format。 What to do

Discovery can use Vboxmanager to convert virtual hard disk storage file formats
C:\Program files\oracle\virtualbox>vboxmanage Clonehd e:\vbox\Ubuntu12.04\Ubuntu1204-201302-disk1.vmdk e:\vbox\Ubuntu12.04\ Ubuntu1204-201310-disk1.vdi--format VDI
0% ... 10% ... 20% ... 30% ... 40% ... 50% ... 60% ... 70% ... 80% ... 90% ... 100%
Clone hard disk created in format ' VDI '. Uuid:455b7aa4-d776-4254-8353-d9b5b3fa1
09b

At last use Vboxmanager to expand the provisioned VDI file.
C:\Program files\oracle\virtualbox>vboxmanage MODIFYHD E:\vbox\Ubuntu12.04\Ubunt
U1204-201310-disk1.vdi--resize 30000
0% ... 10% ... 20% ... 30% ... 40% ... 50% ... 60% ... 70% ... 80% ... 90% ... 100%

You're done, you want to attach the new virtual hard disk (VDI) to the virtual machine.

Open the virtual machine settings, locate the storage, click on the virtual hard disk controller, click on the "Add virtual hard Disk", and select "Use Existing virtual disks", check the size of the VDI file, and then see the controller more than one hard disk icon to see the capacity of 29.30G.
Delete the original VMDK virtual disk. Determine the save configuration. Done!!

Don't be busy, there's another one.
After you start the virtual machine, you also use the Gparted-gnome Partition Editor tool to initialize the newly expanded partition, or the system will not recognize the newly expanded space.
Use sudo apt-get install gparted in Ubuntu for installation. The tool is a graphical interface. Good. After setting the key menu "edit", "Apply all Actions", the system starts to perform the initialization of the extended disk.

Gnome Partition Editor website address: http://gparted.sourceforge.net/

A word of mouth

Copy the original vid virtual hard disk data to the new vid hard drive, example:

old vdi-> New VDI
C:\Program Files\oracle\virtualbox\vboxmanage.exe Clonevdi E:\vbox\server2003\win2003.vdi E:\vbox\server2003\ Server2003.vdi "--existing

To extend space for a virtual disk by using the VirtualBox Self-management tool command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.