Difference between .vagrant and .vagrant.d directories

0 votes

What's the difference between .vagrant and .vagrant.d directories and the private_key and insecure_private_key stored in the respective directories?



This was not stated in the docs and couldn't find it anywhere else either.

Jul 20, 2018 in Other DevOps Questions by Atul
• 5,530 points

1 answer to this question.

0 votes

All your system-wide settings for your downloaded vagrant boxes are stored in .vagrant.d directory which is placed in your home directory.

.vagrant on the other hand is in you environment/project directory and holds individual projects settings i.e. your current VM settings. Whenever you create and execute a vagrantfile, a .vagrant directory is created with VM specific data.

The .vagrant.d/insecre_private_key is the default insecure private key to use your VM(s). It's replaced by vagrant on first VM start with private_key from project's .vagrant directory. In your example: private_key for default VM started with virtualbox provider.

answered Jul 20, 2018 by DareDev
• 6,850 points

Related Questions In Other DevOps Questions

0 votes
1 answer

Use vagrant to update $PATH of guest vm

Just try the below script: mvm.vm.provision :shell, :inline ...READ MORE

answered May 1, 2018 in Other DevOps Questions by shubham
• 6,910 points
+1 vote
2 answers

When do we use Chef or Azure SDK to create VM and deploy in automation

The solution to the automated deployment in ...READ MORE

answered Aug 21, 2018 in Other DevOps Questions by Priyaj
• 57,530 points
+3 votes
6 answers

Devops and security

By using tools that are shared across the ...READ MORE

answered Oct 23, 2018 in Other DevOps Questions by Anvit
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
0 votes
1 answer
0 votes
1 answer

AWS health check and management

You can use Application Loadbalancer or AWS ...READ MORE

answered Aug 20, 2018 in Other DevOps Questions by DareDev
• 6,850 points