Compacting VirtualBox’s VDI file size? Rumi, February 8, 2017 Run defrag in the guest (Windows only) Nullify free space: With a Linux Guest run this: sudo dd if=/dev/zero | pv | sudo dd of=/bigemptyfile bs=4096k sudo rm -rf /bigemptyfile Or: telinit 1 mount -o remount,ro /dev/sda1 zerofree -v /dev/sda1 With a Windows Guest, download SDelete from Sysinternals and run this: sdelete.exe c: -z (replace C: with the drive letter of the VDI) Shutdown the guest VM Now run VBoxManage’s modifyhd command with the –compact option: With a Linux Host run this: vboxmanage modifyhd /path/to/thedisk.vdi --compact With a Windows Host run this: VBoxManage.exe modifyhd c:\path\to\thedisk.vdi --compact With a Mac Host run this: VBoxManage modifyhd /path/to/thedisk.vdi --compact This reduces the vdi size. Related Virtualbox
Phpvirtualbox fix on 5.1 using 5.0 October 12, 2017October 12, 2017 I was able to get v5.0-5 working with vbox 5.1 by commenting out the version check line and replacing it with a static value in the endpoints/api.php file: // $response[‘data’][‘responseData’][‘phpvboxver’] = @constant(‘PHPVBOX_VER’); $response[‘data’][‘responseData’][‘phpvboxver’] = “5.1-0”; Src: https://sourceforge.net/p/phpvirtualbox/discussion/general/thread/565b7f31/ Related Read More
Resizing a VirtualBox Virtual Hard Disk October 6, 2019 Prerequisites Before you start this procedure you’ll need to do the following. Make sure you have the VBoxManage command-line tool installed on your host system. Download the ISO for a GParted Live CD or else a Linux Live CD using a Linux distribution that includes the GParted partition editor utility. IMPORTANT: If the virtual disk… Read More
Install VirtualBox legacy version 5.x on CentOS 7 June 11, 2022 Install Dependencies Install Extra Packages for Enterprise Linux (EPEL) # sudo yum install epel-release wget -y Install Dynamic Kernel Module Support (DKMS) # sudo yum –enablerepo=epel install dkms -y This will install quite a few packages: Install Development Tools # sudo yum groupinstall “Development Tools” -y Related Read More