V
V
Vit2015-12-01 22:46:58
Debian
Vit, 2015-12-01 22:46:58

Why does vagrant up require rsync for debian/jessie64?

I do in Windows7 vagrant up for debian/jessie64 box and get an error:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'debian/jessie64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'debian/jessie64' is up to date...
==> default: Setting the name of the VM: farmiya_cards_default_1448998917763_52769
"rsync" could not be found on your PATH. Make sure that rsync
is properly installed on your system and available on the PATH.

Other boxes (like ubuntu/trusty64) don't have this problem.
An example of the simplest Vagrantfile on which I get an error:
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "debian/jessie64"
  config.vm.network :forwarded_port, guest: 80, host: 81
  config.vm.provider :virtualbox do |vb|
      vb.customize ["modifyvm", :id, "--memory", 1024]
      vb.customize ["modifyvm", :id, "--cpus", 1]
  end
end

What is the point anyway? Why does it require rsync at all if I don't have a requirement in Vagrantfile to sync with this method? Why is this just for boxing with jessie happening?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vit, 2015-12-01
@fornit1917

Fuck you... it turns out that boxing has a default config in ~/.vagrant.d which says:

Vagrant.configure("2") do |config|
  config.vm.synced_folder \
    ".",
    "/vagrant",
    type: "rsync"
end

For treatment, it is enough to write the following in the Vagrantfile:
config.vm.synced_folder ".", "/vagrant", disabled: true

D
Denis Belyaev, 2016-01-28
@cimmwolf

The option to disable synchronized_folder is bad because you won't have shared directories with the virtual machine.
The problem with debian/jessie64 box version >=8.2.2 is that VirtualBox Guest Additions are not installed there.
In order to solve this problem, it is enough to install the vagrant-vbguest plugin:
And write in the Vagrantfile:
After that, re-create the box and everything will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question