```ruby
module VagrantPlugins
  module ProviderKvm
    module Action
      class Boot
        def initialize(app, env)
          @app = app
        end

        def call(env)
          @env = env

          if @env[:machine].provider_config.gui
            env[:machine].provider.driver.set_gui
          end

          # Start up the VM
          env[:ui].info I18n.t("vagrant.actions.vm.boot.booting")
          env[:machine].provider.driver.start

          @app.call(env)
        end

      end
    end
  end
end
```

Allow resuming saved machine state when gui is enabled
user
```ruby
module VagrantPlugins
  module ProviderKvm
    module Action
      class Boot
        def initialize(app, env)
          @app = app
        end

        def call(env)
          @env = env

          if @env[:machine].provider_config.gui and @env[:machine_action] != :resume
            env[:machine].provider.driver.set_gui
          end

          # Start up the VM
          env[:ui].info I18n.t("vagrant.actions.vm.boot.booting")
          env[:machine].provider.driver.start

          @app.call(env)
        end

      end
    end
  end
end
```
assistant