Increase Virtual Box VDI disk size on MAC or Windows
Need more space on your Virtual Box disc? I installed Windows 7 on Oracle Virtual Box but didn’t estimate the size of disk correctly. The drive is now nearing it’s capacity, how do you extend the size? It will take the following steps to achieve an extended disk capacity:
- Create a new virtual disk
- Clone the old disk to this newly created virtual disk
- Disconnect the old disk via storage settings in Virtual Box
- Connect/Attach the new disk to the Virtual Machine
- Boot up using the new disk
- Go to Windows Computer Management and Extend the disk space
Let’s go each step in a bit of detail now.
1. Create new virtual disk via Settings –> Storage. Make sure you choose enough size as per your requirements when creating this new disk. Choose Dynamically expanding storage for the disk storage type.
2. Clone the old disk to this new disk – the idea is that the bigger new disk receives a disc copy of the old one. Use the following command for this (assuming Oracle VirtualBox is installed at C:\VirtualBox on your machine, otherwise navigate to the appropriate directory first):
1 2 3 4 5 |
C:\VirtualBox> C:\VirtualBox>VBoxManage clonehd [OldHDDFile.vdi] [NewHDDFile.vdi] --existing C:\VirtualBox> |
Note: Use full path with [OldHDDFile.vdi] and [NewHDDFile.vdi]. It can take few minutes for the Clone process to complete.
3. Disconnect the old disk via storage settings in Virtual Box
4. Connect/Attach the new disk to the Virtual Machine
5. Boot/Start the Virtual Machine6.
6. Go to Windows Computer Management –> Disk/Storage management and Extend the disk space on C drive to use the newly created/unallocated disk space
That’s all enjoy the extended sized disk!!
Recent Posts
- Enable http/2 in Apache 16th Jan 2021
- MySQL Shell 8.x 16th Jan 2021
- vi/vim tricks 30th Dec 2020
- SELinux on CentOS 29th Dec 2020
- ssh-copy-id (password less ssh login) 26th Dec 2020
- MySQL auto_increment capacity calculation 26th Dec 2020
- Using UUID as a Primary Key 24th Dec 2020
- Keycloak and InnoDB Cluster 29th Nov 2020
- How to create Column in MySQL only if one does not exist? 19th Mar 2019
- Inject empty transactions in MySQL 5.6 GTID based Replication 25th Dec 2018
- Adding a new disk to CentOS 26th Aug 2018
- mysqldump extended inserts 26th Jun 2018
- CentOS Logical Volume Manager (LVM) 26th Oct 2017
- How to prepare SD Card for Raspberry Pi on a MAC 26th Jun 2017
- Convert .dmg file on a MAC to .iso 26th Apr 2017
Categories
- CentOS (4)
- CentOS 8 (2)
- InnoDB cluster (1)
- mysql (7)
- Raspberry Pi (1)
- ssh (1)
- Technical (3)
Tag cloud
Archives
- January 2021 (2)
- December 2020 (5)
- November 2020 (1)
- March 2019 (1)
- December 2018 (1)
- August 2018 (1)
- June 2018 (1)
- October 2017 (1)
- June 2017 (1)
- April 2017 (1)
- February 2016 (1)