VirtualBox

Ticket #1587 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

Install guest addons on LFS guest

Reported by: thomas Owned by:
Priority: major 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

comment:1 Changed 6 years ago by frank

  • Guest type changed from other to Linux

comment:2 Changed 6 years ago by frank

  • Component changed from other to guest additions

comment:3 Changed 5 years ago 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.

comment:4 Changed 5 years ago 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 :)

comment:5 Changed 5 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use