Another nice thing with this setup is that it always downloads a fresh copy of ODL, so you’re running with the latest code each time. By default, Trellis tries to default to NFS because it offers the best performance for macOS users. I think it is a great way to be able to easily distribute and replicate VM configs. Vagrant supports different types of mount options for synced folders like NFS, SMB, and Virtualboxs native option. setting up a MAMP (Mac, Apache, MySQL, PHP), WAMP (Windows, Apache, MySQL, PHP). I left out mininet, but might add it to a separate version. WordPress as an Application Framework Brian Messenlehner, Jason Coleman. To get started, download and install Vagrant and VirtualBox for Windows, Mac OS, or Linux. Vagrant is a great piece of software that create reproducible and portable virtual machines, which you can use as local web server environments. If anyone has any suggestions on things to add the the Vagrantfile, please feel free to modify and push to the repo. Check out the vagrant docs for more details. Another cool thing is that the directory you started the vm from is shared with the VM, so you can copy files back and forth. You can also ssh to the VM by issuing a vagrant ssh. To access the OSGI console you can telnet localhost 8090. I’ve also forwarded ports 66 for OpenFlow and the OSGI console respectively. The whole process will take a few minutes, but when its all done you should be able to browse to the controller by going to since I’ve port forwarded port 8080 to the VM from localhost. ![]() This will download create a VM with Ubuntu, install all the packages needed, and then finally startup the OpenDaylight controller. I’ve posted my OpenDaylight Vagrant file on github: Once you’ve got them installed, you can copy someone’s Vagrant file, and run vagrant up in the directory to bring up the VM with the configuration specified in the file. The seconds-long process can happen on both Mac and Windows computers. To get started you download and install Vagrant for your OS (Mac, Win, Linux are all supported): Īnd the same goes for VirtualBox if you don’t already have it: Want to create a local WordPress development environment. By default it works with VirtualBox, but can be configured to work with other virtualization technologies as well. For those unfamiliar, Vagrant is a tool to make reproducible VMs. ![]() Once the Vagrantfile is open, change the config.vm.box string from base to ubuntu/trusty64. Open the Vagrantfile with the command: sudo vi vagrantfile. ![]() Next, you need to configure the Vagrantfile for the virtual box it will serve. As I so often do, I took some inspiration from one of Brent’s posts on setting up OpenDaylight:Īnd decided to try it out with Vagrant. This downloads the box and stores it locally.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |