11:30:12 #startmeeting Don't destroy your machine with development sacrifice the vagrant box instead 11:30:12 Meeting started Wed Aug 3 11:30:12 2016 UTC. The chair is bkm. Information about MeetBot at http://wiki.debian.org/MeetBot. 11:30:12 Useful Commands: #action #agreed #halp #info #idea #link #topic. 11:30:12 The meeting name has been set to 'don't_destroy_your_machine_with_development_sacrifice_the_vagrant_box_instead' 11:30:26 Speaker: Dusty Mabe 11:32:32 Introduction: Software engineer with redhat, before that was in Fedora cloud working group 11:33:14 #topic what is vagrant? 11:34:05 Sharing environments, folders, OS level development, ancible, multiple machine vagrant 11:34:22 Ruby tool for bringing up virtual machines 11:34:35 Maintained by Hashicorp 11:34:43 developed by Mitchel Hashimoto 11:34:57 Runs on Windows/Mac/Linux 11:35:27 Most users use command line interface 11:35:35 Vagrant up: Start virtual machine 11:35:47 Vagrant ssh: connect to machine 11:36:25 vagrant destroy: take down virtual machine 11:36:52 #topic sharing your environment 11:37:27 use vagrantfile - describes base disk image, Fedora, Debian, SUSE etc 11:37:39 #meetingname flock2016 11:37:39 The meeting name has been set to 'flock2016' 11:37:50 also defines provisioning information, ansible playbook possible 11:38:09 Many examples if do not know Ruby 11:38:33 Example slide showing how to share environment 11:39:07 Live Demo 11:39:47 Example vagrant file to start a server using Fedora 24 11:41:41 Question what is the difference between provision and up 11:41:59 Up includes provision, but if up doesn't quite work can reprovision 11:43:44 What if you have your own script for provisioning virtual machines? 11:44:15 Custom script is hard to share with other people. 11:45:07 Other projects use vagrant files: Eclipse Che, OpenShift, Gluster, Atomic Developer Bundle 11:46:16 How move files into and out of the virtual machine? 11:46:50 Can use rsync, NFS, Samba, VirtualBox Shared Folder 11:47:02 Made it easier to use SSHS 11:47:14 rsync - not true sharing 11:47:24 NFS plugin does not work on Windows 11:47:45 Virtual box shared folder - only if using virtualbox hypervisor 11:47:55 Samba - only Windows 11:48:21 SSHFS - works on Windows/Mac/Linux 11:48:37 Picked it up, and have done a re-write 11:48:39 bkm, samba only windows, jajajaja 11:48:56 Can do reverse mounts 11:49:27 DEMO 11:49:44 check machine is running : vagrant status 11:51:17 use vagrant sshfs - install client, then mount files 11:51:34 then vagrant provision since changed script to allow files to be used 11:52:03 showed how to move index.html file to virtual machine and displayed on webpage 11:52:37 Made change to index.html on host and it shows up on guest 11:53:02 #topic OS Level testing 11:54:27 Use virtual machine to host OS from bleeding edge software 11:54:42 Allows for fast, repeatable testing 11:55:53 Example: Docker bug testing, check if it shows up in other distributions 11:56:42 DEMO 11:56:52 INstall fedora 24 and test docker 11:57:30 second demo, install debian jessie and test docker 11:58:51 connect to virtual machines using vagrant ssh 11:59:29 Then change to root user in both, and run a fedora docker image for bash shell 12:00:18 Demo done 12:00:28 #topic How do I get it? 12:01:34 in Fedora: sudo dnf install vagrant-libvert 12:01:53 sudo systemctl start libvertd virtlogd 12:02:22 see slides for rest of commands 12:02:40 #topic Fedora on Vagrant on ???? 12:03:00 Fedora cloud working group produces the images 12:03:48 Also have vagrant box for atomic host 12:04:10 About 400-700 Mb for images 12:04:40 Want to support hyperv in the future 12:05:04 If have Mac/Windows can still have Fedora! 12:05:44 Can use vagrant and ansible 12:05:57 This is more reproducible than shell scripts 12:06:22 #topic multimachine vagrant 12:06:37 Example for multinode environments 12:06:44 Openshift cluster 12:06:59 Hello world type example 12:07:15 #topic questions 12:07:36 Can you use with RHEL images? Yes! 12:08:13 Plugin in epel, but not in RHEL or CentOS 12:08:35 contact dusty@dustymabe.com 12:09:03 There is a 'halt option' to pause the machine but not destroy it. 12:10:49 How is performance of sshfs? Not really measured, but has been fine for applications considered. 12:11:06 Can also tweak sshfs options to try improve performance 12:14:43 #topic Workshop to try get things installed and running. 12:15:05 #endmeeting