- Tested on mountainlion/virtualbox - virtualbox shared folders will not work (no vboxvsf support) - Must use at least 2GB of RAM or the os will refuse to boot(mountainlion requirement) To begin, create a mountainlion vm in virtualbox. You will need to install from scratch most likely, and assign at least 2GB of ram for it to install. Create 2 network interfaces, the first one a NAT interface, second a hostonly interface. 'vagrant package' the VM. In your vagrant file, be sure that the synced folder is disabled: config.vm.synced_folder "vagrant", "/vagrant", disabled: true
36 lines
842 B
Ruby
36 lines
842 B
Ruby
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module GuestFreeDarwin
|
|
class Plugin < Vagrant.plugin("2")
|
|
name "Darwin guest"
|
|
description "Darwin guest support."
|
|
|
|
guest("darwin") do
|
|
require File.expand_path("../guest", __FILE__)
|
|
Guest
|
|
end
|
|
|
|
guest_capability("darwin", "change_host_name") do
|
|
require_relative "cap/change_host_name"
|
|
Cap::ChangeHostName
|
|
end
|
|
|
|
guest_capability("darwin", "configure_networks") do
|
|
require_relative "cap/configure_networks"
|
|
Cap::ConfigureNetworks
|
|
end
|
|
|
|
guest_capability("darwin", "halt") do
|
|
require_relative "cap/halt"
|
|
Cap::Halt
|
|
end
|
|
|
|
guest_capability("darwin", "mount_nfs_folder") do
|
|
require_relative "cap/mount_nfs_folder"
|
|
Cap::MountNFSFolder
|
|
end
|
|
end
|
|
end
|
|
end
|