How do I associate a Vagrant project directory with an existing VirtualBox VM?

后端 未结 10 1812
梦如初夏
梦如初夏 2020-12-02 03:57

Somehow my Vagrant project has disassociated itself from its VirtualBox VM, so that when I vagrant up Vagrant will import the base-box and create a new virtual

10条回答
  •  孤城傲影
    2020-12-02 04:05

    Update with same problem today with Vagrant 1.7.4:

    • useful thread at https://github.com/mitchellh/vagrant/issues/1755 and specially with following commands:

    For example, to pair box 'vip-quickstart_default_1431365185830_12124' to vagrant.

    $ VBoxManage list
    "vip-quickstart_default_1431365185830_12124" {50feafd3-74cd-40b5-a170-3c976348de27}
    $ echo -n "50feafd3-74cd-40b5-a170-3c976348de27" > .vagrant/machines/default/virtualbox/id
    

提交回复
热议问题