Matt Fiddles

Life's so vast, there's just so much to do...

User Tools

Site Tools


Sidebar

"I find your lack of faith disturbing."

- Darth Vader



Where will you go today?

"Take time to deliberate, but when the time for action has arrived, stop thinking and go in."
-- Napoleon Bonaparte
computers:virtualization:vagrant

Vagrant

Vagrant is a method for easily setting up development enviroments that match a server set. Thus one can easily setup and work on a virtual machine that matches the real server in software and configuration.

Enable Symlinks on Shared Folders

VBoxInternal2/SharedFoldersEnableSymlinksCreate/:SHARE_NAME 1

http://blog.yrezgui.com/post/55953851157/enable-symlinks-on-shared-folders

Info

Speed ups:

Use NFS to make it faster

Switch over to libvirt

Solve NAT problem

vboxmanage modifyvm "Your VM Name" --natdnshostresolver1 on

TODO: run apache as a regular user.

http://jeremykendall.net/2013/08/09/vagrant-synced-folders-permissions/#comment-1118614212

One thing I disliked about it was using puppet. Puppet is great for configuring, however it really slowed things down when installing and updating software, as it kept on refreshing it's cache of software. So I wrote a bash script to setup the server, which was much faster.

How to prevent vagrant halt on production machines

Vagrant.configure("2") do |config|
    if ARGV[0] == 'halt'
      if ARGV[1] != 'dev'
        puts "Sorry! No way I am letting you do that!"
        ARGV.clear
      end
    end
end
computers/virtualization/vagrant.txt · Last modified: Apr 5, 2015 (4 years ago) by Matt Bagley