How to install & use VirtualBox 4 on FEDORA 14

Since i left the dark side of the force and switch to a true operating system i asked myself the same questions as many of us, “Which Distribution to choose ?” “What is the best one ?” …etc…. Well ! i’m not here to answer those questions but i will show you how to make your own decision.
Multi-core CPU and RAM over 2GB are often found on home desktop, even on a laptop. All these hardware resources are barely used at 100%, what a waste of money ! don’t you think ?
Oracle provide a multi platform desktop virtualization tool called VirtualBox. It will let you run multiple virtualized OS on your favorite desktop.

Let’s start:
Before install VirtualBox, it is strongly advised to install DKMS package “to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the Linux kernel version changes during the next kernel update.“. If you have a NVIDIA card it will also help you to prevent the “black screen” if you perform a Kernel update before NVIDIA release its new driver.
Just to be sure, DKMS need compilation tools so…
[root@nowin]# yum install gcc
then
[root@nowin]# yum install dkms

Now for VirtualBox itself, first add the repository using your favorite text editor:
[root@nowin]# vi /etc/yum.repos.d/virtualbox.repo
then copy the following settings:
[virtualbox]
name=Fedora $releasever - $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc

You can now perform to VirtualBox installation:
[root@nowin]# yum install VirtualBox-4.0
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package VirtualBox-4.0.i686 0:4.0.8_71778_fedora14-1 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
VirtualBox-4.0 i686 4.0.8_71778_fedora14-1 virtualbox 53 M

Transaction Summary
================================================================================
Install 1 Package(s)

Total download size: 53 M
Installed size: 108 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 53 M
VirtualBox-4.0-4.0.8_71778_fedora14-1.i686.rpm | 53 MB 08:43
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : VirtualBox-4.0-4.0.8_71778_fedora14-1.i686 1/1

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMS [ OK ]
Starting VirtualBox kernel modules [ OK ]

Installed:
VirtualBox-4.0.i686 0:4.0.8_71778_fedora14-1

Complete!

i did copy all the output of the installation process to get your attention on 2 particular points:

  1. If you don’t see those line mean either GCC or DKMS are not installed
    Stopping VirtualBox kernel modules [ OK ]
    Uninstalling old VirtualBox DKMS kernel modules [ OK ]
    Trying to register the VirtualBox kernel modules using DKMS [ OK ]
    Starting VirtualBox kernel modules [ OK ]
  2. As it’s requested:
    Creating group 'vboxusers'. VM users must be member of that group!
    so let’s do it:
    [root@nowin]# usermod -a -G vboxusers lolo
    replace “lolo” by your username(not root !)

Now if you navigate on your menu you may see “Oracle VM VirtualBox” under system tools.

To create your fist Virtual Machine, click on “New”, choose your OS, Memory, Virtual Disk (New one !)…
/>

Then select the Virtual Disk type (expandable or fixed size), if you have a dedicated physical HDD, i would recommend to choose fixed-size.

If you want to put your virtual disk in another place than the default one (set on menu File/Preferences/General field “Default Machine Folder”) then change it now..

And that it !

Now, just have to load the media for your OS installation…



Et voila ! just have to click on “START” and perform your OS installation.

Check this howto for more help on VirtualBox.

Have fun !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: