Install Fedora 15 on VirtualBox and Steps to Install VirtualBox Guest Additions on Fedora 15

Fedora 15 is the latest Linux release with new features including GNOME 3 shell. GNOME 3 gives totally different desktop experience . As I said in my earlier post, VirtualBox 4.0.8 supports GNOME 3 shell nicely inside virtual machine after VirtualBox guest additions installed properly.  With the help of desktop virtualization software, this guide shows how to install Fedora 15 on VirtualBox and install working VirtualBox guest additions.

I’m not covering anything about GNOME 3 in Fedora 15 with VirtualBox here, but this post can be part of it, since it requires proper virtualbox guest additions installation.

First install the OS  to virtual hard disk inside virtualbox, to do it follow the steps.

 

Install Fedora 15 on VirtualBox

1) Download the proper release for your computer processor type ( 32bit or 64bit) – More information available here.

2) Create a new virtual machine and select OS type as Fedora. Set the memory and hard disk size more than recommended size. Make sure to enable the 3D support under Display settings of virtual machine.

Install Fedora 15 on VirtualBox

Other settings are very normal. Mount the downloaded Fedora 15 ISO file to CD Drive and power on the virtual machine.

3) By default it will boot from CD and start working as live Operating System from CD. We need to install the OS permanently to hard disk. Go to Applications –> System Tools –>Install to Hard Drive.

 

Install Fedora 15 on VirtualBox

This will start the installation to local (virtual) disk. You can go with default selections and create the partition (Installation steps are very easy).

irtualBox Guest Additions on Fedora 15

 

4) Once installation completed, remove the ISO file from CD drive and reboot the machine. Now you should have the working Fedora 15 from local hard disk in VirtualBox. You may get a GNOME error initially, its OK. GNOME will not work without VirtualBox guest additions and hardware acceleration support for display.

 

Steps to Install VirtualBox Guest Additions on Fedora 15

VirtualBox 4.0.8 guest additions support Fedora 15 properly, but the installation is not straight forward. There is a guide available in Fedora website about installing VB additions on Fedora virtual machine which is mentioned here, but it did not work for me ( I guess for you too).

Therefore, I have to follow the same steps which I explained earlier for Fedora 14. The original guide is available here, anyhow I’m repeating the same steps again.

1) Make sure the network of virtual machine is configured properly and its getting internet with downloads access.

2) Open Terminal ( Applications –> System Tools –> Terminal) and log in as root ( Type su and password). Run the following command.

yum -y update kernel

3) Once the above command completed successfully, run the below one,

yum -y install kernel-devel kernel-headers dkms gcc gcc-c++

Restart the machine after the completion.

4) Now, go to Devices in Virtualbox console menu and select ‘Install Guest Additions’ to mount the built-in ISO file.

5) In terminal, go inside mounted drive ( cd /Media/VBOXADD……) and run the following command with root access ( Type su and password)

sh ./VBoxLinuxAdditions.run

irtualBox Guest Additions on Fedora 15

Restart again and get the working VirtualBox guest additions in Fedora 15.

6) Auto resize adjustment, more screen resolution sizes, full screen view, seamless mode and shared folders started working now.

desktop virtualization software

7) VirtualBox Shared folders with Windows XP host in Fedora 15 works as explained in my earlier guide.

Please make sure these all commands are case sensitive and you should type the folder names properly. Here is the C drive of my host Windows XP which can be accessed in Fedora 15 guest virtual machine.

virtualbox shared folders in fedora 15

 

As expected GNOME 3 shell is working inside this virtual machine after the guest additions installation. I will explain that procedure later.

I hope this guide is informative in installing Fedora 15 in VirtualBox hard disk and VB guest additions. Please leave a comment if it works or not.

Have fun!

Comments

  1. Hasib says

    Hi,
    the solution is simple , check your hardware and OS support PAE or not
    run
    $uname -r
    2.6.40.4-5.fc15.i686.PAE

    if you see . PAE that means you need kernel-PAE-devel package

    #yum install kernel-PAE-devel

    or
    # yum install kernel-devel

    or simply install both the development headers/libs

    Thanks & Regards
    Hasib

  2. Egbert says

    Hi,
    When I attempt to install fedora to the hard disk on the virtual machine it freezes when it is at about 1/3 of the progress bar. Only thing I can do then is switch off the machine. Anyone know a solution?

    Egbert

    • Abhinav says

      Try Alt + F4 when it freezes. This should work. Also please post where exactly the installation freezes. Is it during the first boot like when setting the date and time and which fedora version you are trying to install?

      • Egbert says

        I am not sure what Alt-F4 was supposed to do but nothing happens. I’m installing Fedora 15 from the live system unto the virtual hard-drive, so yes I have to choose date and time, and it hangs after I have designated all the properties and started the installation.

        First a small window appears with small things the installer is overwriting and then a larger window appears with a long blue progress bar. It seems to freeze at about 1/3rd of this bar. The progress bar is currently freezed at about 3/5th of the bar (maybe because I pressed alt-f4 a couple times?). It doesn’t seem to continue at the present time though. Do I just have to wait? How long does installation normally take?

  3. Egbert says

    I had it running trough the night and the size of the VM disc increased to 30 GB for some reason, but the installation bar was still stuck at about 3/5th. Also the task manager showed that VM was straining my CPU really hard, don’t know if that’s normal during a frozen state.

    • Abhinav says

      I also had issues with fedora 15, It used to hang during the first boot at the date and time screen. But it was resolved for always after pressing alt+f4 which forces the installation to next step. I think you can try installing fedora 13 for now and see if that installs properly. Also make sure the that the disc successfully pass the disc check.
      As for the size of the VM you can always change it in settings panel.

  4. mateus says

    Thank you very much, I followed your guide and managed to install fedora 15 and the extensions without a problem. Really, much appreciated.

  5. dysonsphere says

    thanks. this worked flawlessly. after trying many other solutions, finally got Gnome3 working in Fedora16.

  6. Yosef Coelho says

    Just an update.

    for fedora v16 & VirtualBox 4.0, using the full installation DVD, all the update steps are not necessary.

    basically, on terminal:
    su
    cd /media
    ./VB*run

    and it’s done.

  7. Daniel says

    I was running Fedora 15 on VirtualBox (v4.1.8, host Win7 64) fine for several months, including guest additions. Today I installed LibreOffice 3, and since that point guest additions have stopped working. Attempts at reinstalling guest additions failed; although the CD image was mounted and the directory tree could be listed and browsed, all files on the image showed up empty (or gave an input/output error when trying to execute/open them).

    I have figured out that VirtualBox 4.1.8 does a faulty mount of the guest additions image. So if you are trying to reinstall additions and can’t open/run any files on the VBox image, unmount it, then mount it manually through “Devices > CD/DVD drives > Choose file for virtual CD/DVD-ROM media…” and select the guest additions ISO file from VirtualBox’ main application directory. Installation should now work.

  8. Matt Heck says

    Intersting. I wonder if it’s an SELINUX issue. You might try relabeling the guest additions ISO. In any case, you may want to review SELINUX logging after trying this and having it fail. (You can always temporarily “throw the big switch” by doing a “setenforce 0″ and then testing, but I really don’t like recommending people do that.)

    • Daniel says

      SELinux doesn’t seem to be the problem, the only denial in my audit log is 4 months old.
      I didn’t set up the guest image myself so I can’t guarantee that something fishy wasn’t done with it, but I highly doubt it. From what the creator says it should be little more than a vanilla F15 installation with a few development-related packages and libraries installed. When I have a little more time I might set up my own and see whether I immediately get the same problem. In the very least, it should help determine whether the problem is with VirtualBox or somewhere within the guest.

  9. Stan Hill says

    Hi, I don’t have experience with virtual machines or fedora, but I’m going to need fedora for a class I’m taking. I downloaded virtual box, and I downloaded Fedora 16. I’m following the steps as best as I can but when I click to start fedora in virtual box, the screen comes up prompting me to start fedora so I hit enter and I get a black screen. I know i’m missing something, and I’m not familiar with all the terminology yet such as you said to “Mount the downloaded Fedora 15 ISO file to CD Drive”. Please help. I have to learn this