{"id":6463,"date":"2017-07-18T01:59:41","date_gmt":"2017-07-18T05:59:41","guid":{"rendered":"https:\/\/qxf2.com\/blog\/?p=6463"},"modified":"2018-04-02T10:31:19","modified_gmt":"2018-04-02T14:31:19","slug":"docker-installation-vt-error","status":"publish","type":"post","link":"https:\/\/qxf2.com\/blog\/docker-installation-vt-error\/","title":{"rendered":"Docker and Windows: VT-X\/AMD-V error"},"content":{"rendered":"<p>I decided to learn <a href=\"http:\/\/www.docker.com\/\">Docker<\/a> and use it with our automated tests. While installing Docker on my Windows 7 machine, I got an error during machine creation. It took me a while to Google around for the solution. So this post summarizes the solution for the &#8220;VT-X\/AMD-V&#8221; issue while installing Docker on Windows.<\/p>\n<hr>\n<h3>VT-X\/AMD-V error<\/h3>\n<p>As the first step towards learning Docker downloaded the Docker toolbox for Windows. I followed the instructions and installed the Docker in my local machine(Windows 7). After I installed Docker, I wanted to verify if it was working. So I ran the Docker machine and get the below error which I have attached here.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-5596 size-full\" src=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2017\/07\/Docker_error1.png \" alt=\"\" ><\/p>\n<p>You can clearly see the error message saying that <\/p>\n<div style=\"background-color: #ffff99;\">\nError in driver during machine creation: This computer does not have any VT-X\/AMD-V enabled.Enabling it in the BIOS is mandatory.\n<\/div>\n<p>I asked my colleagues have they faced any kind of issues while installing the Docker. But none of them had faced this issue probably because they were using Windows 10 or perhaps some other hardware. So I searched on the Internet and I have come to know that Docker works only if the Virtualization is enabled.<\/p>\n<p>This error depends on your machine because for some machines the BIOS setup virtualization is enabled by default. If the BIOS VT-X is enabled by default you do need to worry about it. <\/p>\n<hr>\n<h3>Enabling the VT-X\/AMD-V setting in the BIOS<\/h3>\n<p>If BIOS VT-X is not enabled, don&#8217;t worry much. It&#8217;s an easy process to enable the virtualization in BIOS setup and run the container.<\/p>\n<p>Steps to enable the virtualization:<br \/>\n    1.Restart the system<br \/>\n    2.Press &#8216;Enter&#8217; before Window starts<br \/>\n    3.Press F1 to enter the BIOS setup utility<br \/>\n    4.Go to the Security tab<br \/>\n    5.Select virtualization which is in security tab<br \/>\n    6.Enable the virtualization<br \/>\n    7.Press F10 to Save and Exit<\/p>\n<p>This process differs slightly on each machine. If your BIOS menu is different, Google for your OS and hardware.<\/p>\n<p>Once I enabled the VT in BIOS, I ran the Docker container and it ran. To verify your installation just run the hello-world program in the Docker.<\/p>\n<pre lang=\"python\">\r\n    docker run hello-world\r\n<\/pre>\n<p>If this problem has been solved, you will get a success message similar to the attached image<\/p>\n<p><img decoding=\"async\" class=\"alligncenter wp-image-5596 size-full\" src=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2017\/07\/docker_success.png\" alt=\"\"<\/img><\/p>\n<p><strong>If you are a startup finding it hard to hire technical QA engineers, learn more <a href=\"https:\/\/qxf2.com\/blog\/about-qxf2\/\">about Qxf2 Services<\/a>.<\/strong><\/p>\n<hr>\n<script>(function() {\n\twindow.mc4wp = window.mc4wp || {\n\t\tlisteners: [],\n\t\tforms: {\n\t\t\ton: function(evt, cb) {\n\t\t\t\twindow.mc4wp.listeners.push(\n\t\t\t\t\t{\n\t\t\t\t\t\tevent   : evt,\n\t\t\t\t\t\tcallback: cb\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n})();\n<\/script><!-- Mailchimp for WordPress v4.10.1 - https:\/\/wordpress.org\/plugins\/mailchimp-for-wp\/ --><form id=\"mc4wp-form-1\" class=\"mc4wp-form mc4wp-form-6165 mc4wp-form-theme mc4wp-form-theme-blue\" method=\"post\" data-id=\"6165\" data-name=\"Newsletter\" ><div class=\"mc4wp-form-fields\"><div style=\"border:3px; border-style:dashed;border-color:#56d1e1;padding:1.2em;\">\r\n  <h1 style=\"text-align: center; padding-top: 20px; padding-bottom: 20px; color: #592b1b;\">Subscribe to our weekly Newsletter<\/h1>\r\n  <input style=\"margin: auto;\" type=\"email\" name=\"EMAIL\" placeholder=\"Your email address\" required \/>\r\n  <br>\r\n  <p style=\"text-align: center;\">\r\n    <input style=\"background-color: #890c06 !important; border-color: #890c06;\" type=\"submit\" value=\"Sign up\" \/>\r\n    \r\n  <\/p>\r\n  <p style=\"text-align: center;\">\r\n    <a href=\"http:\/\/mailchi.mp\/c9c7b81ddf13\/the-informed-testers-newsletter-20-oct-2017\"><small>View a sample<\/small><\/a>\r\n  <\/p>\r\n  <br>\r\n<\/div><\/div><label style=\"display: none !important;\">Leave this field empty if you're human: <input type=\"text\" name=\"_mc4wp_honeypot\" value=\"\" tabindex=\"-1\" autocomplete=\"off\" \/><\/label><input type=\"hidden\" name=\"_mc4wp_timestamp\" value=\"1776088532\" \/><input type=\"hidden\" name=\"_mc4wp_form_id\" value=\"6165\" \/><input type=\"hidden\" name=\"_mc4wp_form_element_id\" value=\"mc4wp-form-1\" \/><div class=\"mc4wp-response\"><\/div><\/form><!-- \/ Mailchimp for WordPress Plugin -->\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>I decided to learn Docker and use it with our automated tests. While installing Docker on my Windows 7 machine, I got an error during machine creation. It took me a while to Google around for the solution. So this post summarizes the solution for the &#8220;VT-X\/AMD-V&#8221; issue while installing Docker on Windows. VT-X\/AMD-V error As the first step towards [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140],"tags":[],"class_list":["post-6463","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts\/6463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/comments?post=6463"}],"version-history":[{"count":15,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts\/6463\/revisions"}],"predecessor-version":[{"id":14829,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts\/6463\/revisions\/14829"}],"wp:attachment":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/media?parent=6463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/categories?post=6463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/tags?post=6463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}