VirtualBox Guest Addition Installation

General support questions
femio
Posts: 6
Joined: 2019/05/14 19:28:26
Location: UK

VirtualBox Guest Addition Installation

Post by femio » 2019/05/14 19:47:29

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

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: VirtualBox Guest Addition Installation

Post by hunter86_bg » 2019/05/15 03:52:59

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.

femio
Posts: 6
Joined: 2019/05/14 19:28:26
Location: UK

Re: VirtualBox Guest Addition Installation

Post by femio » 2019/05/15 19:53:45

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.

owl102
Posts: 413
Joined: 2014/06/10 19:13:41

Re: VirtualBox Guest Addition Installation

Post by owl102 » 2019/05/15 22:05:52

German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: VirtualBox Guest Addition Installation

Post by hunter86_bg » 2019/05/16 16:38:23

I don't see any screenshots .
Can you provide the errors it reports ?

femio
Posts: 6
Joined: 2019/05/14 19:28:26
Location: UK

Re: VirtualBox Guest Addition Installation

Post by femio » 2019/05/16 21:06:23

Thanks Owl, i followed the link to a tee and i have got the full screen.

femio
Posts: 6
Joined: 2019/05/14 19:28:26
Location: UK

Re: VirtualBox Guest Addition Installation

Post by femio » 2019/05/16 21:10:33

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 19452 times
Capture2.PNG
Capture2.PNG (78.71 KiB) Viewed 19452 times
Capture3.PNG
Capture3.PNG (74.73 KiB) Viewed 19452 times

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: VirtualBox Guest Addition Installation

Post by hunter86_bg » 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.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: VirtualBox Guest Addition Installation

Post by TrevorH » 2019/05/17 17:48:51

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?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

femio
Posts: 6
Joined: 2019/05/14 19:28:26
Location: UK

Re: VirtualBox Guest Addition Installation

Post by femio » 2019/05/20 19:13:49

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.

Post Reply