Adjust and expand the disk space of VirtualBox in VMDK format

Source: Internet
Author: User

Adjust and expand the disk space of VirtualBox in VMDK format

If the format of the virtual machine is VDI, you can use this article to adjust the disk size: adjust the size of the VirtualBox hard disk.

However, when creating a virtual machine, the landlord used the VMDK format to ensure compatibility with VMWare. At this time, it will be a bit difficult to expand the hard disk space. An error will be reported when you follow the procedure described above.

VBoxManage: error: Resize hard disk operation for this format is not implemented yet!

In this case, you need to first convert the VMDK format to the VDI format, and then expand the hard disk space. Refer to this article: How to resize a VirtualBox vmdk file

The steps are summarized as follows. Please shut down the virtual machine and then perform the following operations (the host machine is Ubuntu, And the other environments are the opposite ):

1. Execute the following command to convert vmdk to vdi

VBoxManage clonehd "source. vmdk" "cloned. vdi" -- format vdi

The time required for this process varies according to the hard disk size.

2. Find the hard disk Of Your Vm and execute the command

VBoxManage list hdds

The terminal prints the following information

UUID: c88e1c81-4375-4cd6-8835-3cce0905620b
Parent UUID: base
State: created
Type: normal (base)
Location:/home/yourname/VirtualBox VMs/Win7/Win7.vdi
Storage format: VDI
Capacity: 25600 MBytes

3. resize the vdi Hard Disk

VBoxManage modifyhd, your uuid -- resize 40960


Note that the unit of the last parameter is M. For example, if you want a hard disk of 40 GB, the value is 1024 M * 40 = 40960.

4. How to run the newly converted VDI file from the virtual machine? First, find the path of the vdi file, and then open virtualbox. The system information is listed on the right of the software. Click storage, delete the original vmdk, and add the new vdi file.

(Not here ...)

4. Restart the VM. In "email computer"> "management"> "Storage"> "disk management", you should be able to see that the newly added partition is an idle partition, so you can pull the partition in the VM.

 

VirtualBox modifies the Virtual Machine disk VDI size

How to solve 0x000000C4 error in Windows 8.1 installation in VirtualBox

Use Virtualbox in Ubuntu 12.10 to install Win7

Complete Windows XP installation using VirtualBox Virtual Machine in Ubuntu

Install Ubuntu 13.10 On VirtualBox Virtual Machine

Install the Virtual Machine Software VirtualBox 4.3.10 on Ubuntu

VirtualBox details: click here
VirtualBox: click here

This article permanently updates the link address:

Related Article

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.