VirtualBox

Opened 16 years ago

Closed 15 years ago

#1587 closed defect (fixed)

Install guest addons on LFS guest

Reported by: Thomas Owned by:
Component: guest additions Version: VirtualBox 2.1.0
Keywords: LFS OSE Cc: thomas@…
Guest type: Linux Host type: other

Description

Installing the guest addons in a guest machine fails when "distro" is Linux From Scratch. There are checks for "/usr/X11R6/lib/modules" while in LFS there is "/usr/X11R7.2/lib/X11/modules" and some other mismatches.

To see whether it is LFS, you may want to look for "/etc/lfs-release". Than you will know that the

  • boot-scripts are in "/etc/rc.d/init.d/"
  • X configuration should be "/etc/X11/xorg.conf"
  • X11 modules dir can be assumed as "/usr/X11R6/lib/X11/modules" (since there is a compatibility symlink from /usr/X11R7.x to /usr/X11R6)

Do you any chance to add this to the VBoxLinuxAdditions.run script?

Btw, I tested this on VB-1.5.6, I'll test it again on 1.6.x when x becomes greater than zero ;-)

Change History (5)

comment:1 by Frank Mehnert, 16 years ago

Guest type: otherLinux

comment:2 by Frank Mehnert, 16 years ago

Component: otherguest additions

comment:3 by Michael Thayer, 15 years ago

Sorry for the long delay on this one. Rather than look for /etc/lfs-release, I would rather handle this using autodetection, as I suspect that LFS systems are prone to vary somewhat. We already test for standard sys V systems (/etc/init.d exists) and for BSD ones (/etc/rc.d/rc.local or /etc/rc.local exists). I will simply add standard LFS (/etc/rc.d/init.d exists) to this. We already look for the X11 configuration file under /etc/X11/xorg.conf (among others), and I have added /usr/X11R6/lib/X11/modules to the locations we can install modules to, although our default is X -showDefaultModulePath in any case.

comment:4 by Michael Thayer, 15 years ago

Version: VirtualBox 1.5.6VirtualBox 2.1.0

Correction: I test for both /etc/lfs-release and /etc/rc.d/init.d, and apply the LFS rules in that case. However, I don't have a LFS system handy to test with. I would be grateful if someone could make a ready-installed .vdi or .vmdk available, as I don't have time to set one up myself :)

comment:5 by Frank Mehnert, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use