Есть бродячие образы с предустановленной MongoDb, как эта
https://app.vagrantup.com/dansweeting/boxes/ubuntu-trusty64-mongo-node
Создать бродячий файл
EX:
# created by Andrei Lupuleasa, December 2018.
Vagrant.require_version ">= 2.2.2"
# Automatically installs required plugin on Windows
if Vagrant::Util::Platform.windows?
plugin = 'vagrant-winnfsd'
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin?(plugin)
end
Vagrant.configure(2) do |config|
config.vm.box = "dansweeting/ubuntu-trusty64-mongo-node" # VM OS version
config.vm.hostname = "vagrantdev"
# set IP and ports
config.vm.network "private_network", ip: "192.168.44.10"
# Sync the sources folder with the machine
# For Windows `nfs` is preferred due to poor performance of default settings.
if Vagrant::Util::Platform.windows?
config.vm.synced_folder "share", "/var/www/html", type: 'nfs'
else
config.vm.synced_folder "share", "/var/www/html", mount_options: ["dmode=777","fmode=777"]
end
# Set to true if you want automatic checks
config.vm.box_check_update = false
# Copy personal private key with access to repository to machine
config.vm.provision "file", source: "~/.ssh/id_rsa", destination: "~/.ssh/id_rsa"
config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/id_rsa.pub"
end
Идите туда, где у вас есть бродячий файл из cmd, как
cd D:\vagrant
и до vagrant up