lib/vagrant/driver/virtualbox_4_1.rb in vagrantup-0.9.99.1 vs lib/vagrant/driver/virtualbox_4_1.rb in vagrantup-0.9.99.2
- old
+ new
@@ -438,9 +438,15 @@
def suspend
execute("controlvm", @uuid, "savestate")
end
+ def verify!
+ # This command sometimes fails if kernel drivers aren't properly loaded
+ # so we just run the command and verify that it succeeded.
+ execute("list", "hostonlyifs")
+ end
+
def verify_image(path)
r = raw("import", path.to_s, "--dry-run")
return r.exit_code == 0
end