1
Here where I work, we are facing many problems due to differences in software versions and development environment. Vagrant seems like a great solution in these cases. The problem is that we cannot simply create an empty box and manually configure the entire OS, libraries, software, etc. Can anyone tell me if there is a way to create a kind of server image and use as a box in Vagrant?
The process varies from OS to OS, but seeing how it’s done for one might help to do for another. Here are instructions for creating a Suse box. Seeing what steps you need to take (installing the OS on a virtual machine, installing X and Y packages, etc.) and adapting them to your particular OS you should be able to create a base box. P.S. If you don’t want to create a base box, but from an existing box and only configure packages, maybe the command
repackage
help you– mgibsonbr
What service are you using? AWS? DO?
– Rodrigo Rigotti
Thanks man. I will read here the link and search more.
– Pedro Vinícius
@Pedrovinícius I would like to give you more information, but I’m very new to Vagrant. The point I wanted to make is that if you have an image of the server that can be installed on a virtual machine, you can do this and then finish setting up the missing one (i.e. install Ruby, Puppet, Chef, create a user
vagrant
, allowsudo
without a password, etc.) to turn it into a box. At least, that’s how I understood it.– mgibsonbr
@Rodrigorigotti, we use DO here...
– Pedro Vinícius
See if this Digital Ocean article helps you: https://www.digitalocean.com/community/tutorials/how-to-use-digitalocean-as-your-provider-vagrant-on-an-ubuntu-12-10-vps
– Rodrigo Rigotti