diff --git a/plugins/guests/smartos/plugin.rb b/plugins/guests/smartos/plugin.rb index 6f5365af2..dcdd6f7b8 100644 --- a/plugins/guests/smartos/plugin.rb +++ b/plugins/guests/smartos/plugin.rb @@ -11,7 +11,7 @@ module VagrantPlugins Config end - guest(:smartos) do + guest(:smartos, :solaris) do require_relative "guest" Guest end diff --git a/plugins/guests/solaris11/guest.rb b/plugins/guests/solaris11/guest.rb index f7c46ee57..7d1794176 100644 --- a/plugins/guests/solaris11/guest.rb +++ b/plugins/guests/solaris11/guest.rb @@ -8,7 +8,7 @@ module VagrantPlugins module GuestSolaris11 class Guest < Vagrant.plugin("2", :guest) def detect?(machine) - machine.communicate.test("uname -sr | grep 'SunOS.*5\\.11'") + machine.communicate.test("grep 'Solaris 11' /etc/release") end end end