How to create a box from a server?

Asked

Viewed 206 times

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?

  • 1

    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

  • What service are you using? AWS? DO?

  • Thanks man. I will read here the link and search more.

  • @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, allow sudo without a password, etc.) to turn it into a box. At least, that’s how I understood it.

  • @Rodrigorigotti, we use DO here...

  • 1

    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

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.