✂️ VirtualBox

Small information nuggets and recipies about VirtualBox


Table of Contents

(most recent on top)

Resize disk files

.vmdk = VMWare disk

  1. How to resize a VirtualBox vmdk file - Stack Overflow
  2. Resize /dev/sda1 disk of your Vagrant / VirtualBox VM
cd ~/.minikube/machines/minikube/

… from 1.

VBoxManage clonehd "disk.vmdk" "cloned.vdi" --format vdi
VBoxManage modifyhd "cloned.vdi" --resize 15360 # = 15 * 1024
# 1. open VirtualBox
# 2. detach old `disk.vmdk`
# 3. delete old `disk.vmdk`
VBoxManage clonehd "cloned.vdi" "disk.vmdk" --format vmdk

… from 2.

# Follow the tutorial on how to use `gparted` to extend the 
# partition inside the disk and use the new unallocated space