VirtualBox
Configuration
Guest Additions1
Devices menu -> Insert Guest Additions CD image menu
In command line, mount the CD:
mount /dev/cdrom /media/cdrom
- Install dependencies:
apt-get update && \
apt-get install build-essential dkms linux-headers-$(uname -r)
- Run installation script:
/media/cdrom/./VBoxLinuxAdditions.run
- Reboot VM
sudo shutdown -r now
- Verify
lsmod | grep vboxguest
Fine Tuning Timers and Time Synchronization
./VBoxManage setextradata <vm-name> "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 0
./VBoxManage guestproperty set <vm-name> "/VirtualBox/GuestAdd/VBoxService/timesync-set-on-restore" 1
Commands
Compact guest virtual disk2
./VBoxManage.exe modifyhd "X:\path\to\hdd.vdi" --compact
Convert virtual disk format
./VBoxManage.exe clonehd <source> <target> --format <vhd|vdi>