LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-05-2015, 08:08 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Issues trying to install Virtual Box Guest Additions on RHEL v6.5 in Virtual Box


I've seen a previous thread to make sure that you have installed both kernel-devel and kernel-headers that match the kernel, which I've done.

I still continue to get errors and I feel the directions to have this installed is a hodge-podge of stuff I've pulled from various website and blogs.

From this blog, I've done the following:

Installed the following rpm:

Code:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

KERN_DIR=/usr/src/kernels/`uname -r`

export KERN_DIR
http://www.if-not-true-then-false.co...-red-hat-rhel/

During the install, it outputs the following:

Code:
Building the main Guest Additions Module [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
I look at vbox.add-install.log and there is too much to freeform here, however it is pointing back to KERN_DIR= and run Make again.
 
Old 07-06-2015, 07:42 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
It's better to install guest additions from your current virtual box by going to the menu Devices > Insert guest additions. Then mount the virtual CD and run...

Code:
./VBoxLinux...
 
Old 07-06-2015, 12:27 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Installed the following rpm:

h t t p : / / dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
that is the EPEL software repo
http://dl.fedoraproject.org/pub/epel/6/i386/repoview/

mind you EPEL is at 6.7
and you are using RHEL6.5
( cat /etc/redhat-release )


and there might be yum errors and some unsolvable mismatches

the "kernel-headers" will be in the RHN repos
and NOT in the cent repos

Cent uses a different numbering system

the "if-not-true-then-false" page has some BAD instructions
this below will miss a lot of things
Code:
yum install gcc kernel-devel kernel-headers dkms make bzip2 perl
DO NOT !!! only install gcc with "yum install gcc"
that WILL NOT WORK OUT WELL

Code:
su -
yum groupinstall "Development Tools" "Development Librarys"
then
Code:
yum install dkms  bzip2 perl

Last edited by John VV; 07-06-2015 at 12:29 PM.
 
Old 07-12-2015, 12:04 PM   #4
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
I don't have a complete understanding of what Kernel Headers will do for this process. If I look at the install log under /var/log, it seems to be throwing alot of errors about this.

If I do the following command;

Code:
echo $KERN_DIR
It returns nothing, however I do have the rpm kerenl headers installed. So I've done the following:

Code:
KERN_DIR=/usr/src/kernels/$(uname -r) ; echo $KERN_DIR; ls -ld $KERN_DIR
This then shows the current kernel, and then I run the install again from the install disk and same errors as before.

I'm very certain the rpm package for gcc is installed, however I would have to check for dkms, make, bzip2 and perl.
 
Old 07-13-2015, 09:14 PM   #5
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
I only had to install

Code:
yum install gcc
Make and patch wasn't necessary. Mounted the disk and ran the install and rebooted and it worked.

Code:
[JockVSJock@ApacheFTP ~]# lsmod | grep -i vbox
vboxsf                 37535  0 
vboxguest             284665  6 vboxsf
vboxvideo               2148  1 
drm                   280012  2 vboxvideo
So going forward, if a new kernel is installed or a new version of VirtualBox or Guest Additions, does the whole software have to be removed and reinstalled?

thanks
 
  


Reply

Tags
guest additions, rhel, rhel 6, virtual box



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac OSX Host - RHEL 6.4 Guest - Virtual Box can't talk to network boyd98 Linux - Networking 9 01-24-2014 07:12 PM
how to install guest additions in opensuse 12.1 virtual box install sirius57 SUSE / openSUSE 2 06-27-2012 08:41 PM
Unable to install virtual box guest additions sirius57 Linux - Virtualization and Cloud 5 05-16-2012 05:30 PM
Virtual box guest additions gone when host os is restarted / cold boot hottdogg Linux - Virtualization and Cloud 3 01-21-2010 10:01 PM
Virtual box additions Patie Linux - Software 2 11-30-2007 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration