Guest Additions

Discussions about using Linux guests in VirtualBox.

Guest Additions

Postby Ed » 1. May 2012, 16:45

I am new to both VirtualBox and Linux (I do have some UNIX background) and seem to be having issues trying to get Guest Additions working correctly. I have tried reading though posts which have not solved my problem.

I am running:
Host: Windows 7 64bit on my laptop
VirurtualBox 4.1.14 r77440 (I upgraded from 4.1.12 which I used for the original OS install)

Guest: Oracle Linux server 5 update 8

I have tried to make sure I have everything I need and ran the following commands:
yum update
yum install kernel-devel
yum install gcc
yum install elfutils-libelf-devel
yum install libstdc++-devel
yum install glibc-devel
yum install libaio-devel
yum install gcc-c++
yum install pdksh

When booting up my Linux guest I get the following error: Starting Virtual Box Guest Additions [Failed]

I have checked that C:\ProgramFiles\Oracle\VirtualBox\VBoxGuestAdditions.iso is there.

If I try to install guest additions I get "VERR_PDM_MEDIA_LOCKED" error with a question of "do I want to force mount". I have tried to force mount and then I do not get an error on install guest additions; however, I still get the error during boot up that guest additions failed.

When I go into the Linux guest and check the VBoxGuestAdditions.log file I see (modprobe vboxguest failed) Starting VirtualBox Guest Additions service VirtualBox Additions module not loaded!

Thanks for any help on this.
Ed
 
Posts: 4
Joined: 1. May 2012, 01:03

Re: Guest Additions

Postby Perryg » 1. May 2012, 17:01

What were the errors you received when installing?
What does /var/log/vboxadd-install.log say?
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: Guest Additions

Postby Ed » 1. May 2012, 17:31

I have tried to run the Guest Additions install from the LInux Desktop using the mounted GuestAdditions.iso image there. In the vboxadd-install.log I see: /tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the source of your current Linux kernel. Specify KERN_DIR=<directory> and run make again. Stop.
Creating user for Guest Additions.
Creating udev rule for Guest Additions kernel module.
Ed
 
Posts: 4
Joined: 1. May 2012, 01:03

Re: Guest Additions

Postby Perryg » 1. May 2012, 17:34

Sounds like you need the headers that match your (running) kernel.
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: Guest Additions

Postby Ed » 1. May 2012, 18:31

Is there a file I should edit? Is there something in /user/include/linux/ that I should be looking at? Or an environment variable that needs to be set.
Ed
 
Posts: 4
Joined: 1. May 2012, 01:03

Re: Guest Additions

Postby Perryg » 1. May 2012, 18:45

Shouldn't need to edit anything. Just install the linux kernel-headers that matches your running kernel.
You can see the running kernel with uname -r in a terminal. you can install with kernel-headers-$(uname -r)
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: Guest Additions

Postby Ed » 1. May 2012, 20:03

Thanks for the information. This Oracle Linux install seems to have some quirks. I ran the uname -r and it provided me the kernel information. It seems that kernel-headers has been replaced with kernel-uek-headers. I ran "up2date kernel-headers" and got the message that the package had been marked to be skipped by your configuration. I did a bit of google work and found that some installs use kernel-uek-headers so I ran "yum install kernel-uek-headers" and it said that I already had latest so no action was taken. Neither kernel-headers-$(uname -r) or kernel-uek-headers-$(uname -r) seems to be commands that can be run to update the kernel headers. I looked around /usr/include/linux/kernel.h and did not see anything that I can use or update there. Any ideas?
Ed
 
Posts: 4
Joined: 1. May 2012, 01:03

Re: Guest Additions

Postby Perryg » 1. May 2012, 20:20

Assuming that you have rebooted the guest, I would grep the headers and make sure they actually match the running kernel. You can also try to revert to an older kernel and get that working (with dkms installed) and then upgrade to the uek kernel so it pulls in the proper headers.
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: Guest Additions

Postby streetbiker » 9. Jul 2012, 22:53

streetbiker
 
Posts: 3
Joined: 21. May 2012, 21:01

Re: Guest Additions

Postby bifurcatedpanda » 14. Jan 2013, 07:53

Small correction that may help (did for me): try installing linux-headers-*etc instead of kernel-headers-*other_stuff.
Assuming use of apt-get, not familiar with syntax of other package managers.
bifurcatedpanda
 
Posts: 1
Joined: 14. Jan 2013, 07:49


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 9 guests