[DRE-commits] [vagrant-libvirt] 63/67: Create and activate networks if needed when starting VM. Closes #116

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:56:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag 0.0.14
in repository vagrant-libvirt.

commit 6e8c43e300964a0b1b3c87c83a7d2213c035a4a5
Author: Brian Pitts <brian at polibyte.com>
Date:   Sat Jan 18 13:03:34 2014 -0600

    Create and activate networks if needed when starting VM. Closes #116
---
 lib/vagrant-libvirt/action.rb | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/lib/vagrant-libvirt/action.rb b/lib/vagrant-libvirt/action.rb
index 1f3547f..164476b 100644
--- a/lib/vagrant-libvirt/action.rb
+++ b/lib/vagrant-libvirt/action.rb
@@ -57,14 +57,18 @@ module VagrantPlugins
             next if env[:result]
 
             b2.use Call, IsSuspended do |env2, b3|
+              # if vm is suspended resume it then exit
               if env2[:result]
                 b3.use ResumeDomain
                 next
               end
 
-              # VM is not running or suspended. Start it.. Machine should gain
-              # IP address when comming up, so wait for dhcp lease and store IP
-              # into machines data_dir.
+              # VM is not running or suspended.
+
+              # Ensure networks are created and active
+              b3.use CreateNetworks
+
+              # Handle shared folders
               if Vagrant::VERSION < "1.4.0"
                 b3.use NFS
               else
@@ -74,7 +78,11 @@ module VagrantPlugins
               b3.use PrepareNFSSettings
               b3.use ShareFolders
 
+              # Start it..
               b3.use StartDomain
+
+              # Machine should gain IP address when comming up,
+              # so wait for dhcp lease and store IP into machines data_dir.
               b3.use WaitTillUp
             end
           end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git



More information about the Pkg-ruby-extras-commits mailing list