Where is Vagrant saving changes to the VM?

前端 未结 2 1086
清歌不尽
清歌不尽 2020-12-22 18:02

I am just starting with Vagrant and I am having a little trouble understanding a few details. I have read through the docs but still am missing a basic concept. When I want

2条回答
  •  心在旅途
    2020-12-22 18:12

    Vagrant imports the base box which is located at ~/.vagrant.d/boxes/, like you said. This is where the base boxes are kept. It uses it to start a VM from the clean state. When importing a VM, the responsibility of where to store data files and VM state is up to VirtualBox itself. This is a configurable location but typically defaults to ~/VirtualBox\ VMS for Mac OS X and Linux. In Windows the boxes are kept in %userprofile%\.vagrant.d\boxes

    It is easy to find the place where they are getting created, regardless of what platform you happen to be using.

    1. Start VirtualBox. 
    2. Go to the VM that shows as running instance. 
    3. Check out the Settings ->Storage. 
    4. You can find the path to location where VMs are created and stored in your file system.
    

提交回复
热议问题