Page 1 of 2

VirtualBox Guest Addition Installation

Posted: 2019/05/14 19:47:29
by femio
New to CentOS. Can't workout why i can't get full screen
Seems to have to do with ...Kernel headers not found for target headers
Please install them and execute /sbin/rcvboxadd setup
modprobe vboxguest failed

I apologise if this makes no sense or is completely basic, but i hope some will understand my inexperience and help with instructions for a complete beginner.

In addition if i click on Devices > Insert guest additions cd image. I get the following Unable to insert the virtual optical disk c:\program files\oracle\virtualbox\vboxguestadditions.iso into the machine centos

Re: VirtualBox Guest Addition Installation

Posted: 2019/05/15 03:52:59
by hunter86_bg
First, you need to install kernel headers:

Code: Select all

yum install kernel-headers
Then, you need to make VirtualBox attach the guest additions DVD and install from there.

Re: VirtualBox Guest Addition Installation

Posted: 2019/05/15 19:53:45
by femio
Thank you

I successfully installed kernel headers with the yum install kernel-headers as suggested, but still getting the same error. I have attached some shots with the hope they will help.
Can't copy from guest to host until I've installed guest additions hence the screenshots.

Re: VirtualBox Guest Addition Installation

Posted: 2019/05/15 22:05:52
by owl102

Re: VirtualBox Guest Addition Installation

Posted: 2019/05/16 16:38:23
by hunter86_bg
I don't see any screenshots .
Can you provide the errors it reports ?

Re: VirtualBox Guest Addition Installation

Posted: 2019/05/16 21:06:23
by femio
Thanks Owl, i followed the link to a tee and i have got the full screen.

Re: VirtualBox Guest Addition Installation

Posted: 2019/05/16 21:10:33
by femio
hunter86_bg wrote:
2019/05/16 16:38:23
I don't see any screenshots .
Can you provide the errors it reports ?
Hi Hunter, i'm sorted at the moment. Thanks for your help. Not sure what happened to the attachment, but just in case you still want to have a look I've attached again.
Capture.jpg
Capture.jpg (91.73 KiB) Viewed 19477 times
Capture2.PNG
Capture2.PNG (78.71 KiB) Viewed 19477 times
Capture3.PNG
Capture3.PNG (74.73 KiB) Viewed 19477 times

Re: VirtualBox Guest Addition Installation

Posted: 2019/05/17 16:05:12
by hunter86_bg
What is the content of the setup log (in your last screenshot)?
You can use pastebin.com to paste it there.

Re: VirtualBox Guest Addition Installation

Posted: 2019/05/17 17:48:51
by TrevorH
The version of kernel-devel needs to match the version of the running kernel exactly. If you run uname -r then that is the version of the kernel-devel package that needs to be installed so to check if it is, run rpm -q kernel-devel-$(uname -r). Now reboot into the latest kernel and try that again and see if it gives output now?

Re: VirtualBox Guest Addition Installation

Posted: 2019/05/20 19:13:49
by femio
hunter86_bg wrote:
2019/05/17 16:05:12
What is the content of the setup log (in your last screenshot)?
You can use pastebin.com to paste it there.
https://pastebin.com/D4jXP4zH
Thanks Hunter, please note this is now resolved.