Ticket #10420 (closed defect: wontfix)
Auto install kernel source
|Reported by:||MaksimM||Owned by:|
|Version:||VirtualBox 4.1.12||Keywords:||autoinstall, kernel source, headers|
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.