This version was created over 4 years ago.
This is a issue tracker for OS X Vagrant boxes, which can be found in Download section
Box was tested only on VirtualBox with Mac OS as a host. Mainly, I made it to build our iOS applications via CI-server.
Downloads
Since VagrantCloud can't host this images, you can use direct links to download them. Download speed may be slow.
- Mac OS X Yosemite 10.10 (XCode 6.4): v0.2.1 (13Gb) (sha1: 6339bf812017b9f0046d9fdda79cc6f3d2ab169a)
- macOS Sierra (XCode 8.2): v0.3.1 (14.1Gb)
Also, you can download older boxes from the Hashicorp Atlas page AndrewDryga/vagrant-box-osx/ (if it's accessible at the moment), or simply by starting with vagrant init AndrewDryga/vagrant-box-osx
instead of url.
Setting up
- Install Vagrant and VirtualBox;
cd
into your project directory;- Run
vagrant init AndrewDryga/vagrant-box-osx
; - Your Vagrantfile should be ready as soon as Vagrant downloads box;
- Start VM by calling
vagrant up
.
OS X Licensing
MacOS Vagrant Box. A clean (no other software installed or configured) macOS box. No changes made to the box beyond those performed by macinbox. Use only in accordance with the Apple SLAs: These boxes are built for use with VirtualBox. Defaults: 4 GB of memory; 2 CPUs; 64 GB dynamically-allocated disk; APFS (Apple File System). Install Vagrant (and VirtualBox (```cd``` into your project directory;rn3. Run ```vagrant init AndrewDryga/vagrant-box-osx```;rn4. Your Vagrantfile should be ready as soon as Vagrant downloads box;rn5. MacOS $ brew install ffmpeg -with-libmp3lame -with-libass -with-opus -with-fdk-aac If FFmpeg does not install correctly in the above step, depending on your OS, you may have to build it from source. For more information see FFmpeg’s compilation guide. Vagrant Box ¶ @csimpi has posted.
Apple's EULA states that you can install your copy on your actual Apple-hardware, plus up to two VMs running on your Apple-hardware. So using this box on another hardware is may be illegal and you should do it on your own risk.
By using it you agree with all macOS Sierra and XCode license agreements.
What's included?
Sierra box:
- Default Vagrantfile (inside box) that fixes most of common issues;
- Homebrew;
- Homebrew Cask;
- NodeJS 7.2.1 (npm 3.10.10, n 2.1.3);
- Lunchy;
- Puppet 4.8.1;
- XCode 8.2 (and XCode Command Line Tools).
Yosemite box:
- Default Vagrantfile (inside box) that fixes most of common issues;
- Homebrew;
- Homebrew Cask;
- Puppet 3.7.4;
- XCode 6.4;
- XCode Command Line Tools;
- NodeJS 0.12.7 (for npm);
- Appium 1.4.10;
- iOS Simulator (all devices for iOS 8.4).
Useful cli tools and information
- Nomad CLI - provides a set of tools that allow to manage certificates, profiles and many other things;
- ObjC.io Issue 6 - how-to article about building apps in cli-only (this one about Travis-Ci);
security
- use it to manage your keychains;- xctool - Facebook project for building iOS apps.
Common issues
- Box may crash on AMD-based hosts due to VirtualBox issues.
- Do not turn 3D acceleration on in VirtualBox, or it will start retuning aborted condition and would not start in headless mode;
- VirtualBox doesn't have Guest additions for Mac OS X, so you can't have shared folders. Instead you can use normal network shared folders (docs):
# Use NFS for the shared folderconfig.vm.synced_folder '.', '/vagrant', id: 'core', :nfs => true, :mount_options => ['nolock,vers=3,udp,noatime']
- If your VM freezes with
hfs mounted macintosh hd on device root_device
then you need to set cpuidset inside your Vagrantfile:vb.customize ['modifyvm', :id, '--cpuidset', '1','000206a7','02100800','1fbae3bf','bfebfbff']
(it's included since version 0.2); - If your mouse does not work on a MacBook Pro host machine, shut down the VM and open the VirtualBox Manager. Edit the VM's settings. Choose the System tab. Under the Motherboard sub-tab, set the Chipset option to be PIIX 3, and set the Pointing Device option to be USB Tablet. Restart the VM;
- When OSX is trying to prompt graphically for password (i.e when using swift REPL), it will raise the error
error:process exited with status -1) (lost connection)
because there is no graphical output when using vagrant via ssh login, enable the develop mode can solve this situation, run the following command:sudo /usr/sbin/DevToolsSecurity --enable
; - If you need user password (for example for Homebrew Cask). Vagrant have default consideration to create user
vagrant
with passwordvagrant
, you can use it.
Warning
VirtualBox support for Mac OS X is experimental. More information can be found in official docs.
Tips to build your own box
Main think you should remember is that you need latest VirtualBox version BEFORE you start installation. Process of installation is pretty straight forward (as on usual Mac), but you need to erase virtual drive during installation via Disk Utilities. After that just follow Vagrant guide to create base box and another one to package it.
Sometimes you need to rebuild VirtualBox kernel extensions before installing OS on VM.
Macos Vagrant Box Add
Helpful links (most of them are outdated):
- Also you might be interested to take look at radeksimko/vagrant-osx that can build boxes for VMWare Vagrant provider.
virtualbox Externally hosted (vagrant-osx.nyc3.digitaloceanspaces.com)
This version was created over 5 years ago.
The full description and issue tracker can be found on GitHub AndrewDryga/vagrant-box-osx.
What's included?
- Puppet 3.7.4
- XCode 6.4
- XCode Command Line Tools
- NodeJS 0.12.7 (for npm)
- Appium 1.4.10
- iOS Simulator (all devices for iOS 8.4)
Useful cli tools and information
- Nomad CLI - provides a set of tools that allow to manage certificates, profiles and many other things;
- ObjC.io Issue 6 - how-to article about building apps in cli-only (this one about Travis-Ci);
security
- use it to manage your keychains;- xctool - Facebook project for building iOS apps.
Common issues
- Do not turn 3D acceleration on in VirtualBox, or it will start retuning aborted condition and would not start in headless mode;
- VirtualBox doesn't have Guest additions for Mac OS X, so you can't have shared folders. Instead you can use normal network shared folders (docs).
- If you face VM freezed on message
hfs mounted macintosh hd on device root_device
then you need to set cpuidset inside your Vagrantfile:vb.customize ['modifyvm', :id, '--cpuidset', '1','000206a7','02100800','1fbae3bf','bfebfbff']
(it's included since version 0.2); - If your mouse does not work on a MacBook Pro host machine, shut down the VM and open the VirtualBox Manager. Edit the VM's settings. Choose the System tab. Under the Motherboard sub-tab, set the Chipset option to be PIIX 3, and set the Pointing Device option to be USB Tablet. Restart the VM;
- When OSX is trying to prompt graphically for password (i.e when using swift REPL), it will raise the error
error:process exited with status -1) (lost connection)
because there is no graphical output when using vagrant via ssh login, enable the develop mode can solve this situation, run the following command:sudo /usr/sbin/DevToolsSecurity --enable
; - In early versions of this box you need to accept XCode license by you own. If you face error:
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
, just run this command:sudo xcodebuild -license accept
; - If you need user password (for example for Homebrew Cask). Vagrant have default consideration to create user
vagrant
with passwordvagrant
, you can use it.
OS X Licensing
Vagrant Box Add
Apple's EULA states that you can install your copy on your actual Apple-hardware, plus up to two VMs running on your Apple-hardware. So using this box on another hardware is may be illigal and you should do it on your own risk.
virtualbox Hosted by Vagrant Cloud (13 GB)
This version was created over 5 years ago.
The full description and issue tracker can be found on GitHub AndrewDryga/vagrant-box-osx.
virtualbox Hosted by Vagrant Cloud
This version was created over 5 years ago.
The full description and issue tracker can be found on GitHub AndrewDryga/vagrant-box-osx.
virtualbox Externally hosted (files.dryga.com)
Supported Provisioners
- Virtualbox
- A licensed copy of VMware Fusion
- The VMWare Desktop Vagrant plugin is $79 and is required to use Vagrant with VMware.
- Install it with
vagrant plugin install vagrant-vmware-desktop
. - License it with
vagrant plugin license vagrant-vmware-desktop <path_to_.lic>
. - Additionally, the Vagrant VMware Utility must also be installed
If you have both Virtualbox and VMware installed, consider disabling the network adapters for the provider that you are not using. For example, if you want to build DetectionLab using Virtualbox, disable the VMware network adatpers (or vice-versa) to avoid a conflict.
Instructions
- Ensure the prerequisites listed above are installed and that you meet the system requirements
- Clone the DetectionLab repo to your filesystem:
git clone https://github.com/clong/DetectionLab.git
- Using a terminal, navigate to the DetectionLab/Vagrant repository and run ./prepare.sh to verify that your system has all of the prerequisites installed:
At this point in time, we can bring up DetectionLab using the vagrant up --provider=<provider>
command. The provider options are virtualbox
or vmware_desktop
.
You shouldn’t need to sudo any of the vagrant commands. Doing so can cause permission issues down the road.
When we run Vagrant up, here’s what happens:
- Vagrant will bring up one host at a time, starting with logger and followed by dc, wef, and win10.
- Three boxes will be downloaded from Vagrant cloud:
- Each box will go through provisioning, which configures the host and installs software.
After running vagrant up --provider=vmware_desktop
or vagrant up --provider=virtualbox
, you should see something like this:
Vagrant Public Boxes
If all goes well, this process should continue for 1-2 hours depending on your computer and network speed. The boxes are very large, but only need to be downloaded once.
After the provisioning finishes, you can run .post_build_checks.sh
to verify that services are running:
If for some reason you encounter an error or any issues, checkout the troubleshooting page linked below. If you can’t find an answer to your question, please open an issue on the DetectionLab GitHub!
Troubleshooting
Osx Vagrant Box
Vagrant Macos Box Mojave
Visit the troubleshooting page.