![]() Resizing the drive with VBoxManage is basically instantaneous from the command line, but keep in mind that once you’re back in the virtual OS (Windows, OS X, Linux, or whatever else you have running in VirtualBox) you will probably want to reallocate the partition to use the new space. If the path to the VM file is in a deeply rooted or complex location, use quotes or using the drag drop to print path trick which works great in Terminal app to properly point to a complex directory hierarchy. Relaunch VirtualBox and boot your newly resized guest OS.VBoxManage showhdinfo ~/path/to/vmdrive.vdi If desired, verify the change has taken place with the showhdinfo command:.VBoxManage modifyhd -resize 30000 ~/Documents/VM/Windows10.vdi VBoxManage modifyhd -resize įor example, let’s say there’s a Windows 10 VM VDI file located at /Users/Paul/Documents/VM/Windows10.vdi and we want it to grow from 15GB to 30GB, the syntax would be: Now in the proper directory, you’re ready to run the resize command with the following syntax:.Open the Terminal app and use the following command to navigate to the VirtualBox app directory:Ĭd /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/.How to Resize a VirtualBox Virtual Disk in Mac OS ![]() Keep in mind the resize utility uses megabytes for measurement, so if you’re changing a vm file to be 30GB that would be 30000MB, 50GB as 50000, and so forth. Since this is modifying the virtual machine, it’s a good idea to back up the VDI or VHD file beforehand, if you’re not comfortable with the terminal at all you should probably back up the entire Mac first. Even if you chose to install the VirtualBox command line tools, it won’t be in your path, so you’ll be heading into the VirtualBox.app contents to use the utility instead. To resize a VDI or VHD file in Mac OS X (this may work the same in linux, let us know), you’ll use the VBoxManage tool from the Mac command line. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |