AspiringMat
AspiringMat

Reputation: 2269

Is it possible to run a Vagrant box inside an Ubuntu Virtual box machine?

I currently have a windows 10 which I like for everything, except when it comes to development. So whenever I need to work, I run an Ubuntu virtual box machine and I code there.

I recently started working with a team that uses Vagrant boxes (For development environments) and Ansible (For provisioning). My question is, is it possible to run a Vagrant box inside my Ubuntu virtual machine to provision it with Ansible? (Since it is only available on Linux distros).

I realize that this is a bit confusing since I am running a virtual machine inside another. Is there any way I can go around this?

Upvotes: 3

Views: 882

Answers (1)

hurturk
hurturk

Reputation: 5444

Vagrant is able to run on windows, you can set a nice directory sharing and you can access that directory from your other VM. If provision is part of the Vagrantfile, you don't have to worry whether this will work in windows or not because most of the provisioners run inside the created machine already.

For Ansible, you should use Ansible Local provisioner. That will let it run on guest machine completely and you won't need Ansible on the host machine.

Upvotes: 1

Related Questions