This project is licensed under a MIT license. You can get the source code of this project on GitHub Ok, it's time to test the new box: $ cd tests Now, you can add the new box to your Vagrant: $ scripts/add-vagrant-box.sh fedora24 1.0 Generate a new json file: $ scripts/generate-json.sh fedora24 1.0 "Fedora 24 base image." Generate a new Vagrantfile file: $ scripts/generate-vagrantfile.sh fedora24 1.0īuild a new vagrant box: $ scripts/build-box.sh fedora24 1.0 You can test the ssh key with: $ ssh -i vagrant.id_rsa -p 2222 power off the virtual machine as it is ready for creating Vagrant boxes. Then, run scripts/copy-ssh-key.sh to add the vagrant ssh public key Vagrant user on your local computer: $ cd $HOME/.ssh Logout from the virtual machine and generate a new ssh key for You also need to enable and start sshd service. Now, install Virtualbox Guest Additions and its dependencies, e.g. For that, you need to login to the virtual machine, then add the following lines to /etc/sudoers When OS installation is completed, add vagrant user to sudoers toĮnable password-less sudo and disable requiretty. Make a user called vagrant as administrator. You can now start the operating system installation, also you need to Virtual machine name, then select Settings -> Network -> Adapter 1 ->Īdvanced -> Port Forwarding -> Plus icon and use the following Then, add a port forwarding rule to the network adapter. Create and setup a new virtual machineįirst, you need to create a new VM in Virtualbox, for this example we call it fedora24. You can find them on my GitHub account, and below there are the instructions to use them. it is a tedious work, so I decided to share my helpers scripts that will make our life easier. Probably, you can find several blogs that explain how to create a Vagrant box from scratch, but honestly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |