IT/가상머신

install virtualbox guest addition on debian VM

smores 2012. 7. 31. 03:09

http://168.site90.net/doku.php?id=install-virtualbox-guest-additions-on-debian-vm

Install VirtualBox Guest Additions on Debian 6 VM

  1. In VirtualBox, click “Devices” menu, then “Install Guest Additions…“, it will mount the VirtualBox Guest Additions CD image in the Debian VM.
  2. Preparation:
    • sudo aptitude update
    • sudo aptitude install build-essential linux-headers-$(uname -r)
  3. Remove the modules from Debain repository:
    • sudo aptitude purge virtualbox-ose-guest-x11 virtualbox-ose-guest-utils virtualbox-ose-guest-dkms
    • Edit /etc/default/virtualbox-ose and set LOAD_VBOXDRV_MODULE to 0
      •  sudo echo LOAD_VBOXDRV_MODULE=0 > /etc/default/virtualbox-ose 
    • Reboot the Debian VM.
    • Note: You need to do this step. Otherwise, when you execute VBoxLinuxAdditions.run, it will pop the following warning:You appear to have a version of the VBoxGuestAdditions software on your system which was installed from a different source or using a different type of installer. If you installed it from a package from your Linux distribution or if it is a default part of the system then we strongly recommend that you cancel this installation and remove it properly before installing this version.
  4. Install Guest Additions:
    • su
    • sh /media/cdrom/VBoxLinuxAdditions.run


Tested on VirtualBox 4.1.18 with Debian 6.0.5
This procedure works for Crunchbang (crunchbang-10-20120207-i386.iso), but few difference:
      no need "sudo echo ..."
      instead of su, sudo su