Vagrant “ VM not created.” when trying to create box from existing VM

后端 未结 2 1038
耶瑟儿~
耶瑟儿~ 2021-01-31 07:34

I imported the precise32 box, then installed some packages and other data on the VM. My plan is to then repackage it into a box, to save on complicated provisioning when sharing

2条回答
  •  你的背包
    2021-01-31 08:19

    When you package a box, the box name has to be the specific machine name that you can get from VirtualBox (e.g. lucid_1372711888). Just execute following command in cmd:

    vboxmanage list vms
    

    Notice that "vboxmanage" should prior be added to PATH variable. See here how to do that.

    Also notice that virtual maschine name must not contain spaces. Otherwise it won't be recognized by "vagrant package" command. For instance:

    vagrant package --base win7_vbox_base --output win7_base.box #CORRECT
    ------------------------------------------------------------------------
    vagrant package --base win7 vbox base --output win7_base.box #INCORRECT
    

提交回复
热议问题