LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-13-2020, 08:52 PM   #1
Felthorn3
LQ Newbie
 
Registered: Oct 2020
Posts: 20

Rep: Reputation: Disabled
Question Trouble installing VirtualBox guest additions on Centos 8


Just to preface: I'm pretty new to VirtualBox and Linux, so please bare with me. I just downloaded the CentOS 8 DVD ISO image, installed it on a VM in VirtualBox and it appears to function correctly, minus the guest additions which is supposed to fix mouse/screen issues(?). In the terminal window I have executed the following commands:

sudo yum install gcc
sudo yum install make perl
sudo yum install kernel-devel
sudo yum install elfutils-libelf-devel

All of these appear to have completed successfully, and I then attempt to install guest additions and I see the following in the attached image at https://ibb.co/JsnW1ZD. This was my second attempt to install the additions which is why I believe it's saying it's removing the installed version of them. The first time I attempted the same basic errors/information was generated. I've been fighting with this for a good while now and am pretty frustrated. I just want my VM to work so I can learn the OS, and this is super discouraging. I have also attempted to just remove the VM and install again from fresh and end up with the same result.

Thanks for any help you guys can provide.

Last edited by Felthorn3; 10-13-2020 at 09:19 PM.
 
Old 10-13-2020, 10:38 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
As the error message says, you need to install kernel headers, i.e. the kernel-headers package. A quick internet search provides several sites with instructions; crucially, you need steps to ensure that it is the right version of kernel-headers.

Last edited by berndbausch; 10-13-2020 at 10:39 PM.
 
Old 10-14-2020, 07:41 AM   #3
Felthorn3
LQ Newbie
 
Registered: Oct 2020
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
As the error message says, you need to install kernel headers, i.e. the kernel-headers package. A quick internet search provides several sites with instructions; crucially, you need steps to ensure that it is the right version of kernel-headers.
Thanks for the reply, much appreciated! I attempted to startup my VM to check this and for some reason I kept getting stopped prior to CentOS loading(didn't save the error, apologies). I decided to just do a fresh install of the VM and I keep getting stopped now at the following: https://ibb.co/g3Nj0n1 and when I try to do 'test media and install' I get https://ibb.co/f8Hq5n4. I then attempted a complete uninstall/reinstall of VirtualBox and a fresh download of the installation ISO from the same place I got it originally(and was originally successful at creating a VM minus the guest additions) at the official CentOS page http://mirror.twinlakes.net/centos/8...4/isos/x86_64/ (using the DVD ISO btw). Still ends up with the same errors in the above screenshots.

I am, however, able to spin up a VM using the exact same ISO in Hyper-V and so far have encountered no issues. It is perhaps worth noting that the issues in VirtualBox(unrelated to the guest additions) didn't start occurring until after I created the VM in Hyper-V, although I'm unsure how the two would be related in this case.
 
Old 10-14-2020, 10:22 AM   #4
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Haven't tried this one:

https://www.if-not-true-then-false.c...-red-hat-rhel/

However in the past, content from this website has been onpoint.

thanks
 
Old 10-14-2020, 12:26 PM   #5
Felthorn3
LQ Newbie
 
Registered: Oct 2020
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JockVSJock View Post
Haven't tried this one:

https://www.if-not-true-then-false.c...-red-hat-rhel/

However in the past, content from this website has been onpoint.

thanks
Thanks for that info, and I'd love to give it a try, however I can't even get CentOS 8 to install in VirtualBox now, I always encounter the issues I mentioned in the post above. I can't imagine why the same ISO worked previously and now it doesn't.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CentOS 7 Host and Virtualbox Win 8.1 Guest with Guest Additions Installed Sum1 Linux - Virtualization and Cloud 1 03-26-2015 02:31 PM
Problem installing guest additions on virtualbox Centos 5.5 64bit guest eljay313 Linux - Virtualization and Cloud 1 09-03-2010 08:22 AM
problem installing guest additions in Fedora 11 guest (virtualbox) mia_tech Linux - Desktop 9 07-28-2009 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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