Hi, not sure if is an error of the Vagrant Box.
When executing vagrant up
I have this error:
That ends in:
Checking the log file in the guest machine: vagrant ssh
and cat /var/log/vboxadd-install.log
I see:
Uninstalling modules from DKMS
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxguest/5.0.14/source ->
/usr/src/vboxguest-5.0.14
DKMS: add completed.
Error! Your kernel headers for kernel 3.19.0-25-generic cannot be found.
Please install the linux-headers-3.19.0-25-generic 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. Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
I have already tried Vagrant Destroy and Vagrant up without success.
Have you faced similar situation?
The machine works anyway, is just to know if anyone is facing it.
JAVI:joomlatools-vagrant-basic javiergomez$ vagrant vbguest
No installation found.
stdin: is not a tty
Reading package lists...
Building dependency tree...
Reading state information...
dkms is already the newest version.
linux-headers-3.19.0-25-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 134 not upgraded.
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
stdin: is not a tty
mount: block device /tmp/VBoxGuestAdditions.iso is write-protected, mounting read-only
Installing Virtualbox Guest Additions 5.0.14 - guest version is unknown
stdin: is not a tty
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.14 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 5.0.14 of VirtualBox Guest Additions...
Stopping VirtualBox Additions ...done.
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
An error occurred during installation of VirtualBox Guest Additions 5.0.14. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
stdin: is not a tty
Completion was not registered for box:
The 'bash-completion' package is required but doesn't appear to be installed.
[11:55 AM]-[vagrant@joomlatools]-[/var/www]
$ cat /var/log/vboxadd-install.log
Uninstalling modules from DKMS
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxguest/5.0.14/source ->
/usr/src/vboxguest-5.0.14
DKMS: add completed.
Error! Your kernel headers for kernel 3.19.0-25-generic cannot be found.
Please install the linux-headers-3.19.0-25-generic 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. Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
[11:55 AM]-[vagrant@joomlatools]-[/var/www]
$ sudo apt-get install linux-headers-3.19.0-25-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-3.19.0-25-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 134 not upgraded.
[11:53 AM]-[vagrant@joomlatools]-[/var/www]
$ sudo apt-get install bash-completion
Reading package lists... Done
Building dependency tree
Reading state information... Done
bash-completion is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 134 not upgraded.
using MacOS 10.12.4 host. VBox and GuestAdditions 5.1.30. Vagrant 2.0.0. Joomla-tools box
Failed to set up service vboxadd, looked in instal log
more /var/log/vboxadd-install.log
/tmp/vbox.0/Makefile.include.header:112: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.
I have tried apt-get update && apt-get upgrade
apt-get install build-essential module-assistant .
That resulted in ' already newest' /usr/src contains no linux-headers or kernel
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:
mount -t vboxsf -o rw,tcp,nolock,noacl,async,uid=1000,gid=1000 var_www /var/www
The error output from the command was:
fmask = umask of regular files
--
---
You received this message because you are subscribed to the Google Groups "Joomlatools Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomlatools-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Failed to set up service vboxadd, looked in instal log
more /var/log/vboxadd-install.log
/tmp/vbox.0/Makefile.include.header:112: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.
I tried setting up GuestAdditions manually, still same error/lib/modules/4.2.0-27-generic/ contains
lrwxrwxrwx 1 root root 39 Jan 22 2016 build -> /usr/src/linux-headers-4.2.0-27-generic
drwxr-xr-x 2 root root 4096 Jan 22 2016 initrd/
drwxr-xr-x 12 root root 4096 Apr 8 2016 kernel/
-rw-r--r-- 1 root root 1019813 Nov 10 11:08 modules.alias . . .
the symlink is wrong/usr/src now contains (as well as joomla stuff)
lrwxrwxrwx 1 root root 51 Nov 9 17:11 vboxguest-5.1.30 -> /opt/VBoxGuestAdditions-5.1.30/src/vboxguest-5.1.30/
drwxr-xr-x 12
root root 4096 Nov 9 17:44 virtualbox-4.3.36/
there are linux headers here:
/usr/share/doc/linux-headers-4.2.0-27 . . .
drwxr-xr-x 2 root root 4096 Apr 8 2016 linux-generic-lts-wily/
linux-headers-4.2.0-27/ linux-headers-4.2.0-27-generic/
linux-headers-generic-lts-wily/ linux-image-4.2.0-27-generic/
linux-image-extra-4.2.0-27-generic/ linux-image-generic-lts-wily/ linux-libc-dev/
When I look in other linux installations, including Scotch-Box, /usr/src is where the headers are
Any advice please.
Mike Nelson
To unsubscribe from this group and stop receiving emails from it, send an email to joomlatools-d...@googlegroups.com.
--
---
You received this message because you are subscribed to a topic in the Google Groups "Joomlatools Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/joomlatools-dev/H70XolJqMB0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to joomlatools-d...@googlegroups.com.