{"id":964,"date":"2019-12-29T19:04:21","date_gmt":"2019-12-29T19:04:21","guid":{"rendered":"http:\/\/buklijas.info\/blog\/?p=964"},"modified":"2019-12-29T19:04:24","modified_gmt":"2019-12-29T19:04:24","slug":"installing-vagrant-on-windows-10","status":"publish","type":"post","link":"http:\/\/buklijas.info\/blog\/2019\/12\/29\/installing-vagrant-on-windows-10\/","title":{"rendered":"Installing Vagrant on Windows 10"},"content":{"rendered":"

Published on:<\/strong> 29.12.2019<\/p>\n

I am a fan of CLI packet managers (because they save me time).
\nOn Windows Chocolatey<\/a>
\nis the only option, so I tried to install
Vagrant<\/a> with VirtualBox<\/a> as hypervisor with it.<\/p>\n

How difficult can it be?
\nMore then I expected.<\/p>\n

Instalment of Vagrant and VirtualBox look easy:<\/p>\n

choco install vagrant\nchoco install virtualbox\n<\/code><\/pre>\n

Init and up:<\/p>\n

vagrant init bento\/centos-7.4\nvangarant up\n<\/code><\/pre>\n

Have we have first problems:<\/p>\n

C:\\vagrant up\nBringing machine 'default' up with 'hyperv' provider...\ndefault: Verifying Hyper-V is enabled...\nThe Hyper-V cmdlets for PowerShell are not available! Vagrant\nrequires these to control Hyper-V. Please enable them in the\n\"Windows Features\" control panel and try again.\n<\/code><\/pre>\n

After googling<\/a>, one possible solution is to set the provider explicitly, not a big problem, altho I like when tech just works.<\/p>\n

Try again:<\/p>\n

C:\\vagrant up --provider virtualbox\n<\/code><\/pre>\n

Then next again the problem:<\/p>\n

The provider 'virtualbox' that was requested to back the machine\n'default' is reporting that it isn't usable on this system. The\nreason is shown below:\n\nVagrant has detected that you have a version of VirtualBox installed\nthat is not supported by this version of Vagrant. Please install one of\nthe supported versions listed below to use Vagrant:\n\n4.0, 4.1, 4.2, 4.3, 5.0, 5.1, 5.2, 6.0\n\nA Vagrant update may also be available that adds support for the version\nyou specified. Please check www.vagrantup.com\/downloads.html to download\nthe latest version.\n<\/code><\/pre>\n

Try my luck with older version 6.0 of VirtualBox:<\/p>\n

choco uninstall virtualbox\nchoco install virtualbox --version 6.0\n<\/code><\/pre>\n

Let try again:<\/p>\n

C:\\vagrant up\n<\/code><\/pre>\n

Finally working.<\/p>\n

Bringing machine 'default' up with 'virtualbox' provider...\n<\/code><\/pre>\n

As you can see now just vagrant up is working without the need to set provider.<\/p>\n","protected":false},"excerpt":{"rendered":"

Installing Vagrant on Windows 10.
\nHow difficult can it be?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[27],"tags":[67,68,66],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"yoast_head":"\nInstalling Vagrant on Windows 10 - Sasa Buklijas<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/buklijas.info\/blog\/2019\/12\/29\/installing-vagrant-on-windows-10\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing Vagrant on Windows 10 - Sasa Buklijas\" \/>\n<meta property=\"og:description\" content=\"Installing Vagrant on Windows 10. How difficult can it be?\" \/>\n<meta property=\"og:url\" content=\"http:\/\/buklijas.info\/blog\/2019\/12\/29\/installing-vagrant-on-windows-10\/\" \/>\n<meta property=\"og:site_name\" content=\"Sasa Buklijas\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-29T19:04:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-12-29T19:04:24+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"Sasa Buklijas\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/buklijas.info\/blog\/#website\",\"url\":\"http:\/\/buklijas.info\/blog\/\",\"name\":\"Sasa Buklijas\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/buklijas.info\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/buklijas.info\/blog\/2019\/12\/29\/installing-vagrant-on-windows-10\/#webpage\",\"url\":\"http:\/\/buklijas.info\/blog\/2019\/12\/29\/installing-vagrant-on-windows-10\/\",\"name\":\"Installing Vagrant on Windows 10 - Sasa Buklijas\",\"isPartOf\":{\"@id\":\"http:\/\/buklijas.info\/blog\/#website\"},\"datePublished\":\"2019-12-29T19:04:21+00:00\",\"dateModified\":\"2019-12-29T19:04:24+00:00\",\"author\":{\"@id\":\"http:\/\/buklijas.info\/blog\/#\/schema\/person\/780025d597f1c5df3cc156eaffc8c561\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/buklijas.info\/blog\/2019\/12\/29\/installing-vagrant-on-windows-10\/\"]}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/buklijas.info\/blog\/#\/schema\/person\/780025d597f1c5df3cc156eaffc8c561\",\"name\":\"Sasa Buklijas\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/buklijas.info\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/9f6f7de5a4882517ca0e4a8ebd607925?s=96&d=mm&r=g\",\"caption\":\"Sasa Buklijas\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5YHGV-fy","_links":{"self":[{"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/posts\/964"}],"collection":[{"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/comments?post=964"}],"version-history":[{"count":16,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/posts\/964\/revisions"}],"predecessor-version":[{"id":980,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/posts\/964\/revisions\/980"}],"wp:attachment":[{"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/media?parent=964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/categories?post=964"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/tags?post=964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}