LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Cant mount vbox-guest-additions iso in lfs (http://www.linuxquestions.org/questions/linux-from-scratch-13/cant-mount-vbox-guest-additions-iso-in-lfs-4175433883/)

EDDY1 10-24-2012 01:41 PM

Cant mount vbox-guest-additions iso in lfs
 
Newly created lfs system trying to install vbox guest additions, but can't mount iso I believe that there's no link to cdrom0 even though it's in /etc/fstab.
how can I create link to cdrom0

Keith Hedger 10-24-2012 02:00 PM

As I remember the vbox additions are installed via vbox just point the virtual cdrom drive to the iso

EDDY1 10-24-2012 03:57 PM

No autorun it usually attaches to cdrom if no autorun.
cant locate it in console either.

EDDY1 10-25-2012 12:23 PM

I have now mounted the VBGA.iso but it errors
Quote:

unable to find the sources of your current Linux kernel
I used this link to mount iso
http://www.cyberciti.biz/tips/how-to...der-linux.html

Keith Hedger 10-25-2012 01:20 PM

I'm doing this from memory so bear with me! VB compiles some stuff based on your kernel headers/source when you compiled your kernel you should have copied them to the relevant folder like so
Code:

tar -xvf "linux-3.5.2.tar.xz"
pushd "linux-3.5.2"
        make mrproper|| exit 1
        make headers_check|| exit 1
        cp ../config .config
        make menuconfig
        make bzImage|| exit 1
        make modules|| exit 1
        make modules_install|| exit 1
        cp -L arch/x86_64/boot/bzImage /boot
        cp .config /boot/config
popd
cp -r "linux-3.5.2" /usr/src
ln -sv "linux-3.5.2" /usr/src/linux || true

this is part of my build script the last two lines are the bit you need, of course change your kernel version as appropriate.
A number of apps need to access these files eg VB and the NVIDIA installer, so it's always a good idea to save them.

EDDY1 10-25-2012 01:31 PM

Thank you for the hint I just went back to the book & neither the linux-3.5.2 or the api-3.5.2 have the additional information you provided.
So does that mean I need to recompile kernel again?

Keith Hedger 10-25-2012 01:33 PM

If you haven't saved the source folder yep! 'fraid so, but just use your old config ( you did save it didn't you? ) and you should have no probs.

EDDY1 10-25-2012 01:43 PM

I elected not to remove sources folder

Keith Hedger 10-25-2012 01:49 PM

Then you're in luck just use the last two lines and copy your kernel source and try VB again.

EDDY1 10-26-2012 08:39 AM

Ok your suggestion worked as far as getting the link to kernel source.
VB went as far as making modules but was looking for xf86.

Keith Hedger 10-26-2012 09:54 AM

Are you cross compiling? What exactly is VB's error?

EDDY1 10-26-2012 11:56 AM

2 Attachment(s)
Here's a screeenshot of vb errors
I'm doing this from booted lfs system

EDDY1 10-26-2012 12:41 PM

I guess I have to install minimal Xorg


All times are GMT -5. The time now is 05:02 AM.