Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Successful Sierra build gets BSD-based guests error w. default Vagrantfile #31

Open
darkn3rd opened this issue Nov 15, 2017 · 1 comment

Comments

@darkn3rd
Copy link

darkn3rd commented Nov 15, 2017

The Vagrantfile produced from OS X 10.11 will yield errors after doing vagrant up. As there are no virtualbox guest editions built into the image, the default /vagrant file system with Shared Folders vboxsf cannot be mounted.

STEPS TO REPRODUCE

STEP 1: Build the Box

Build an image with Mac OX 10.12.1 (later versions apparently do not work).

sudo prepare_iso/prepare_iso.sh ~/Downloads/Install\ macOS\ Sierra.app dmg
packer build \
    -only=virtualbox-iso \
    -var-file=macos1012.json \
    -var iso_url=dmg/OSX_InstallESD_10.12.1_16B2657.dmg \
    macos.json

STEP2: Install Box and Init Env w/ Box

vagrant box add box/virtualbox/macos1012-0.1.0.box --name mac/sierra
mkdir macbox
cd macbox
vagrant init mac/sierra
vagrant up

ACTUAL RESULTS

Warning with this:

Vagrant is not able to mount VirtualBox shared folders on BSD-based
guests. BSD-based guests do not support the VirtualBox filesystem at
this time.

To change the type of the default synced folder, specify the type as
rsync or nfs:

    config.vm.synced_folder ".", "/vagrant", type: "nfs" # or "rsync"

Alternatively, if you do not need to mount the default synced folder,
you can also disable it entirely:

    config.vm.synced_folder ".", "/vagrant", disabled: true

You can read more about Vagrant's synced folder types and the various
configuration options on the Vagrant website.

This is not a bug in Vagrant.

EXPECTED RESULTS

Expected a Vagrantfile that would not cause an error.

@darkn3rd
Copy link
Author

I did some further research on this, and recommend simply putting config.vm.synced_folder ".", "/vagrant", disabled: true with a comment in the default Vagrantfile.

Each iteration from Apple seems to break NFS in some new way, even to the point of kernel panics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant