Repository: clong/DetectionLab

Issue #374: VirtualBox 6.1.2 doesn't work with latest Vagrant
Created: 2020-01-22T17:14:02Z
After attempting to build DetectionLab with the latest edition of VirtualBox (6.1.x) the build fails to run with the latest version of Vagrant (2.2.6).
The solution is to install an older version of VirtualBox 6.0 is recommended.
Wanted to get this out to anyone who might be having issues with DetectionLab!

Duplicate issue #376:  Failed to bring up logger after a reload. Exiting
Created: 2020-02-09T11:15:36Z
Operating System Version: Windows 10 Pro 18362
Provider (VirtualBox/VMWare): Virtualbox
Vagrant Version: 2.2.7
Packer Version: 1.5.1
Are you using stock boxes (downloaded) or were they built from scratch using Packer? Using full building and -VagrantOnly
Is the issue reproducible or intermittent?

Description of the issue:
While executing the script build.ps1, i have these issue :
AVERTISSEMENT : Something went wrong while attempting to build the logger box.
Attempting to reload and reprovision the host...
[main] Running vagrant_reload_host for: logger
[vagrant_reload_host] Running for logger
[vagrant_reload_host] Finished for logger. Got exit code: 1
C:\DetectionLab-master\DetectionLab-master\build.ps1 : Failed to bring up logger after a reload. Exiting
Au caractère Ligne:1 : 1
+ .\build.ps1 virtualbox -VagrantOnly
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,build.ps1

[main] Running post_build_checks
[post_build_checks] Running Splunk Check.
[download] Running for https://192.168.38.105:8000/en-US/account/login?return_to=%2Fen-US%2F, looking for This browser is not supported by Splunk
Error occured on webrequest: Exception lors de l'appel de « DownloadString » avec « 1 » argument(s) : « Impossible de se connecter au serveur distant »
[post_build_checks] Splunk Result: False
[post_build_checks] Running Fleet Check.
[download] Running for https://192.168.38.105:8412, looking for Kolide Fleet
Error occured on webrequest: Exception lors de l'appel de « DownloadString » avec « 1 » argument(s) : « Impossible de se connecter au serveur distant »
[post_build_checks] Fleet Result: False
[post_build_checks] Running MS ATA Check.
[download] Running for https://192.168.38.103, looking for
Error occured on webrequest: Exception lors de l'appel de « DownloadString » avec « 1 » argument(s) : « Impossible de se connecter au serveur distant »
[post_build_checks] ATA Result: False
AVERTISSEMENT : Splunk failed post-build tests and may not be functioning correctly.
AVERTISSEMENT : Fleet failed post-build tests and may not be functioning correctly.
AVERTISSEMENT : MS ATA failed post-build tests and may not be functioning correctly.
[main] Finished post_build_checks

My vagrant log file give me more details but i can't find where it can be fixed into the build.ps1 file. Can someone help me ? :) Thank you !
Bringing machine 'logger' up with 'virtualbox' provider...
==> logger: Importing base box 'bento/ubuntu-18.04'...

�[KProgress: 40%
�[KProgress: 60%
�[KProgress: 90%
�[K==> logger: Matching MAC address for NAT networking...
==> logger: Checking if box 'bento/ubuntu-18.04' version '202002.04.0' is up to date...
==> logger: Setting the name of the VM: logger
==> logger: Clearing any previously set network interfaces...
==> logger: Preparing network interfaces based on configuration...
    logger: Adapter 1: nat
    logger: Adapter 2: hostonly
==> logger: Forwarding ports...
    logger: 22 (guest) => 2222 (host) (adapter 1)
==> logger: Running 'pre-boot' VM customizations...
vagrant.exe : A customization command failed:
Au caractère C:\DetectionLab-master\DetectionLab-master\build.ps1:295 : 3
+   &vagrant.exe @('up', $VagrantHost, '--provider', "$ProviderName") 2 ...
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (A customization command failed::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 

["modifyvm", :id, "--clipboard", "bidirectional"]

The following error was experienced:

#<Vagrant::Errors::VBoxManageError: There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "7104e0f9-ab82-4a22-94b2-e62a9648b4b4", "--clipboard", "bidirectional"]

Stderr: Oracle VM VirtualBox Command Line Management Interface Version 6.1.2

VBoxManage.exe: error: Unknown option: --clipboard
>

Please fix this customization and try again.

Closing comment (2020-02-18T01:15:15Z): Closing as a duplicate of #374