Advertisement
sytchenko

VirtualBox Tips

Apr 29th, 2018 (edited)
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Error: kernel headers not found
  2. sudo apt-get install build-essential linux-headers-`uname -r` dkms
  3. -----------------------------------
  4. Shrink disk space Linux Guest
  5. dd if=/dev/zero of=/tmp/zerofile; rm /tmp/zerofile
  6. VBoxManage.exe modifyhd "Path\Debian.vdi" --compact
  7.  
  8. Shrink disk space Windows Guest
  9. Clean disk
  10. Defragment disk
  11. http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx
  12. sdelete.exe C: -z
  13. VBoxManage.exe modifyhd "Path\Debian.vdi" --compact
  14. -----------------------------------
  15. Change UUID
  16. VBoxManage.exe internalcommands sethduuid "Path\Debian.vdi"
  17. -----------------------------------
  18. Manual mount and install Guest Additions
  19.  
  20. sudo mount /dev/cdrom /media/cdrom
  21. cd /media/cdrom
  22. sudo ./VBoxLinuxAdditions.run
  23. reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement