LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble installing VirtualBox guest additions on Centos 8 (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-installing-virtualbox-guest-additions-on-centos-8-a-4175683611/)

Felthorn3 10-13-2020 08:52 PM

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.

berndbausch 10-13-2020 10:38 PM

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.

Felthorn3 10-14-2020 07:41 AM

Quote:

Originally Posted by berndbausch (Post 6175163)
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.

JockVSJock 10-14-2020 10:22 AM

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

Felthorn3 10-14-2020 12:26 PM

Quote:

Originally Posted by JockVSJock (Post 6175306)
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.


All times are GMT -5. The time now is 04:33 AM.