VirtualBox 5.x with SecureBoot on Fedora 24 | Ubuntu 16.04


Today I have tried to Install Virtualbox 5.0.x on my Newly Installed Fedora 24. I expected it to run smoothly as expected but It failed in kernel module compilation with following error

(modprobe vboxdrv failed. Please use 'dmesg' to find out why)

Then After I tried to reload module again with command sudo modprobe vboxdrv and failed again with following error

modprobe: ERROR: could not insert 'vboxdrv': Required key not available

Second try hinted me that there is nothing wrong in VirtualBox but something related to “key”, So I tried to search for a solution and landed to Official VirtualBox ticket which confirmed the same

VirtualBox 5.0

Now I have tried find the way to Sign the key and received many links and started following Red Hat link to sign Module, Never thought it would be this much easy, Only Few steps and You are done.

Method 1:

  1. You will need root access or root equivalent access to follow this.
  2. First you will have to generate keys for the module with following command
     [root@tejasbarot ~]# openssl req -new -x509 -newkey rsa:2048 -keyout tejasbarot.keyout -outform DER -out tejasbarot.der -nodes -days 36500 -subj "/CN=TejasBarot/"

    Notes: CN=<Common-Name>, You can write your own name too, Cool ? 
    MOK stands for Module Owned Key

  3.  Now Time to Import module in MOKManager of UEFI with Following Command:
     [root@tejasbarot ~]# mokutil --import tejasbarot.der

    Note: It will prompt you password, Make sure you remember password you enter here, You will need to enter the same password at time importing module on reboot.

  4. Now Reboot / Restsart your Fedora 24 Box.
  5. It will display MOK Screen, Press any key within TEN SECONDS  else It will boot without MOK Module.
  6.  Select “Enroll MOK”

    Entroll MOK
  7. Click on “View Key 0″ to View Key Information, Click on “Continue” to proceed.2
  8. In Next Screen, Click on “Next” to Enroll Keys.3
  9. In next screen, It will ask you for a password which you have entered at time of importing MOK (In step 3)
  10. Now Click on OK to reboot.5
  11. Now time to sign VirtualBox Modules with key generated in Step 2. Execute Following commands
    [root@tejasbarot ~]# /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./tejasbarot.keyout ./tejasbarot.der $(modinfo -n vboxdrv)
    [root@tejasbarot ~]# /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./tejasbarot.keyout ./tejasbarot.der $(modinfo -n vboxnetflt)
    [root@tejasbarot ~]# /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./tejasbarot.keyout ./tejasbarot.der $(modinfo -n vboxnetadp)
    [root@tejasbarot ~]# /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./tejasbarot.keyout ./tejasbarot.der $(modinfo -n vboxpci)

    1. To make it work Properly, You will have to sign all modules of VirtualBox with generated
    2. Everytime you run “/sbin/rcvboxdrv setup” after following step 3, Signed Modules will be removed and You will again  need to follow Step 11 and 12 , Only step 11 and 12 not from beginning. (This was not the case in Fedora 18 to 21)

  12. Restart vboxdrv service with following command
     [root@tejasbarot ~]# systemctl restart vboxdrv
     [root@tejasbarot ~]# systemctl status vboxdrv

    NOTE: If you find this line “Starting VirtualBox kernel modules [  OK  ]”, You are done, Start launching Virtual Machines.

REPEATING ONCE AGAIN, DO NOT EXECUTE “sudo /etc/init.d/vboxdrv setup” or “/sbin/rcvboxdrv setup” otherwise you will have to follow repeat Step No 11. and 12

Method 2:

DISABLE MOK Validation using following command

[root@tejasbarot ~]# mokutil --disable-validation

Method 3:

Switch to Legacy Mode from UEFI by Disabling SecureBoot from BIOS

References taken from : 

Like and Share All Linux User’s Blog Facebook Page:

Howto: Install VirtualBox 4.2.10 on RHEL / CentOS 6.x / Linux

Dear All,

VirtualBox is an Open Source Cross Virtualization Software, By Installing VirtualBox You can Install Multiple Guest Operating Systems.

I am sharing this Howto to Install VirtualBox 4.2.10 on Linux ( RHEL  and CentOS 6.x ).

By Following Instructions You will able to Install and Run VirtualBox 4.2.10 on Linux.

Oracle VirtualBox
Oracle VirtualBox

Perform Following steps to Install VirtualBox on Linux | CentOs | RHEL 6.x

1. You need to be root to perform this Howto.

2.  Configure Repositories :-

# Download and Install EPEL Repository 

[root@linux-support-ahmedabad-tejas-barot ~]# wget

[root@linux-support-ahmedabad-tejas-barot ~]# rpm -Uvh epel-release-6-8.noarch.rpm

# Configure VirtualBox Repository

[root@linux-support-ahmedabad-tejas-barot ~]# cd /etc/yum.repos.d/ 

[root@linux-support-ahmedabad-tejas-barot yum.repos.d]# wget

[root@linux-support-ahmedabad-tejas-barot yum.repos.d]# cd

3. Installing Dependencies for VirtualBox

[root@linux-support-ahmedabad-tejas-barot ~]# yum install binutils  gcc kernel-headers kernel-devel make libgomp glibc-headers glibc-devel patch  dkms qt

4. Finally Lets Start Installing VirtualBox 4.2.10

[root@linux-support-ahmedabad-tejas-barot ~]# yum install VirtualBox-4.2

5. That’s It.

hope this will helps you all, If you face any issue regarding the same or its not working for your some how then please raise your questions / issues then comment down below.

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :-

Please Keep in Touch with Social Networking :- 

Facebook Page :-

Enjoy VirtualBox :) Enjoy Guest OS  on Linux :) Enjoy Linux :) Enjoy Open Source :)

Howto: Install Google Android on PC | Google Android Live CD/USB

Hello Guys.

As we all Know google Android already covered fantastic market in Mobile Phone’s World. Its Getting Famous and Famous Day by day. It is getting famous because its a Google Product, Open Source Product and More Specially its a Linux Based. So Every One is Enjoying it.

Right now there are so many mobile Companies with Google Android. Like Samsung Galaxy Series, MicroMax and Lots to come…… Lets wait and watch for more Android World.

Today I am going to Show you that how can you Run Google Andoid OS on your Linux Box Using VirtualBox. Every by following this howto you can Run Google Android on your system with Live CD/USB.

Remember by following this Howto you will able to boot Google Andoid OS Live CD/USB. It won’t affect to your system at all.

For performing these steps you need some basic knowledge of Installing RPM and Basic Friendly with VirtualBox.

Perform Following Steps to Install/Run Google Android OS on PC.

  1. Open Terminal. ( Click on Applications -> System Tools -> Terminal)
  2. In Terminal, Be as a root by executing su -. and Download VirtualBox from this link
  3. Install VirtualBox RPM as root and Exit from root prompt.
  4. Now Point your browser to and Download Google Andriod.You have to download two files. (i.e. liveandroidv0.3.iso.002 liveandroidv0.3.iso.001 ).
  5. Once Download gets finished execute Following command
    cat liveandroidv0.3.iso.002 liveandroidv0.3.iso.001 > google-android.iso
  6. Now open VirtualBox. ( Applications -> System Tools -> Oracle VirtualBox)
  7. Click on New -> In That New Window Type Linux -> Press Next -> Assign Amount of RAM you want to assign 512 -> Press Next
    -> Create New Hard Disk ->
    Press Next Again -> Now Select Dynamically expanding storage -> Press Next Again -> Now Define Location where you want to save Hard Disk and Select Size you want to assign -> Click on Finish -> Again click on Finish
  8. Now Click on File -> Virtual Media Manager. Here click on CD/DVD Images and Click on Add -> Assign path of ISO which we have created using cat command in above step. -> Now Press OK
  9. Click on Machine -> Settings. Here Click on Storage -> Under Storage Tree Click on Empty Under IDE Controller. On Right side you will able to see CD/DVD Device Click on Selection Box -> There you will find your Android ISO which we have added in above step. and Press OK.
  10. Make Sure your booting device is set to CD/DEVICE or you select whenever VirtualBox getting start.
  11. There it is. Now you are done. You are all set to boot live Google Andriod. Now Click on Start from VirtualBox and It will start booting your Google Andriod Live.

That’s it Guys. This is your Google Andriod Live on VirtualBox.

Thanks for reading article

If some guys don’t know about Installing VirtualBox then please drop me a mail I will post steps for Installing VirtualBox also. But If there is more request and more peoples interested in VirtualBox Post then only i will post it not for individual Sorry Guys. Please Drop Mail with subject “Steps to Install VirtualBox on Fedora | REDHAT | LINUX” . This Subject line is must.

Hope you all like this guys. Waiting for your comments……

Enjoy Google 🙂 Enjoy Google Andriod 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂

Setup and Configuration of a Virtual Machine in Virtual Box

VirtualBox is an operating system virtualization program that allows you, the end user, to do an incredible number of things that you couldn’t otherwise do in any other way than in a live environment.  But not everyone has more than one machine laying around with an OS installed on it, and not everyone wants to have to dual or multi boot in order to use each of these OS’s.

That’s where VirtualBox comes in handy.  You can test an operating system, or run more than one OS simultaneously without needing multiple PC’s.  But what does it take to get started with Virtualbox?  Well, I’m about to show you.  (be sure you already have Virtualbox 3.x installed before starting this tutorial)

Setting up a Virtual Machine

To get started setting up a Virtual Machine, begin by opening VirtualBox.  On the left side you’ll see a large white column with four buttons over it.  Click on “New”.  This will bring up a new windows.  Click “Next”.  In this window you’ll want to enter a name for the Virtual Machine.  Typically this is the name of the OS you’ll be using, however it doesn’t necessarily have to be.

For example, if you’re simply testing Linux distributions, just name it “Linux Testing” or something that makes sense to you so you know what it is.  Essentially the name is just there to make sure you know which is which if you have more than one Virtual Machine.

Now, in the section below that text box, select the operating system and version you’ll be using.  For example, with Windows you’d choose “Microsoft Windows” and “Windows XP” respectively.  Virtualbox 3.x can support Windows, Linux, Solaris, BSD and IBM OS/2 (yes, OS2.  Kinda surprising, isn’t it?  hehe) natively, and there’s an “other” category for other OS’s that don’t fall into one of those six categories.

Those typically are things like Dos, Novel Netware, L4, QNX, or some other off the wall OS that will run on x86 hardware, but isn’t a mainstream OS.  Next, choose the base memory that your virtual machine will use.  Typically this should be no more than 50% of your total available physical memory.  So if you only have 1gb of ram, don’t select more than 512mb of memory for your Virtual Machine, or bad things may happen.

Now, click next, and either choose an existing hard drive, or create a new one.  Note, these are virtual hard drives.  They’ll appear as files on your main system drive, but won’t affect it in any way, other than to take up space.  If you haven’t created a virtual hard drive yet, click “Create new hard disk” and then click next.

A new window should appear.  Click next.  Now you will be asked if you want dynamically expanding storage, or fixed.  Dynamically expanding storage is essentially a disk image that grows as you need more space.  Typically this is the best way to setup a virtual drive, as you only use as much space as you absolutely need.  It will continue to grow over time as you need more space, up to the maximum limit, but not beyond.

The second type of drive is fixed size storage.  This will automatically allocated the entire amount of space required for your virtual drive right at the beginning, even if you are only using a small portion of it within the Virtual Machine.  Now, once you’ve chosen this, select a location to store the virtual drive, and a disk size.

Now in regards to disk size, regardless which type you choose (dynamic or fixed), you will need to make sure that you select a drive size no more than 50% of your total available disk space.  So for example, if your physical hard drive is 80gb, your virtual drive should be no more than 40gb.

Once you’re done with that, click finish and it will take you back to the previous window.  Simply click next, and finish, and you’re done.


The next step now is to configure the Virtual Machine.  Start by clicking on your new Virtual Machine in the left column, then click settings.  In here you can change anything you like about your Virtual Machine.  There aren’t many tweaks that I would recommend in here, however there are a few.  One of those is to adjust your video memory.

To do that, click on “display” in the left column.  On the right side panel, look at the total memory listed there (it won’t let you go any higher than 100% of your video memory), and then either move the slider over until it’s at 50% of your total memory, or you can manually specify the value in the the box at the far end.

Never, ever, ever go over 50% of your total physical video memory for the same reasons you should never go over 50% of your total physical ram.  Bad things happen if you do.  What you essentially do is you starve your host system for memory and that can quickly come back to haunt you.

Below the memory slider is a neat new addition to Virtual Box.  It allows you to have full 3D support within your virtual machine.  It’s still experimental, but it works.  To use it, just check the little box there, and then click ok.  There are other things in there you can play with and tweak if you like, but if not, then you’re done.

Install the OS

This last part is the shortest, and easiest part of the entire process of setting up your Virtual Machine.  Namely, installing the OS.  Overall, there are two ways in which you can do this.  The first is directly with a CD or DVD of the OS.

To do that, insert the install disk into your cd or dvd drive, and then, with the Virtual Machine selected, click on “CD/DVD-ROM” in the right side panel.  This will take you back into the settings dialog.  Checkmark “Mount CD/DVD Drive”, then select your drive from the list, if you have more than one, and then click ok.  If you only have only one, just click OK.

Inversely, if you are installing from a disk iso, you can simply select “ISO Image File” here, then click the folder icon next to it.  This will open the Virtual Media Manager.  To add your iso file, click “Add”, then browse to the file and click Open.  You’ll now see your iso file in the list.  Just select it, and then click “select”.

This will return you to the previous window.  Click ok.  Now click start and follow the prompts to install your OS.  Once it has completely finished with the disk, you can remove it by simply selecting “Devices -> Unmount CD/DVD-ROM” from the Virtual Machine window.


Well, that’s all it.  You’ve completed your setup and you are now ready to begin playing with your new Virtual Machine!

Original Post :-

Installing & Configuring VirtualBox on Fedora 9/10.

Hi Friends,

I am Sharing Method that How to Install Virtulbox on Fedora.

Follow this steps to install Virtualbox on fedora

Step 1:- First you have to download & install this rpm by executing following command:
wget && rpm -ivh VirtualBox-2.0.6_39765_fedora9-1.i386.rpm

Step 2:-Now get the kernel-devel Package:-

yum install make automake autoconf gcc kernel-devel dkms

Step 3:- Now Run the setup file for Virtualbox:-

/etc/init.d/vboxdrv setup

Step 4:- Now Add yourself to the vboxusers group and fix the SELinux Permission:-

usermod -G vboxusers -a <your-username>
chcon -t textrel_shlib_t /usr/lib/virtualbox/

Step 5:- Execute This command to Run VirtualBox
or you can find this under Applications -> System Tools -> VirtualBox