diff --git a/Vagrantfile b/Vagrantfile
index c60887c2c548d0852978d1253fc6ec4e8ab9a38e..0d507674e3a4ac468a739da4b57e2388a922358b 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -83,6 +83,13 @@ $playbook ||= "cluster.yml"
 
 host_vars = {}
 
+# throw error if os is not supported
+if ! SUPPORTED_OS.key?($os)
+  puts "Unsupported OS: #{$os}"
+  puts "Supported OS are: #{SUPPORTED_OS.keys.join(', ')}"
+  exit 1
+end
+
 $box = SUPPORTED_OS[$os][:box]
 # if $inventory is not set, try to use example
 $inventory = "inventory/sample" if ! $inventory