Friday, July 23, 2010

? VirtualBox 3.2.6 and Guest Additions
















Its quite some time, I struggled to get this thing up and running in my :


Host OS : Windows 7 64 bit
Guest OS:  Ubuntu Server 10.04
Virtual Box Guest Additions for 64 bit

If you are also experiencing the same, then follow the simple steps:

1. Install VBox 3.2.6 on Window 7 
2. Install Ubuntu Server 10.04 
3. Start Virtual Server & Click Devices - > Shared folders and add a Host machine folder.
4. Click on Devices - > Install Guest Additions
5. On Terminal paste  
     sudo apt-get install build-essential linux-headers-`uname -r`
    Note: replace 'uname -r' with the actual value 
    e.g. sudo apt-get install build-essential linux-headers-2.6.32-21-server
6. Create mount points for the Shared drive and then run the following 
     sudo mount /dev/cdrom /mnt
    Note: Point to the actual cdrom  in your machine. 
7. Run 
     sudo bash /mnt/VBoxLinuxAdditions-amd64.run
   Note: There might chances of you getting following errors and not all     features are installed properly



Installing the Window System drivers ...fail!
(Could not find the X.org or XFree86 Window System.)



This is fine. VirtualBox's Guest Additions installs some features that we don't need on a server. If you want these features, you'll have to install them by 

     sudo apt-get install xserver-xorg xserver-xorg-core
8. Reboot the Guest OS and as a last step, you have to now mount the Host share to Guest mount point
    mount -t vboxfs share mountpoint
     Note: If you get an error like this mount: unknown filesystem type 'vboxfs'
Run the following command
mount -t vboxsf share mountpoint
    Replace the share and mountpoint with your actuals.
9. Browse to your mount point to see the shared Folders/ Files.


10. To make this permanent loadable :
      append fstab with 
       'HostShareName /GuestMountPoint vboxsf defaults  0 0' 
      after running sudo vi /etc/fstab


    Note: If Step#10 is executed wrongly, system will not Boot



















   

No comments:

Post a Comment