VirtualBox

Ticket #1587 (closed defect: fixed)

Opened 2 years ago

Last modified 10 months ago

Install guest addons on LFS guest

Reported by: thomas Assigned to:
Priority: major Component: guest additions
Version: VirtualBox 2.1.0 Keywords: LFS OSE
Cc: thomas@linuxfromscratch.org 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

2008-07-08 16:55:52 changed by frank

  • guest changed from other to Linux.

2008-07-10 12:38:42 changed by frank

  • owner changed.
  • component changed from other to guest additions.

2008-12-17 15:20:32 changed by michael

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.

2008-12-22 13:24:20 changed by michael

  • version changed from VirtualBox 1.5.6 to VirtualBox 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 :)

2009-01-21 21:16:55 changed by frank

  • status changed from new to closed.
  • resolution set to fixed.

© 2009 Sun Microsystems, Inc.
ContactPrivacy policy