Problem installing Guest Additions in FC2

Discussions about using Linux guests in VirtualBox.
calmond
Posts: 28
Joined: 13. Jun 2007, 14:19
Location: Parkersburg, WV U.S.A.
Contact:

Problem installing Guest Additions in FC2

Post by calmond »

Hello,
I am trying to install the guest additions on an FC2 guest using VB 1.5. The two kernel modules compile fine, but then when it tries to load the additions for X it gets the following error:

Could not find X.org or XFree86 on the guest system. The X window drivers will not be installed.

Before everyone blasts me for using FC2, understand that I'm teaching a class and offering remote labs to my students through VRDP, and FC2 is what my book is written around. I tried using the 1.4.0 guest additions and I got the same exact error. Any ideas?

Thanks
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Try newer FC Versions. I think FC2 is too old.
calmond
Posts: 28
Joined: 13. Jun 2007, 14:19
Location: Parkersburg, WV U.S.A.
Contact:

FC2 too old

Post by calmond »

FC2 is only three years old, as opposed to something like XP, which is 6 years old, although in Fedora terms it is old. I personally hate FC2, but as I said, my textbook is written around FC2, and my university has a policy on not teaching software that doesn't match the book, so I am stuck with FC 2.

Interestingly, FC2 uses X.org, so I am not sure where the error is coming from or why. If it is looking for a specific file, I can sym link it if need be, but I need to know how the additions are trying to determine if XF86 or X.org is missing.
michael
Oracle Corporation
Posts: 682
Joined: 10. May 2007, 09:46
Contact:

Post by michael »

You can unpack the Additions installer using the command (as a normal user)

Code: Select all

sh VBoxLinuxAdditions.run --keep --noexec
The checks are done in the file install.sh. If you can spot what is going wrong, do add a comment to this thread to let me know so that I can fix it.
calmond
Posts: 28
Joined: 13. Jun 2007, 14:19
Location: Parkersburg, WV U.S.A.
Contact:

Fixed!

Post by calmond »

I did the unpacking as you suggested, and found the problem. When the script tries to find the X version, it runs the command X -version on line 17 and searches for the string
X Window System Version

or
XFree86 Version
unfortunately, FC2 for whatever reason, has the string
X Protocol Version 11, Revision 0, Release

before its version number. I edited line 17 to this:
x_version=$(X -version 2>&1 | sed -n 's/^X Window System Version \([0-9.]\+\)/\1/p')$(X -version 2>&1 | sed -n 's/^XFree86 Version \([0-9.]\+\)/\1/p')$(X -version 2>&1 | sed -n 's/^X Protocol Version 11, Revision 0, Release \([0-9.]\+\)/\1/p')
to include all three possibilities, and it installed without a hitch.

Thanks for the help
michael
Oracle Corporation
Posts: 682
Joined: 10. May 2007, 09:46
Contact:

Post by michael »

Thanks for finding that out! I will update the script for the next version.
tryforsure
Posts: 5
Joined: 18. Sep 2007, 07:43

Re: Fixed!

Post by tryforsure »

calmond wrote:I did the unpacking as you suggested, and found the problem. When the script tries to find the X version, it runs the command X -version on line 17 and searches for the string
X Window System Version



Hi
I tried to do this as well and it did pass that first check, however, it now fails at line 33.

I looked about and its failing because i'm using a new xserver released on 5 September, for debian anyway, which is now version 1.4.0.

this is my output from running "X -version"
  • X.Org X Server 1.4.0
    Release date: 5 September 2007
    X Protocol Version 11, Revision 0
    Build Operating System: Linux Debian (xorg-server 2:1.4-2)
    Current Operating System: Linux debian-main 2.6.22-2-486 #1 Thu Aug 30
    UTC 2007 i686
    Build Date: 16 September 2007
cheers
calmond
Posts: 28
Joined: 13. Jun 2007, 14:19
Location: Parkersburg, WV U.S.A.
Contact:

Post by calmond »

Does the command have anything after the
X Protocol Version 11, Revision 0
line? Specifically a release number, or is what you posted the entire output?

If you type man X, what is the version number at the very bottom of the man page?

My line 33 of the install.sh script is

Code: Select all

test_module="module/test/vboxadd.test.o"
Is that where you think yours is failing? Are you in the extracted install directory when you run install.sh? If you aren't, you need to be so it can find the module directory.
calmond
Posts: 28
Joined: 13. Jun 2007, 14:19
Location: Parkersburg, WV U.S.A.
Contact:

Possible answer

Post by calmond »

Another possible answer might be here:
tryforsure
Posts: 5
Joined: 18. Sep 2007, 07:43

Post by tryforsure »

calmond wrote:Does the command have anything after the
X Protocol Version 11, Revision 0
line? Specifically a release number, or is what you posted the entire output?
No thats pretty much it. Nothing after the "X protocol.." part.
The version of the server is shown on the first line, namely
X.Org X Server 1.4.0
and yes that is the output minus the times...
If you type man X, what is the version number at the very bottom of the man page?
X version 11, maybe or xorg-doc 1.4.0?
I'm not sure what you mean here?
My line 33 of the install.sh script is...
Sorry about that i was looking at the wrong part in mc! :S
it was line 296 i had meant to say

Code: Select all

if [ -z "$x_version" -o -z "$modules_dir.......

cheers
calmond
Posts: 28
Joined: 13. Jun 2007, 14:19
Location: Parkersburg, WV U.S.A.
Contact:

X version

Post by calmond »

Hello,
What version/distro of Linux are you running? What we are looking for is the X release number. X is often refered to as X11, because it is version 11, but there are several releases (updates or revisions) to this version. Almost all systems are using version 6.something or 7.something. For instance, the most current release of X.org is 7.3, according to http://www.x.org/wiki/#head-8fff9fa6d3e ... c884751146
What we are trying to find out is what specific release you have.
The if statement is failing because it is testing if the variable $x_version has a value, and it doesn't. If you tell me the version/distro you are using, I'll install it and mess around a bit and see what I can find, although it may take me a day or two. In a worst case scenario we can hard code the value of $x_version.
tryforsure
Posts: 5
Joined: 18. Sep 2007, 07:43

Re: X version

Post by tryforsure »

calmond wrote:Hello,
What we are trying to find out is what specific release you have.
Hi
I'm running debian 4 and X.org release is 7.3. The Xorg server version, however, is 1.4.0 as reported by "X -version".
http://www.x.org/wiki/Releases/7.3
no $x-version is not getting a value.
I did put the value "7.2" in $x_version and got the drivers installed to the correct locations but X is now failing to load the modules due to a module requirement mismatch in the vboxvideo and a undefined symbol in the vboxmouse. obviously the new X.org release is to quick for VB and it will be fixed when a new release of vboxadditions comes out!

cheers
ljpsfree
Posts: 1
Joined: 27. Sep 2007, 08:27

Post by ljpsfree »

I have the same problem.
My distro is gentoo.
X -version info:
X.Org X Server 1.4.0
Release date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.22-gentoo-r5 i686
Current Operating System: Linux 2.6.22-gentoo-r5
Build Date: 24 September 2007

I'm sorry I'm not familiar with the gentoo, and I can't give a way to create X Window System startup services on my distribution.
tryforsure
Posts: 5
Joined: 18. Sep 2007, 07:43

Post by tryforsure »

ljpsfree wrote:I have the same problem.
I think a new thread would be a better idea.
michael
Oracle Corporation
Posts: 682
Joined: 10. May 2007, 09:46
Contact:

Post by michael »

The new 1.4.0 X server is not yet supported. We will add support as soon as possible.
Post Reply