scotch-io / scotch-box

Scotch Box is a preconfigured Vagrant Box with a full array of LAMP Stack features to get you up and running with Vagrant in no time.
http://box.scotch.io
2.7k stars 548 forks source link

Guest additions version outdated/incompatible #408

Closed selfagency closed 3 years ago

selfagency commented 5 years ago
> cloned flurinduerst/WPDistillery#master
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'scotch/box' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'scotch/box'
    default: URL: https://vagrantcloud.com/scotch/box
==> default: Adding box 'scotch/box' (v3.5) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/scotch/boxes/box/versions/3.5/providers/virtualbox.box
    default: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
==> default: Successfully added box 'scotch/box' (v3.5) for 'virtualbox'!
==> default: Importing base box 'scotch/box'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'scotch/box' version '3.5' is up to date...
==> default: Setting the name of the VM: antony-loewenstein_default_1560015527271_3622
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: password
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
[default] GuestAdditions versions on your host (6.0.8) and guest (5.1.21) do not match.
Reading package lists...
Building dependency tree...
Reading state information...
dkms is already the newest version (2.2.0.3-2ubuntu11.3).
The following NEW packages will be installed:
  linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.7 MB of archives.
After this operation, 77.9 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-75 all 4.4.0-75.96 [9,905 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-75-generic amd64 4.4.0-75.96 [782 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 10.7 MB in 1s (9,683 kB/s)
Selecting previously unselected package linux-headers-4.4.0-75.
(Reading database ... 61895 files and directories currently installed.)
Preparing to unpack .../linux-headers-4.4.0-75_4.4.0-75.96_all.deb ...
Unpacking linux-headers-4.4.0-75 (4.4.0-75.96) ...
Selecting previously unselected package linux-headers-4.4.0-75-generic.
Preparing to unpack .../linux-headers-4.4.0-75-generic_4.4.0-75.96_amd64.deb ...
Unpacking linux-headers-4.4.0-75-generic (4.4.0-75.96) ...
Setting up linux-headers-4.4.0-75 (4.4.0-75.96) ...
Setting up linux-headers-4.4.0-75-generic (4.4.0-75.96) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-75-generic /boot/vmlinuz-4.4.0-75-generic
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: /dev/loop0 is write-protected, mounting read-only
Installing Virtualbox Guest Additions 6.0.8 - guest version is 5.1.21
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.8 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.1.21 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 4.4.0-75-generic.
update-initramfs: Generating /boot/initrd.img-4.4.0-75-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
An error occurred during installation of VirtualBox Guest Additions 6.0.8. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Job for vboxadd-service.service failed because the control process exited with error code. See "systemctl status vboxadd-service.service" and "journalctl -xe" for details.
Unmounting Virtualbox Guest Additions ISO from: /mnt
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 5.1.21
    default: VirtualBox Version: 6.0
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: [vagrant-hostsupdater] Writing the following entries to (/etc/hosts)
==> default: [vagrant-hostsupdater]   192.168.33.10  wpdistillery.vm  # VAGRANT: 7bf08dedd88663d94fcdfe793e2976cb (default) / 0bed55b1-da2c-485c-ae2a-d2dd308b8d95
==> default: [vagrant-hostsupdater] This operation requires administrative access. You may skip it by manually adding equivalent entries to the hosts file.
Password:
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /var/www => /Users/daniel/code/antony-loewenstein
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 dmode=777,fmode=666,uid=1000,gid=1000 var_www /var/www

The error output from the command was:

: No such device
saldim commented 4 years ago

In order to update VirtrualBox guest additions you can try the following steps: vagrant plugin repair vagrant plugin expunge --reinstall vagrant reload

Alternatively, you can try to remove /.vagrant.d/ directory in your home folder, but after that you'll lose all your plugins and settings.

Franky1 commented 4 years ago

You can also add this in the Vagrantfile, that fixed it for me:

    # automatic guest plugin update disabled
    if Vagrant.has_plugin?("vagrant-vbguest")
        config.vbguest.auto_update = false
    end
reddingwebpro commented 4 years ago

Unfortunately, Scotchbox is no longer maintained, and it is using an outdated Ubuntu release which is why you're having problems. Last year I released an updated version called CongacBox which was just updated again today... You can find it on GitHub at https://github.com/reddingwebpro/cognacbox