Hello,

The virtualguest addition is very small, if the intention is to reduce the
size, then that instruction is missing one step.

vbox addition is used/required to mount the folder as /vagrant, so if you
don't want to get that, then you need to disable it.

Try this on your vagrantfile:

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



If fails, paste the new logs, but I would go the path of having vbox guest
additions.

Remeber to delete these before packing your box: rm -f
/etc/udev/rules.d/*persistent*


For the default share, check :

http://docs.vagrantup.com/v2/synced-folders/index.html

By default, Vagrant will share your project directory (the directory with
the Vagrantfile <http://docs.vagrantup.com/v2/vagrantfile/>) to/vagrant.


http://docs.vagrantup.com/v2/synced-folders/basic_usage.html

DISABLING

Shared folders can be disabled by adding the disabled option to any
definition:

Vagrant.configure("2") do |config|
  config.vm.synced_folder "src/", "/srv/website", disabled: true
end


On Mon, Oct 13, 2014 at 6:13 AM, Jason Hsu <[email protected]> wrote:

> Thanks, Alvaro.  I see that the procedure at
> http://hadooppowered.com/2014/05/10/create-a-debian-wheezy-vagrant-box/
> removes the guest additions during the cleanup process.
>
> I know that the purpose of the cleanup is to minimize the size of the box,
> but is there ANY legitimate reason to remove the guest additions?  I know
> that guest additions are what allow projects you create in the virtual
> environment to automatically be synced to a folder in the host system, but
> I didn't realize that the guest additions are what allow the automatic
> login to work when one enters "vagrant up".
>
> If removing guest additions means disabling file syncing and the automatic
> login process when one enters "vagrant up", then what's the point of having
> Vagrant in the first place?  One might as well just work with VirtualBox
> directly and skip Vagrant.
>
> On Sunday, October 12, 2014 5:10:46 AM UTC-5, Alvaro Miranda Aguilera
> wrote:
>>
>> Hello
>>
>> Error message state virtualbox additions are not there.
>>
>> You need to install that, and if you upgrade the kernel, reboot the
>> machine and then rebuild the kernel modules
>>
>> in EL/fedora is done like /etc/init.d/vbox-add setup
>>
>> this is required as the folder where you Vagrantfile is will be mounted
>> as /vagrant inside the vm.
>>
>> Also, before packaing the box.
>>
>> edit the eth0 conf file, remove UUID and macaddress and ensure is ready
>> for dhcp
>> delete other nic configurations like eth1 eth2
>>
>> check /etc/udev/rules.d/ if there is a file like 70-persistent-net.rules
>> or similar delete it, this cause issues on EL/Fedora not sure on other
>> distros.
>>
>>
>> To create boxes, have a look at packer.io with a json file as template,
>> you can build automatically a box.
>>
>> Hope this helps
>> Alvaro
>>
>  --
> 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/d/optout.
>

-- 
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/d/optout.

Reply via email to