Vagrant #5 - create own base box to duplicate easy

Опубликовано: 27 Март 2026
на канале: itvraag
3,009
43

Creating your own box is handy if you’ve certain requirements for multiple VM’s. That way you can set up a base from which you’ll continue to develop other machines.
In this example I’ve a Ubuntu base image with oh-my-zsh, python and git installed, but also a few tweaks like bash aliases and some themes for syntax highlighting. Now i’ll create a box from this VM in order to have all my future ubuntu VM’s be preinstalled with those options. But you can set up your box as you desire.
#terminal #vagrant #virtualmachine
https://itvraag.nl

Used commands:
vagrant package
config.vm.box_url = "file://~/Documents/../package.box"
config.vm.network :private_network, ip: "192.168.56.10"