VirtualBox

Opened 17 years ago

Closed 16 years ago

Last modified 15 years ago

#758 closed enhancement (fixed)

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

Reported by: John Gnew Owned by:
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 (7)

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

Download all attachments as: .zip

Change History (20)

by John Gnew, 17 years ago

Attachment: install.sh added

install.sh

by John Gnew, 17 years ago

Attachment: vboxadd added

vboxadd

by John Gnew, 17 years ago

Attachment: vboxadd-timesync added

vboxadd-timesync

by John Gnew, 17 years ago

Attachment: vboxvfs added

vboxvfs

comment:1 by Michael Thayer, 17 years ago

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

by John Gnew, 17 years ago

Attachment: routines.sh added

routines.sh

in reply to:  1 comment:2 by John Gnew, 17 years ago

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 by Frank Mehnert, 16 years ago

Guest type: otherLinux

comment:4 by Frank Mehnert, 16 years ago

Component: otherguest additions

comment:5 by Frank Mehnert, 16 years ago

Resolution: fixed
Status: newclosed

The scripts were fixed some time ago, closing.

by John Gnew, 16 years ago

Attachment: routines.2.sh added

Corrected for Linux From Scratch install

comment:6 by John Gnew, 16 years ago

Resolution: fixed
Status: closedreopened

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 by John Gnew, 16 years ago

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 by Michael Thayer, 16 years ago

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?

by John Gnew, 16 years ago

Diff of Routines.sh

comment:9 by John Gnew, 16 years ago

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 by John Gnew, 16 years ago

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

comment:11 by Michael Thayer, 16 years ago

2.2.0 is now available on virtualbox.org.

comment:12 by John Gnew, 16 years ago

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 by Michael Thayer, 16 years ago

Resolution: fixed
Status: reopenedclosed
Summary: Install Guest Additions to Linux From Scratch (LFS)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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette