How to dynamically modify the size of a VirtualBox Disk

Source: Internet
Author: User


How to dynamically modify the disk size of VirtualBox when downloading the Android source code today, the virtual machine suddenly says that the disk is not enough. It was really big. When creating this virtual machine, it was directly built based on the recommended size, I did not expect the Android source code to be so space-consuming. No way. You can't create a new disk. You need to create a new disk. Google, find the following method to dynamically modify the disk size of the virtual machine. A dynamic modification is to first create a new disk of the expected size, then clone the content of the existing disk to the new disk, and then replace the original disk with the new disk. Www.2cto.com VBoxManage createhd-filename new-file.vdi-size-in-MB-rememberVBoxManage clonehd oldfile newfile-existing to VirtualBox GUI, replace the Virtual Machine hard disk. then start the system and use DiskUtility to format the new space and mount the volume. in fact, we can use the following command to complete: 1 VBoxManage createhd-filename D: \ VirtualPC \ Ubuntu120.vdi-size 1200000-remember2 VBoxManage clonehe D: \ VirtualPC \ Ubuntu. vdi D: \ VirtualPC \ Ubuntu120.vdi-existing
VBoxManage.exe is in the c: \ Program Files \ Oracle \ VirtualBox directory. We can add this directory to the system environment variable (I. e. PATH) www.2cto.com PATH = % PATH %; c: \ Program Files \ Oracle \ VirtualBox references: www.2cto.com http://serverfault.com/questions/365423/how-to-run-vboxmanage-exehttp://www.kiwwito.com/article/expanding-virtualbox-dynamic-hard-disks

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.