VirtualBox

Ticket #758 (closed enhancement: fixed)

Opened 7 years ago

Last modified 4 years ago

Install Guest Additions to Linux From Scratch (LFS) - fixed in 2.2.0

Reported by: jgnew Owned by:
Priority: minor Component: guest additions
Version: VirtualBox 1.5.0 Keywords:
Cc: Guest type: Linux
Host type: other

Description

I have modified the following attached files to allow the Linux From Scratch (LFS) distribution to install the Virtual Box Guest additions. My modifications are the minimum to make the install work. I did not come up with a good way to change the script file vboxadd-timesync but instead hard codded a change for the stop. LFS killproc requires a pid number in the pid file. Well at least that is the only way I could get it to work.

I have attached the files that I modified. I'm sure there are better ways for the modifications to be implemented.

John

Attachments

install.sh Download (11.9 KB) - added by jgnew 7 years ago.
install.sh
vboxadd Download (4.1 KB) - added by jgnew 7 years ago.
vboxadd
vboxadd-timesync Download (4.2 KB) - added by jgnew 7 years ago.
vboxadd-timesync
vboxvfs Download (3.7 KB) - added by jgnew 7 years ago.
vboxvfs
routines.sh Download (13.5 KB) - added by jgnew 7 years ago.
routines.sh
routines.2.sh Download (16.3 KB) - added by jgnew 5 years ago.
Corrected for Linux From Scratch install
VirtualBox-2.1.4-routines.diff Download (4.4 KB) - added by jgnew 5 years ago.
Diff of Routines.sh

Change History

Changed 7 years ago by jgnew

install.sh

Changed 7 years ago by jgnew

vboxadd

Changed 7 years ago by jgnew

vboxadd-timesync

Changed 7 years ago by jgnew

vboxvfs

comment:1 follow-up: ↓ 2 Changed 7 years ago by michael

Thanks very much. What did you actually change in install.sh though? Perhaps you meant to upload routines.sh?

Changed 7 years ago by jgnew

routines.sh

comment:2 in reply to: ↑ 1 Changed 7 years ago by jgnew

Replying to michael:

Thanks very much. What did you actually change in install.sh though? Perhaps you meant to upload routines.sh?

I just uploaded the routines.sh file. I missed updating the addrunlevel section. The directory structure on the LFS system is:

ls /etc/rc.d/ init.d rc1.d rc3.d rc5.d rc0.d rc2.d rc4.d rc6.d rcsysinit.d

As for updates in install.sh,

# Install the X Window drivers if [ ! "$install_xdrivers" = "" ]; then

log "Installing the X Window System drivers"

for dir in /usr/lib/X11/modules /usr/X11R6/lib/modules; do

X11 modules are /usr/lib/X11/modules

All documentation for the Linux From Scratch system is at  http://www.linuxfromscratch.org/ The BLFS pages cover the Xorg and XFree installs.

comment:3 Changed 6 years ago by frank

  • Guest type changed from other to Linux

comment:4 Changed 6 years ago by frank

  • Component changed from other to guest additions

comment:5 Changed 5 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

The scripts were fixed some time ago, closing.

Changed 5 years ago by jgnew

Corrected for Linux From Scratch install

comment:6 Changed 5 years ago by jgnew

  • Status changed from closed to reopened
  • Resolution fixed deleted

I have made some changes to the routines.sh file from version 2.1.4 (it uploaded as routines.2.sh) to allow for a successful install on a Linux From Scratch platform. The changes are simply testing for lfs-release, setting ro_INIT_TYPE=lfs, and then additional tests throughout the script that will point to /etc/rc.d/init.d/.

I am reopening this ticket because I'm not sure if leaving it closed anyone will look at it. After this is looked at I am comfortable with this ticked being closed as I know what I need to edit in the script and this might help others.

comment:7 Changed 5 years ago by jgnew

Sorry, The changed this I just posted are for the install of VBox on a Linux From Scratch system. I believe the Guest Additions actually were corrected a while back.

comment:8 Changed 5 years ago by michael

Could you please attach a diff of the changes you think should be made against routines.sh in the 2.2 beta 2 installer, if any?

Changed 5 years ago by jgnew

Diff of Routines.sh

comment:9 Changed 5 years ago by jgnew

I have attached a diff file of the changes that I made to the routines.sh file that allow it to work on a LFS system to install the base application. The main changes are changes to allow /etc/rc.d/init.d/. This is for the 2.1.4 installer. I just noticed the request is for the 2.2 installer. I will need to download that and look to see what is there.

comment:10 Changed 5 years ago by jgnew

Can you point me to the link that allows the download of 2.2 beta 2? I can not find it.

comment:11 Changed 5 years ago by michael

2.2.0 is now available on virtualbox.org.

comment:12 Changed 5 years ago by jgnew

That was easy. I downloaded, verified the routines.sh file, then just went back and did the full install. It removed 2.1.4 and then installed 2.2.0 with no problem. Thanks and this can be closed.

comment:13 Changed 5 years ago by michael

  • Status changed from reopened to closed
  • Resolution set to fixed
  • Summary changed from Install Guest Additions to Linux From Scratch (LFS) to Install Guest Additions to Linux From Scratch (LFS) - fixed in 2.2.0

Thanks for the feedback.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use