How do I package an existing VM that was not created using vagrant up command?

前端 未结 9 1829
你的背包
你的背包 2021-01-30 02:29

I installed a VirtualBox and then installed a Ubuntu 12.10 Server Base OS in it. I have installed all kinds of php packages and other packages in it. My friends recommended me t

9条回答
  •  野的像风
    2021-01-30 02:48

    While not a complete answer, I think you can get what you need from the documentation, which is quite extensive. I believe that vagrant up is merely a convenient means to setting up a Vagrant "box". There are a number of requirements for a box to be Vagrant compliant. They are described here...

    Documentation: Vagrant - Base Boxes

    The bare bones needed for a box are as follows...

    • VirtualBox Guest Additions for shared folders, port forwarding, etc.
    • SSH with key-based auth support for the vagrant user
    • Ruby & RubyGems to install Chef and Puppet
    • Chef and Puppet for provisioning support

    Once a box is compliant with these requirements, it should simply be a matter of using the vagrant package command to create a portable installation...

    More documentation: Vagrant - Boxes

    So, while I don't have a complete answer, having never done it this way, I think it's possible to get your installation into a state that will allow you to package and distribute it.

提交回复
热议问题