Resize A Virtual Hard Drive In VirtualBox

Опубликовано: 13 Декабрь 2019
на канале: TechFixFlix
10,777
105

In this tutorial, we will increase the size of a primary hard drive within a VirtualBox virtual machine, using a Windows host and guest. This option is not offered by default, and we will need to unmount the .vdi file, before entering a resize command via the Command Line, thereafter reattaching the .vdi file, and booting into the virtual machine. This doesn’t mark the end of the project, as the operating system initially fails to recognise the additional storage. Windows Disk Management utility is thwarted by a Recovery Partition which leaves our original volume and the new storage non-adjacent and therefore not amenable to merger. We therefore use a free download of EaseUS Partition Master to perform an initial merger, before returning to Windows Disk Management utility to complete the task.

Topics covered:
00:00 Introduction
00:34 Lack of default options in VirtualBox
00:51 Exporting a backup before proceeding
01:25 Location of the .vdi file
01:48 Detaching the virtual hard drive
02:13 Entering Command Prompt
02:35 Command to navigate to the VirtualBox directory
03:02 Command to increase capacity of .vdi file
03:18 Copying the location of the .vdi file
03:41 Copying the file name
04:01 Adding the .vdi extension
04:05 Entering the resize command
04:29 Running the completed command
04:38 Reattaching the .vdi file to the virtual machine
04:59 Rerunning the virtual machine
05:16 Viewing in Disk Management utility
05:33 Using EaseUS Partition Master to remove the recovery partition
05:53 Installing Partition Master
06:28 Launching Partition Master
06:40 Overview of current partitioning
07:07 Performing drive merger with Partition Master
07:36 Performing remaining drive merger with Disk Management
07:58 Extend Volume Wizard
08:15 Merger complete

Commands entered via Command Line:

cd “C:\Program Files\Oracle\VirtualBox”

VBoxManage.exe modifymedium “C:\Users\tff\VirtualBox VMs\TechFixFlix\TechFixFlix-disk001.vdi” --resize 60000

The first command assumes that you have installed VirtualBox to the default location. If you have customised to anything other than “C:\Program Files\Oracle\VirtualBox” you will need to reflect this in the first command.

The second command contains a number of variables which you will need to amend to reflect your specific virtual machine:

tff - Our user name. You will need to enter your user name (as it appears at Windows login).

TechFixFlix - The name of our virtual machine. You will need to modify this to the name of your virtual machine as it appears in the VirtualBox menu.

TechFixFlix-disk001.vdi - The name of our .vdi file. You will need to enter the name of your .vdi file.

60000 - The new size of our .vdi file, expressed in MB. You should enter a size of your choosing, ensuring that the virtual drive can be accommodated within your physical storage capacity.

In order to achieve a successful outcome, each of these variables must be amended to reflect your specific installation.

Related tutorials:

Install Oracle VM VirtualBox -
   • Install Oracle VM VirtualBox  

Install Windows On VirtualBox -
   • Install Windows On VirtualBox  

Video links:

EaseUS Partition Master (Disk partitioning utility). Free download:
https://www.easeus.com/partition-mana...

Video edited using Magix Movie Edit Pro. Buy from Amazon:
(US) https://amzn.to/2HOUBLL
(UK) https://amzn.to/3cRfx00

Screenshots from: Windows 10 Pro (Version 18363.476): Buy from Amazon:
(US) https://amzn.to/2SjIKHt
(UK) https://amzn.to/2GwJMgV

Audio recorded using Blue Microphones Yeti Microphone. Buy from Amazon:
(US) https://amzn.to/3cVwsys
(UK) https://amzn.to/3ne3qz2

Audio recorded using Audacity. Download free at https://www.audacityteam.org

Follow on Twitter:   / techfixflix  

More YouTube tutorials:    / techfixflix  


Смотрите видео Resize A Virtual Hard Drive In VirtualBox онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь TechFixFlix 13 Декабрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 10,777 раз и оно понравилось 105 людям.