<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>vagrant Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/vagrant/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 02 Jul 2020 01:10:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install and configure Vagrant in Windows 10</title>
		<link>https://www.osradar.com/how-to-install-and-configure-vagrant-in-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-and-configure-vagrant-in-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Thu, 02 Jul 2020 19:07:00 +0000</pubDate>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[box]]></category>
		<category><![CDATA[install vagrant windows 10]]></category>
		<category><![CDATA[vagrant]]></category>
		<category><![CDATA[virtualbox]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=21427</guid>

					<description><![CDATA[<p>Hello! Vagrant is a free, multi-platform command-line tool, which makes it easy to create reproducible and shareable development environments. Additionally, it creates small configuration files that can be moved between environments. Also, these files are called Vagrantfiles and can be shared between developers to replicate already created virtual machines on their computers. As you can [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-vagrant-in-windows-10/">How to install and configure Vagrant in Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello! Vagrant is a free, multi-platform command-line tool, which makes it easy to create reproducible and shareable development environments. Additionally, it creates small configuration files that can be moved between environments. Also, these files are called <strong>Vagrantfiles </strong>and can be shared between developers to replicate already created virtual machines on their computers. As you can see, the use of Vagrant is useful in development teams assembled by several people. It allows you to verify that all members are working with the same development environment. Therefore, it is an excellent alternative for solving software compatibility problems with operating systems. On the other hand, it allows the projects to be accompanied by their already configured environment since the configuration files are plain text files. Consequently, they can be versioned on platforms like Git. Let&#8217;s see in this post, how to install and configure Vagrant in Windows 10.</p>



<h2>Prerequisites</h2>



<ul><li>Vagrant requires virtualization software. It can be <a href="https://www.virtualbox.org/" target="_blank" rel="noreferrer noopener">VirtualBox</a> or <a href="https://www.osradar.com/how-to-install-and-use-vmware-on-windows-10/" target="_blank" rel="noreferrer noopener">VMware</a>. In this case, we will use the default option which is VirtualBox. To find out how to use it, take a look at our <a rel="noreferrer noopener" href="https://www.osradar.com/how-to-run-virtualbox-on-windows-10/" target="_blank">tutorial</a>.</li><li>An SSH client for Windows 10. I recommend free, portable and lightweight <a href="http://An SSH client for Windows 10. I recommend free, portable and lightweight Cmder" target="_blank" rel="noreferrer noopener">Cmder</a></li></ul>



<h2>Downloading and Installing Vagrant</h2>



<p>The installer can be downloaded from this <a rel="noreferrer noopener" href="https://www.vagrantup.com/downloads" target="_blank">link.</a> Installation is as simple as any Windows app. Indeed, just follow the steps of the wizard and that&#8217;s it!</p>



<figure class="wp-block-gallery columns-3 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img loading="lazy" width="772" height="600" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg.png" alt="" data-id="21429" data-full-url="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg.png" data-link="https://www.osradar.com/?attachment_id=21429" class="wp-image-21429" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg.png 772w, https://www.osradar.com/wp-content/uploads/2020/07/vg-300x233.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg-768x597.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg-696x541.png 696w" sizes="(max-width: 772px) 100vw, 772px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="772" height="600" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg2.png" alt="" data-id="21430" data-full-url="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg2.png" data-link="https://www.osradar.com/?attachment_id=21430" class="wp-image-21430" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg2.png 772w, https://www.osradar.com/wp-content/uploads/2020/07/vg2-300x233.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg2-768x597.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg2-696x541.png 696w" sizes="(max-width: 772px) 100vw, 772px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="772" height="600" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg3.png" alt="" data-id="21431" data-full-url="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg3.png" data-link="https://www.osradar.com/?attachment_id=21431" class="wp-image-21431" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg3.png 772w, https://www.osradar.com/wp-content/uploads/2020/07/vg3-300x233.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg3-768x597.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg3-696x541.png 696w" sizes="(max-width: 772px) 100vw, 772px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="772" height="600" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg4.png" alt="" data-id="21432" data-full-url="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg4.png" data-link="https://www.osradar.com/?attachment_id=21432" class="wp-image-21432" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg4.png 772w, https://www.osradar.com/wp-content/uploads/2020/07/vg4-300x233.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg4-768x597.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg4-696x541.png 696w" sizes="(max-width: 772px) 100vw, 772px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="772" height="600" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg5.png" alt="" data-id="21433" data-full-url="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg5.png" data-link="https://www.osradar.com/?attachment_id=21433" class="wp-image-21433" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg5.png 772w, https://www.osradar.com/wp-content/uploads/2020/07/vg5-300x233.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg5-768x597.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg5-696x541.png 696w" sizes="(max-width: 772px) 100vw, 772px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="772" height="600" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg6.png" alt="" data-id="21434" data-full-url="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg6.png" data-link="https://www.osradar.com/?attachment_id=21434" class="wp-image-21434" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg6.png 772w, https://www.osradar.com/wp-content/uploads/2020/07/vg6-300x233.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg6-768x597.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg6-696x541.png 696w" sizes="(max-width: 772px) 100vw, 772px" /></figure></li></ul><figcaption class="blocks-gallery-caption">Vagrant 2.2.9 Installation Process</figcaption></figure>



<p>Once the installation process is complete, you can verify it by running the following command into a Command Prompt:</p>



<pre class="wp-block-preformatted">vagrant</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="544" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg7-1024x544.png" alt="" class="wp-image-21435" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg7-1024x544.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/vg7-300x159.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg7-768x408.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg7-1536x816.png 1536w, https://www.osradar.com/wp-content/uploads/2020/07/vg7-696x370.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/vg7-1068x567.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/vg7.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>If the console shows the available commands, then the installation is correct. If not, Vagrant was not installed or VirtualBox is not present.</p>



<h2>Downloading the box.</h2>



<p>The boxes are the virtualized environments corresponding to an operating system or software. Well, in this case we&#8217;ll use <a rel="noreferrer noopener" href="https://app.vagrantup.com/ubuntu/boxes/xenial64" target="_blank">Ubuntu 16.04 Xenial</a>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="544" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg21-1024x544.png" alt="" class="wp-image-21436" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg21-1024x544.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/vg21-300x159.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg21-768x408.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg21-1536x816.png 1536w, https://www.osradar.com/wp-content/uploads/2020/07/vg21-696x370.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/vg21-1068x567.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/vg21.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>As the image shows, to download the box you just have to copy the commands in a command line. But first, you must create a folder where the settings of the virtual machine will be saved. With this intention use the command:</p>



<pre class="wp-block-preformatted">mkdir</pre>



<p>Now navigate to the newly created directory, using the command:</p>



<pre class="wp-block-preformatted">cd</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="108" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg10-1024x108.png" alt="" class="wp-image-21437" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg10-1024x108.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/vg10-300x32.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg10-768x81.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg10-1536x162.png 1536w, https://www.osradar.com/wp-content/uploads/2020/07/vg10-696x73.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/vg10-1068x112.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/vg10.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Please note that these pre-configurations can be done from CMD. However, to connect the machine you have to use cmder.</p>



<h2>Setting up Vagrant</h2>



<p>It is then time to create the Vagrant file for the box. With this in mind, execute the following command:</p>



<pre class="wp-block-preformatted"><code>vagrant init ubuntu/xenial64</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="93" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg16-1024x93.png" alt="" class="wp-image-21438" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg16-1024x93.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/vg16-300x27.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg16-768x70.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg16-1536x140.png 1536w, https://www.osradar.com/wp-content/uploads/2020/07/vg16-696x63.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/vg16-1068x97.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/vg16.png 1913w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now it&#8217;s time to create the virtual machine. Please note that this process takes a while, as you must download it and then install the box. Please execute the following command:</p>



<pre class="wp-block-preformatted">vagrant up</pre>



<figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img loading="lazy" width="1024" height="544" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg17-1024x544.png" alt="" data-id="21439" class="wp-image-21439" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg17-1024x544.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/vg17-300x159.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg17-768x408.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg17-1536x816.png 1536w, https://www.osradar.com/wp-content/uploads/2020/07/vg17-696x370.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/vg17-1068x567.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/vg17.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="1024" height="315" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg18-1024x315.png" alt="" data-id="21440" data-full-url="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg18.png" data-link="https://www.osradar.com/?attachment_id=21440" class="wp-image-21440" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg18-1024x315.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/vg18-300x92.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg18-768x236.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg18-1536x472.png 1536w, https://www.osradar.com/wp-content/uploads/2020/07/vg18-696x214.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/vg18-1068x328.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/vg18.png 1681w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></li></ul></figure>



<p>Now, we have a clean and ready to work Linux environment. To access it, please run this command.</p>



<pre class="wp-block-preformatted">vagrant ssh</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="214" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg19-1024x214.png" alt="" class="wp-image-21441" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg19-1024x214.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/vg19-300x63.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg19-768x160.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg19-1536x321.png 1536w, https://www.osradar.com/wp-content/uploads/2020/07/vg19-696x145.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/vg19-1068x223.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/vg19.png 1915w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>You can check the operation of the virtual machine by opening VirtualBox. The machine will be running with the generic name assigned. Likewise, the configuration assigned to the box is shown.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg22-1024x576.png" alt="Vagrant Box running on VirtualBox" class="wp-image-21453" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg22-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/vg22-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg22-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg22-1536x864.png 1536w, https://www.osradar.com/wp-content/uploads/2020/07/vg22-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/vg22-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/vg22.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Vagrant Box running on VirtualBox</figcaption></figure>



<p>If you want to disconnect from the machine, please execute:</p>



<pre class="wp-block-preformatted">exit</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="75" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg20a-1024x75.png" alt="" class="wp-image-21442" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg20a-1024x75.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/vg20a-300x22.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg20a-768x57.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg20a-1536x113.png 1536w, https://www.osradar.com/wp-content/uploads/2020/07/vg20a-696x51.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/vg20a-1068x79.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/vg20a.png 1820w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>However, the machine remains on. Therefore, to turn it off it is necessary to execute this command:</p>



<pre class="wp-block-preformatted">vagrant halt</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="111" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/07/vg20-1024x111.png" alt="" class="wp-image-21443" srcset="https://www.osradar.com/wp-content/uploads/2020/07/vg20-1024x111.png 1024w, https://www.osradar.com/wp-content/uploads/2020/07/vg20-300x32.png 300w, https://www.osradar.com/wp-content/uploads/2020/07/vg20-768x83.png 768w, https://www.osradar.com/wp-content/uploads/2020/07/vg20-1536x166.png 1536w, https://www.osradar.com/wp-content/uploads/2020/07/vg20-696x75.png 696w, https://www.osradar.com/wp-content/uploads/2020/07/vg20-1068x115.png 1068w, https://www.osradar.com/wp-content/uploads/2020/07/vg20.png 1917w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Finally, we have seen how to install and configure Vagrant in Windows 10. Please note that to use the box again, just repeat the steps above. First, turn the machine on with <em>vagrant up</em> and then connect with <em>vagrant ssh.</em> All right, we&#8217;re done for the moment. If you have any questions, please let us know in the question section. I also invite you to join our group on <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">Telegram.</a> Bye!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-vagrant-in-windows-10/">How to install and configure Vagrant in Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-and-configure-vagrant-in-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
