All Projects → radeksimko → Vagrant Osx

radeksimko / Vagrant Osx

Licence: mit
Vagrant setup for Mac OS X

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Vagrant Osx

ansible-role-test-vms
DEPRECATED - A Vagrant configuration to test Ansible roles against a variety of Linux distributions.
Stars: ✭ 42 (-49.4%)
Mutual labels:  vagrant, vmware
Vmware Usb Osx
Easily create a bootable USB installer for VMware ESXi / vSphere Hypervisor
Stars: ✭ 286 (+244.58%)
Mutual labels:  vmware, osx
ansible virtualization
Ansible Collection: Virtualization roles
Stars: ✭ 31 (-62.65%)
Mutual labels:  vagrant, vmware
packer-vagrant-builder
Build Solaris,CentOS or Ubuntu Vagrant box with puppet rpm's
Stars: ✭ 49 (-40.96%)
Mutual labels:  vagrant, vmware
Bento
Packer templates for building minimal Vagrant baseboxes for multiple platforms
Stars: ✭ 3,779 (+4453.01%)
Mutual labels:  vmware, vagrant
docker-hands-on-guide
Hands on guide for docker, k8s cluster lightweight virtualization.
Stars: ✭ 25 (-69.88%)
Mutual labels:  vagrant, vmware
packer-templates
Packer templates for creating Amazon EC2 images, Proxmox templates and Vagrant boxes
Stars: ✭ 70 (-15.66%)
Mutual labels:  vagrant, vmware
Packer Ubuntu 1804
This build has been moved - see README.md
Stars: ✭ 101 (+21.69%)
Mutual labels:  vmware, vagrant
Robox
The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
Stars: ✭ 303 (+265.06%)
Mutual labels:  vmware, vagrant
Mech
Easy command line virtual machines for VMWare
Stars: ✭ 294 (+254.22%)
Mutual labels:  vmware, vagrant
packer-windows
Windows Templates for Packer: Windows 11, Windows 10, Windows Server 2022, 2019, 2016, also with Docker
Stars: ✭ 1,116 (+1244.58%)
Mutual labels:  vagrant, vmware
Osx Vm Templates
macOS templates for Packer and VeeWee.
Stars: ✭ 1,050 (+1165.06%)
Mutual labels:  vmware, vagrant
upstream-institute-virtual-environment
A Vagrant-based image creator for OpenStack Upstream Training sessions
Stars: ✭ 18 (-78.31%)
Mutual labels:  vagrant, vmware
insaneworks-packer-template
CentOS 7-8 8Stream / AlmaLinux 8 / FreeBSD 12 - 13 x64 + VirtualBox / VMWare for Packer Template + FreeBSD 13 / AlmaLinux 9 + Parallels
Stars: ✭ 38 (-54.22%)
Mutual labels:  vagrant, vmware
packer-centos
Create CentOS images for different hypervisors with Packer
Stars: ✭ 18 (-78.31%)
Mutual labels:  vagrant, vmware
packer-ubuntu
No description or website provided.
Stars: ✭ 29 (-65.06%)
Mutual labels:  vagrant, vmware
Vagrant Debian Jessie
Automatic Debian 8 Vagrant base box building on OSX, Linux and Windows
Stars: ✭ 199 (+139.76%)
Mutual labels:  osx, vagrant
Vagrant Docker Vm
💻 Development Vagrant VM with Docker, Samba and Mail sandbox (customizable)
Stars: ✭ 97 (+16.87%)
Mutual labels:  vmware, vagrant
Vagrant Boxes
baseboxes build with packer.io for use with vagrant
Stars: ✭ 291 (+250.6%)
Mutual labels:  vmware, vagrant
Packer Templates
Packer templates for Vagrant base boxes
Stars: ✭ 471 (+467.47%)
Mutual labels:  vmware, vagrant

Vagrant setup for OSX

Vagrant environment for testing and experiments inside OSX running via VMWare.

Prerequisites

  1. Download a fresh copy of OSX installer from AppStore.
  2. Create a Vagrant OSX box via timsutton/osx-vm-templates
  • Use --only=vmware-iso to only use VMWare builder
  • Increase the disk size (default is 20480 MB) as installing large packages from Homebrew and elsewhere may take up 20GB pretty quickly
  • Remove Parallels and Chef scripts as we won't need these
  1. Place the result box in the root of this repo as mac-osx-10-10-vmware.box
  2. Install Homebrew (which implies having XCode CLI Tools installed)
  3. Install Brewcask brew install caskroom/cask/brew-cask
  4. Install other tools: brew cask install vagrant vmware-fusion
  5. Install Vagrant VMWare plugin: vagrant plugin install vagrant-vmware-fusion and add license vagrant plugin license vagrant-vmware-fusion license.lic

Caveats

Boxen & synced folders

Boxen uses file-locking to ensure it's only running once. This doesn't work with the default VMWare file-sync mechanism.

This is why we use NFS, but that has a different caveat - each time you run vagrant [up|reload], Vagrant will try to modify /etc/exports on your host machine, which will by default require your sudo password.

A workaround could be allowing write for all admins on that system & restarting nfsd without password:

# This is due to pesky sed - see https://github.com/mitchellh/vagrant/pull/5259
sudo chown root:admin /etc
sudo chmod g+w /etc

sudo chown root:admin /etc/exports
sudo chmod g+w /etc/exports

echo "%admin ALL=(root) NOPASSWD: /sbin/nfsd" >> /etc/sudoers

while having Vagrant 1.7.0+ installed.

Testing environments

Just pure OSX

Just a pure OSX with no extra mountpoints/provisioners, works out of the box.

vagrant up base

Boxen

Expects ./our-boxen directory in the root, Vagrant will mount it & install accordingly.

Available ENV variables:

  • GH_TOKEN - Github token for Boxen
  • UNLOCK_BOXEN (empty or 1) - whether to unlock boxen (sometimes necessary when you kill the instance in mid-flight)
  • NO_PULL (empty or 1) - whether to pull down latest version of mounted our-boxen or not
vagrant up boxen

Dotfiles

TODO

Homebrew (Cask)

This will install latest Homebrew + Brewcask, turn Brewcask into DEV mode and mount any directories named as homebrew-* as taps into the VM.

vagrant up brew

Usage

vagrant ssh brew
brew install vagrant/homebrew-mytap/package-name
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].