VirtualBox

Opened 12 years ago

Closed 12 years ago

#10420 closed defect (wontfix)

Auto install kernel source

Reported by: MaksimM Owned by:
Component: guest additions Version: VirtualBox 4.1.12
Keywords: autoinstall, kernel source, headers Cc:
Guest type: Linux Host type: all

Description

Problem appear just after install fresh kernel. I have message like this

 cat /var/log/vboxadd-install.log 
Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxguest/4.1.12/source ->
                 /usr/src/vboxguest-4.1.12

DKMS: add Completed.
Error! Your kernel headers for kernel 3.0.0-19-generic-pae cannot be found.
Please install the linux-headers-3.0.0-19-generic-pae package,
or use the --kernelsourcedir option to tell DKMS where it's located
Failed to install using DKMS, attempting to install without
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Останов.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

Of course after install this package everything became fine. But why you can't just add this action in script and through error only if installation was failed. And error I can find only after

cat /var/log/vboxadd-install.log 

}}}but I think more usefull if that kind of error will be print in console we can avoid type cat command. 

Change History (1)

comment:1 by Frank Mehnert, 12 years ago

Resolution: wontfix
Status: newclosed

Our scripts cannot do every automatism as there are a lot of Linux distributions out there and installing a package is always different, and the actual package name is more different. If you successfully installed DKMS this should have fetched the kernel sources automatically. At least this works on most systems. If this didn't work in your guest then there might be a DKMS problem.

Furthermore, there is a user manual describing which steps to perform to install the Guest Additions.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use