Advertisement
efxtv

How To Enlarge / Increase a Virtual Machine’s Disk Size in Virtual Box - Windows and Linux

Oct 7th, 2024
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | Cybersecurity | 0 0
  1. How to Enlarge a Virtual Machine’s Disk Size in VirtualBox (Windows)
  2.  
  3. If you need to increase the disk size of a virtual machine in VirtualBox, follow these steps:
  4.  
  5. 1. Open VirtualBox and select the desired virtual machine.
  6. 2. Right-click on the machine name.
  7. - For Linux users: Select Show in File Manager.
  8. - For Windows users: Select Show in Explorer.
  9. 3. This will open the location where the `.vdi` file is stored on your system.
  10. 4. Select the virtual machine you want to modify, and click on Settings.
  11. 5. Click on the Storage tab.
  12. 6. Right-click on the `.vdi` file and select Remove Attachment.
  13. 7. Navigate to the folder where the `.vdi` file exists:
  14. - For Linux users: Open a terminal in the same directory and run the following command (51200 represents 50 GB):
  15. VBoxManage modifyhd /path/to/your/Windows10_custom-disk001.vdi --resize 51200
  16.  
  17. - For Windows users: Open Command Prompt (CMD) in the same folder and run the command:
  18. VBoxManage.exe modifymedium "path\to\your\Windows10_custom-disk001.vdi" --resize 51200
  19.  
  20. 8. Return to VirtualBox: Select the machine, go to Settings, then Storage, and click on Add to attach the modified `.vdi` file.
  21.  
  22. Final Steps
  23.  
  24. After resizing the disk, you may need to boot your virtual machine and use a partitioning tool (like `gparted`) to expand the filesystem and make use of the additional space.
  25.  
  26. By following these steps, you can effectively increase the disk size of your VirtualBox virtual machine. If you have any questions or run into issues, feel free to ask for help!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement