I've verified that vagrant works just fine with an OSX guest. The only
feature that I've detected as broken so far is shared folders since
VirtualBox doesn't support guest additions for OSX. Here is what you need
to do in your VirtualBox OS X guest before repackaging:
1. Go to System Preferences > Sharing and enable remote login
2. On the same pane, select Allow Access for All Users
3. Launch /Applications/Utilities/Terminal.app
4. sudo -i # Enter your root password here
5. visudo
1. This will allow you to modify sudoers. Vim will be the default
text editor so make sure you're comfortable with basic file modifications
in vim before attempting this step. At the end of the file add the
following: vagrant ALL=(ALL) NOPASSWD: ALL
2. This is making the assumption that your admin user is named
vagrant.
3. Save and quit the visudo session
6. exit # to exit root
7. mkdir ~/.ssh
8. vim ~/.ssh/authorized_keys
1. Copy and paste the public key from the following link into this
file: https://github.com/mitchellh/vagrant/blob/master/keys/vagrant.pub
2. Save and quit the vim session
9. sudo shutdown -h now
That should do it. Package the box and run vagrant box add. You may want to
include a vagrantfile in your package that includes the following:
Vagrant.configure('2') do |config|
config.vm.provider "virtualbox" do |v|
v.gui = true
end
end
This will ensure that the box boots in GUI mode, which would make a lot of
sense using OS X as a guest VM. So, when packaging, don't forget the
--vagrantfile flag.
I hope this helps. Good luck.
On Monday, February 3, 2014 10:44:39 AM UTC-8, Alexey Petruchik wrote:
>
> up
>
>
> On Wed, Jan 29, 2014 at 8:27 PM, Alexey Petruchik
> <[email protected]<javascript:>
> > wrote:
>
>> So still no ideas what is going wrong?
>>
>>
>> On Thu, Jan 23, 2014 at 10:49 PM, Alexey Petruchik
>> <[email protected]<javascript:>
>> > wrote:
>>
>>> Specifying --output doesn't change anything for me. I've attached
>>> complete log generated by running
>>>
>>> vagrant package --base vagrant-osx --debug
>>>
>>> Hope that such detailed log (1856 lines) can help to determine the root
>>> of the problem.
>>>
>>>
>>>
>>> On Wed, Jan 22, 2014 at 5:03 AM, Alvaro Miranda Aguilera <
>>> [email protected] <javascript:>> wrote:
>>>
>>>> What happen if you add
>>>>
>>>> --output osx.box
>>>>
>>>> to the command ?
>>>>
>>>> On Wednesday, January 22, 2014 7:05:23 AM UTC+13, Alexey Petruchik
>>>> wrote:
>>>>
>>>>> But virtual machine seems to be working quite well when I use it from
>>>>> VirtualBox GUI. Can it be a vagrant-related issue? How can I enable some
>>>>> debug\verbose mode to get more info what is going wrong?
>>>>>
>>>>>
>>>>> On Fri, Jan 17, 2014 at 2:01 AM, Tony Guntharp <[email protected]>wrote:
>>>>>
>>>>>> Virtualbox and OSX guest don't play nicely together, you're better
>>>>>> off doing it using VMware.
>>>>>>
>>>>>> -t
>>>>>>
>>>>>> Tony Guntharp
>>>>>> Co-Founder SourceForge.net
>>>>>> 1 (415) 373-6814
>>>>>> 1 (415) 694-3732
>>>>>>
>>>>>>
>>>>>> On Thu, Jan 16, 2014 at 2:26 AM, Alexey Petruchik
>>>>>> <[email protected]>wrote:
>>>>>>
>>>>>>> Hi, all. I'm having troubles creating OS X Mavericks vagrant box.
>>>>>>> I've installed OS X Mavericks to VirtualBox using this guide:
>>>>>>>
>>>>>>> http://www.youtube.com/watch?v=3kKDf-E5AiQ
>>>>>>>
>>>>>>> Then I've configured guest OS X using this guide:
>>>>>>>
>>>>>>> http://www.skoblenick.com/vagrant/vmware-fusion/creating-an-
>>>>>>> osx-base-box/
>>>>>>>
>>>>>>> After VM shutdown and trying to package it I'm getting this output:
>>>>>>>
>>>>>>> vagrant package --base vagrant-osx
>>>>>>>
>>>>>>> [vagrant-osx] Discarding saved state of VM...
>>>>>>>
>>>>>>> [vagrant-osx] Clearing any previously set forwarded ports...
>>>>>>>
>>>>>>> A directory was not specified to package. This should never happen
>>>>>>>
>>>>>>> and is a result of an internal inconsistency.
>>>>>>>
>>>>>>>
>>>>>>> I'm new to vagrant so it would be nice if someone can explain me
>>>>>>> what is going on and what I'm doing wrong.
>>>>>>>
>>>>>>> Host system: OS X 10.9.1
>>>>>>>
>>>>>>> Guest system: OS X 10.9
>>>>>>>
>>>>>>> VirtualBox: 4.3.6
>>>>>>>
>>>>>>> Vagrant: 1.4.2
>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "Vagrant" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to [email protected].
>>>>>>>
>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Vagrant" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>>
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>
>>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Vagrant" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected] <javascript:>.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>
>>
>
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.