Fix guest loading w/ VBoxManage
This commit is contained in:
parent
9cb0578c64
commit
8360bcf61b
|
@ -57,7 +57,7 @@ module Vagrant
|
||||||
# Returns the guest for this VM, loading the distro of the system if
|
# Returns the guest for this VM, loading the distro of the system if
|
||||||
# we can.
|
# we can.
|
||||||
def guest
|
def guest
|
||||||
if !@loaded_guest_distro && created? && vm.running?
|
if !@loaded_guest_distro && state == :running
|
||||||
# Load the guest distro for the first time
|
# Load the guest distro for the first time
|
||||||
result = @guest.distro_dispatch
|
result = @guest.distro_dispatch
|
||||||
load_guest!(result)
|
load_guest!(result)
|
||||||
|
|
Loading…
Reference in New Issue