English 中文(简体)
几乎没有什么地方对证书制度的储蓄变化?
原标题:Where is Vagrant saving changes to the VM?
  • 时间:2011-11-22 11:10:31
  •  标签:
  • vagrant

我刚刚从宽松开始,我对几个细节的理解几乎没有什么麻烦。 我已经读过这套书,但仍然缺乏一个基本概念。 当我想开始一个宽松的方框一时:

这将“在盒子上铺设掩体”,我理解,箱子储存在~/.vagrant.d,事实上,我从一个基图班箱中包装了我自己的箱子。 然而,当我 run忙,开始在 v上添加档案时,所储存的枪支究竟是哪里的硬车? 例如,当我管理一个适当的植被,安装一个pache,2 并修改了根基系统时,这一系统是否作了修改?

When I do a du on my current directory I do not see any changes. I also do not see any changes in the ~/.vagrant.d directory. However, I can do vagrant halt, restart my local machine and then run vagrant up again and the changes are persisted somewhere.

vagrant up also reports

[default] VM already created. Booting if its not already running...

Can someone tell me where the VM is created and where the changes are made?

最佳回答

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.doxes

很容易找到他们正在创造的地方,不管你们会利用什么平台。

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.
问题回答

I always change the directory that Virtualbox uses by default for VMs. Normally it is in your profile folder in Windows.

我把它改为“D:VHDsVBox”,在那里,我发现我的异常测试是:“试验01_1347456065”。 这被称为考验01,因此,我猜测会增加数字,使事情保持独特性。





相关问题
Easiest way to copy a single file from host to Vagrant guest?

I have a use case where I occasionally want to copy a single file from my host machine to the Vagrant guest. I don t want to do so via traditional provisioners (Puppet / Chef) because this is often a ...

Importing Mysql database using Ruby/Chef Recipe for Vagrant

I am writing a chef script to automate setting dev environments. I can get a database created and grant privileges but I am trying to find out a way to import a mysql dump file into the database that ...

Problem installing PEAR with a chef recipe for vagrant

I am using Vagrant to create a development server locally. I am writing my own Chef recipe to install everything I need but I am running into problems. Pear will not install as I think it is trying ...

Vagrant s port forwarding not working [closed]

I m running into a small problem at the end of the Getting Started guide for vagrant. I m working on a CentOS basebox that has Apache2 running (provisioning via Puppet). I ve set up port forwarding ...

Installing multiple packages via Vagrant + Chef

I ve just discovered Vagrant + Chef and I m trying to create a simple recipe to install multiple packages on the node. I thought something like this could work (I m completely new tu ruby): # (From ...

Autotest notifications on Ubuntu virtual environment

I am having trouble getting Rails autotest notifications to work on the Engine Yard Vagrant environment. On the Mac, I normally get the notifications via Growl. However, on the virtual environment (...

Setting up Vagrant to mirror a heroku instance

I am ramping up on vagrant and was wondering if there was a walkthrough / recipe to get a vagrant instance up and running to mirror a heroku bamboo stack (lenny 5.0 ree-1.8.7) I am stuck on the first ...

热门标签