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

后端 未结 10 1811
梦如初夏
梦如初夏 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:25

    In Vagrant 1.9.1:

    I had a VM in Virtual Box named 'Ubuntu 16.04.1' so I packaged it as a vagrant box with:

    vagrant package --base "Ubuntu 16.04.1"
    

    responds with...

    ==> Ubuntu 16.04.1: Exporting VM...
    ==> Ubuntu 16.04.1: Compressing package to: blah blah/package.box
    

提交回复
热议问题