LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-23-2013, 04:54 PM   #1
iceman81
Member
 
Registered: Jan 2013
Location: New Jersey
Distribution: CentOS, Arch
Posts: 181

Rep: Reputation: Disabled
CentOS Vboxadditions


i'm trying to install guest additions so that I can get full screen(Virtual box goes full screen but Guest OS stays centered)

I have an up to date kernel, development tools are installed. I got an error trying to install rpmforge(not sure if that's relevant).

I navigate to /media/VBOX... , run the file and get this error in my log file "unable to find the sources of your current kernel.

Specifiy KERN_DIR=<directory> and run make again.

not exactly sure how to do this. any help would be great.

PS I have latest edition of CentOS, I think its 6.3
 
Old 04-23-2013, 05:10 PM   #2
marc_online_
LQ Newbie
 
Registered: Apr 2013
Location: The Netherlands
Distribution: Linux Mint Cinnamon
Posts: 15

Rep: Reputation: Disabled
Talking 'Additional' questions

Quote:
Originally Posted by iceman81 View Post
i'm trying to install guest additions so that I can get full screen(Virtual box goes full screen but Guest OS stays centered)

I have an up to date kernel, development tools are installed. I got an error trying to install rpmforge(not sure if that's relevant).

I navigate to /media/VBOX... , run the file and get this error in my log file "unable to find the sources of your current kernel.

Specifiy KERN_DIR=<directory> and run make again.

not exactly sure how to do this. any help would be great.

PS I have latest edition of CentOS, I think its 6.3
Some additional questions:

Do you have the kernel headers installed on your computer? Did you ran the installation as root or via sudo?
What was the error you got trying to install rpmforge?

(some advice: first copy the guest additions to a directory on the guest before trying to install them.)
 
Old 04-24-2013, 05:50 AM   #3
iceman81
Member
 
Registered: Jan 2013
Location: New Jersey
Distribution: CentOS, Arch
Posts: 181

Original Poster
Rep: Reputation: Disabled
okay, sorry for long delay. I moved install files off "disc" and to a directory. still same error.

yum install kernel-devel kernel-headers tells me that I have the most up to date versions.

yum --enablerepo rpmforge install dkms tells me repository not found

all logged in as root.
 
Old 04-24-2013, 11:23 AM   #4
marc_online_
LQ Newbie
 
Registered: Apr 2013
Location: The Netherlands
Distribution: Linux Mint Cinnamon
Posts: 15

Rep: Reputation: Disabled
Question CentOS VBoxAdditions

Could you please check in: /etc/yum.repos.d/rpmforge.repo if rpmforge is present and enabled? (enabled=0 is off and enabled=1 is on).

extra info:
-----------
Virtualbox manual - Chapter 4 - Guest Additions
link:http://www.virtualbox.org/manual/ch04.html#idp12039536
 
Old 04-24-2013, 11:46 AM   #5
iceman81
Member
 
Registered: Jan 2013
Location: New Jersey
Distribution: CentOS, Arch
Posts: 181

Original Poster
Rep: Reputation: Disabled
rpmforge is enabled, the rpm extras was not, but i enabled it. dkms is now installed, and i've gotten a new error...

Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxguest/4.2.12/source ->
/usr/src/vboxguest-4.2.12

DKMS: add Completed.

Error! Your kernel headers for kernel 2.6.32-279.el6.x86_64 cannot be found at
/lib/modules/2.6.32-279.el6.x86_64/build or /lib/modules/2.6.32-279.el6.x86_64/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
 
Old 04-25-2013, 10:47 AM   #6
marc_online_
LQ Newbie
 
Registered: Apr 2013
Location: The Netherlands
Distribution: Linux Mint Cinnamon
Posts: 15

Rep: Reputation: Disabled
Lightbulb

Sounds like you need the headers that match your installed kernel.

You can install it with this command: sudo yum install kernel-headers.

If that doesn't work we have to check what kernel is installed and go from there. To check you can use: uname -r in a terminal window.
 
Old 04-25-2013, 10:58 AM   #7
marc_online_
LQ Newbie
 
Registered: Apr 2013
Location: The Netherlands
Distribution: Linux Mint Cinnamon
Posts: 15

Rep: Reputation: Disabled
Lightbulb Some helpful information ...

Iceman81 did you solved the problem? Are things working now?
Hoping to hear from you.

Last edited by marc_online_; 04-29-2013 at 07:16 AM. Reason: Status??
 
  


Reply



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
Email with Postfix,Dovecot & MySQL on CentOS 5-CentOS 6 issues redhat19 Linux - Server 6 05-12-2012 09:15 AM
Unifying permissions between two servers (CentOS + Webmin/CentOs +Cpanel) and rsync d60eba Linux - Server 1 01-01-2010 12:55 PM
LXer: PV-Grub on CentOS 5.2 PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit) LXer Syndicated Linux News 0 10-05-2008 10:12 PM
printer setup from Centos 5 to Vista home prem. on a headless centos pc ncsuapex Red Hat 6 03-10-2008 11:40 AM
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 03:41 AM

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

All times are GMT -5. The time now is 05:17 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