Friday, May 14, 2010

Virtual Box Guest Additions & CentOS 5

Installed CentOS into a VirtualBox virtual machine this evening. I recommend installing the Guest Additions into your virtual machines. Simple to do under Ubuntu. A little more involved with CentOS, but still easy enough.

Google is your friend. Here it is quick and easy:
  1. Start the CentOS virtual machine.
  2. Mount the VboxGuestAdditions.iso
  3. Right-click on the VirtualBox CD icon
  4. Click VboxGuestAdditions.iso to mount it as a virtual CD in CentOS

  5. Press Ctrl+Alt+F2 to open a terminal session if you are not already in one.
  6. Login as yourself (if you have sudo permisions) or root (yes, I know, a terrible thing to ever do)
  7. As yourself preface your commands below with sudo; as root simply enter the following:
  8. mount /dev/hdc /media
  9. cp /media/ /home/your_username/
  10. cd ~/your_username
  11. chmod +x
  12. yum -y install gcc
  13. If not already installed, you will also need to run:
  14. yum install kernel-devel kernel-headers
  15. Time to install the Guest Additions
  16. ./
  17. reboot or telinit 6
That's pretty much it. More pointers can be found here.

1 comment:

Anonymous said...

Thanks for this post, helped me. Wasted a few hours before seeing this.