{"id":182,"date":"2020-04-07T08:16:00","date_gmt":"2020-04-07T08:16:00","guid":{"rendered":"http:\/\/bogdanburuiana.com\/?p=182"},"modified":"2020-06-14T09:36:14","modified_gmt":"2020-06-14T09:36:14","slug":"live-migration-with-vmotion","status":"publish","type":"post","link":"https:\/\/bogdanburuiana.com\/index.php\/2020\/04\/07\/live-migration-with-vmotion\/","title":{"rendered":"Live migration with vMotion"},"content":{"rendered":"<p>In a previous post I&#8217;ve described how to create <a href=\"http:\/\/bogdanburuiana.com\/index.php\/2020\/06\/01\/nested-esxi-7-in-my-own-lab\/\">a nested ESXi solution<\/a> and the benefits of use it. Now it is time to see it in a new exercise &#8211; migration of a VM using vMotion.<\/p>\n<p><strong>VMware vSphere vMotion is a zero downtime live migration of workloads from one host to another.<\/strong><\/p>\n<p>I&#8217;ve created a new VM called <em>VMToBeMigr&nbsp;<\/em>on 192.168.0.103 ESXi host, which will be migrated to another ESXi host (192.168.0.116).<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"322\" height=\"317\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/001.jpg\" alt=\"\" class=\"wp-image-193\" srcset=\"\/wp-content\/uploads\/2020\/06\/001.jpg 322w, \/wp-content\/uploads\/2020\/06\/001-300x295.jpg 300w\" sizes=\"(max-width: 322px) 100vw, 322px\" \/><\/figure>\n\n\n\n<p>I&#8217;ve turned on the new VM and launched in a remote console. Also, I&#8217;ve opened Task Manager to monitor the Uptime of VM.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"240\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/002-1024x240.jpg\" alt=\"\" class=\"wp-image-194\" srcset=\"\/wp-content\/uploads\/2020\/06\/002-1024x240.jpg 1024w, \/wp-content\/uploads\/2020\/06\/002-300x70.jpg 300w, \/wp-content\/uploads\/2020\/06\/002-768x180.jpg 768w, \/wp-content\/uploads\/2020\/06\/002-1536x360.jpg 1536w, \/wp-content\/uploads\/2020\/06\/002-2048x480.jpg 2048w, \/wp-content\/uploads\/2020\/06\/002-1226x287.jpg 1226w, \/wp-content\/uploads\/2020\/06\/002-928x217.jpg 928w, \/wp-content\/uploads\/2020\/06\/002-480x112.jpg 480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The first step was to exit from Maintenance Mode on the 192.168.0.116 ESXi host. <strong>Right click<\/strong> on the host, go to <strong>Maintenance Mode<\/strong> and press <strong>Exit Maintenance Mode<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"516\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/003.jpg\" alt=\"\" class=\"wp-image-195\" srcset=\"\/wp-content\/uploads\/2020\/06\/003.jpg 797w, \/wp-content\/uploads\/2020\/06\/003-300x194.jpg 300w, \/wp-content\/uploads\/2020\/06\/003-768x497.jpg 768w, \/wp-content\/uploads\/2020\/06\/003-480x311.jpg 480w\" sizes=\"(max-width: 797px) 100vw, 797px\" \/><\/figure>\n\n\n\n<p>Second step was to configure the vMotion network which enables live migration of my running virtual machines from one ESXi host (192.168.0.103) to another ESXi host (192.168.0.116). <\/p>\n\n\n\n<p>This allows for high availability of service for VMs running in the vSphere environment and moving VMs due to hardware maintenance, updates, or other service interruptions at the physical layer. VMs can simply be moved to another host with no interruption.<\/p>\n\n\n\n<p>Go to <strong>Configure<\/strong> tab of ESXi, under <strong>Networking<\/strong> click on the&nbsp;<strong>VMKernel adapters.<\/strong> I&#8217;ve added a new <strong>VMkernel<\/strong>&nbsp;as the connection type (Fig.1), <strong>selected an existing standard switch<\/strong> (Fig.2) &#8211; <em>vSwitch0<\/em> in this case &#8211; named Network label to be <em>vMotionA<\/em>, selected <strong>vMotion service<\/strong> (Fig.3), chosen to obtain automatically the IP address  (Fig.4) and press <strong>Finish<\/strong> (Fig.5).<\/p>\n\n\n\n<p>Fig.1<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"200\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/009-1024x200.jpg\" alt=\"\" class=\"wp-image-216\" srcset=\"\/wp-content\/uploads\/2020\/06\/009-1024x200.jpg 1024w, \/wp-content\/uploads\/2020\/06\/009-300x59.jpg 300w, \/wp-content\/uploads\/2020\/06\/009-768x150.jpg 768w, \/wp-content\/uploads\/2020\/06\/009-1536x301.jpg 1536w, \/wp-content\/uploads\/2020\/06\/009-1226x240.jpg 1226w, \/wp-content\/uploads\/2020\/06\/009-928x182.jpg 928w, \/wp-content\/uploads\/2020\/06\/009-480x94.jpg 480w, \/wp-content\/uploads\/2020\/06\/009.jpg 1906w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Fig.2<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"585\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/011.jpg\" alt=\"\" class=\"wp-image-221\" srcset=\"\/wp-content\/uploads\/2020\/06\/011.jpg 855w, \/wp-content\/uploads\/2020\/06\/011-300x205.jpg 300w, \/wp-content\/uploads\/2020\/06\/011-768x525.jpg 768w, \/wp-content\/uploads\/2020\/06\/011-480x328.jpg 480w\" sizes=\"(max-width: 855px) 100vw, 855px\" \/><\/figure>\n\n\n\n<p>Fig.3<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"849\" height=\"580\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/012.jpg\" alt=\"\" class=\"wp-image-222\" srcset=\"\/wp-content\/uploads\/2020\/06\/012.jpg 849w, \/wp-content\/uploads\/2020\/06\/012-300x205.jpg 300w, \/wp-content\/uploads\/2020\/06\/012-768x525.jpg 768w, \/wp-content\/uploads\/2020\/06\/012-480x328.jpg 480w\" sizes=\"(max-width: 849px) 100vw, 849px\" \/><\/figure>\n\n\n\n<p>Fig.4<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"577\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/013.jpg\" alt=\"\" class=\"wp-image-223\" srcset=\"\/wp-content\/uploads\/2020\/06\/013.jpg 855w, \/wp-content\/uploads\/2020\/06\/013-300x202.jpg 300w, \/wp-content\/uploads\/2020\/06\/013-768x518.jpg 768w, \/wp-content\/uploads\/2020\/06\/013-480x324.jpg 480w\" sizes=\"(max-width: 855px) 100vw, 855px\" \/><\/figure>\n\n\n\n<p>Fig.5<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"854\" height=\"584\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/014.jpg\" alt=\"\" class=\"wp-image-224\" srcset=\"\/wp-content\/uploads\/2020\/06\/014.jpg 854w, \/wp-content\/uploads\/2020\/06\/014-300x205.jpg 300w, \/wp-content\/uploads\/2020\/06\/014-768x525.jpg 768w, \/wp-content\/uploads\/2020\/06\/014-480x328.jpg 480w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/figure>\n\n\n\n<p>Select the VM you want to migrate &#8211; <strong>right click<\/strong> on it and select <strong>Migrate<\/strong> option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"236\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/300-1024x236.jpg\" alt=\"\" class=\"wp-image-231\" srcset=\"\/wp-content\/uploads\/2020\/06\/300-1024x236.jpg 1024w, \/wp-content\/uploads\/2020\/06\/300-300x69.jpg 300w, \/wp-content\/uploads\/2020\/06\/300-768x177.jpg 768w, \/wp-content\/uploads\/2020\/06\/300-1536x354.jpg 1536w, \/wp-content\/uploads\/2020\/06\/300-2048x472.jpg 2048w, \/wp-content\/uploads\/2020\/06\/300-1226x282.jpg 1226w, \/wp-content\/uploads\/2020\/06\/300-928x214.jpg 928w, \/wp-content\/uploads\/2020\/06\/300-480x111.jpg 480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Choose the migration type you want to use it &#8211; I&#8217;ve chosen <strong>Change both compute resource and storage<\/strong> option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"636\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/301-1024x636.jpg\" alt=\"\" class=\"wp-image-232\" srcset=\"\/wp-content\/uploads\/2020\/06\/301-1024x636.jpg 1024w, \/wp-content\/uploads\/2020\/06\/301-300x186.jpg 300w, \/wp-content\/uploads\/2020\/06\/301-768x477.jpg 768w, \/wp-content\/uploads\/2020\/06\/301-928x576.jpg 928w, \/wp-content\/uploads\/2020\/06\/301-480x298.jpg 480w, \/wp-content\/uploads\/2020\/06\/301.jpg 1150w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Select the new destination for VM<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"658\" src=\"https:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/302-1024x658.jpg\" alt=\"\" class=\"wp-image-342\" srcset=\"\/wp-content\/uploads\/2020\/06\/302-1024x658.jpg 1024w, \/wp-content\/uploads\/2020\/06\/302-300x193.jpg 300w, \/wp-content\/uploads\/2020\/06\/302-768x493.jpg 768w, \/wp-content\/uploads\/2020\/06\/302-928x596.jpg 928w, \/wp-content\/uploads\/2020\/06\/302-480x308.jpg 480w, \/wp-content\/uploads\/2020\/06\/302.jpg 1127w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Select storage &#8211; in my case I have only one option (DS datastore)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"661\" src=\"https:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/303-2-1024x661.jpg\" alt=\"\" class=\"wp-image-343\" srcset=\"\/wp-content\/uploads\/2020\/06\/303-2-1024x661.jpg 1024w, \/wp-content\/uploads\/2020\/06\/303-2-300x194.jpg 300w, \/wp-content\/uploads\/2020\/06\/303-2-768x496.jpg 768w, \/wp-content\/uploads\/2020\/06\/303-2-928x599.jpg 928w, \/wp-content\/uploads\/2020\/06\/303-2-480x310.jpg 480w, \/wp-content\/uploads\/2020\/06\/303-2.jpg 1128w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Specified Network (<em>VMotionA<\/em>) on the destination host.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/304-1024x640.jpg\" alt=\"\" class=\"wp-image-235\" srcset=\"\/wp-content\/uploads\/2020\/06\/304-1024x640.jpg 1024w, \/wp-content\/uploads\/2020\/06\/304-300x187.jpg 300w, \/wp-content\/uploads\/2020\/06\/304-768x480.jpg 768w, \/wp-content\/uploads\/2020\/06\/304-928x580.jpg 928w, \/wp-content\/uploads\/2020\/06\/304-480x300.jpg 480w, \/wp-content\/uploads\/2020\/06\/304.jpg 1146w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I selected vMotion with high priority which will migrate VM now. You can also schedule the migration using the second option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"649\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/305-1024x649.jpg\" alt=\"\" class=\"wp-image-236\" srcset=\"\/wp-content\/uploads\/2020\/06\/305-1024x649.jpg 1024w, \/wp-content\/uploads\/2020\/06\/305-300x190.jpg 300w, \/wp-content\/uploads\/2020\/06\/305-768x487.jpg 768w, \/wp-content\/uploads\/2020\/06\/305-928x588.jpg 928w, \/wp-content\/uploads\/2020\/06\/305-480x304.jpg 480w, \/wp-content\/uploads\/2020\/06\/305.jpg 1144w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now I&#8217;m ready to migrate the VM, press <strong>Finish<\/strong> to start migration.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"312\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/306-1024x312.jpg\" alt=\"\" class=\"wp-image-237\" srcset=\"\/wp-content\/uploads\/2020\/06\/306-1024x312.jpg 1024w, \/wp-content\/uploads\/2020\/06\/306-300x91.jpg 300w, \/wp-content\/uploads\/2020\/06\/306-768x234.jpg 768w, \/wp-content\/uploads\/2020\/06\/306-1536x468.jpg 1536w, \/wp-content\/uploads\/2020\/06\/306-2048x624.jpg 2048w, \/wp-content\/uploads\/2020\/06\/306-1226x373.jpg 1226w, \/wp-content\/uploads\/2020\/06\/306-928x283.jpg 928w, \/wp-content\/uploads\/2020\/06\/306-480x146.jpg 480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Migration is in progress now and the status is visible under the Recent Tasks view.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"444\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/307-1024x444.jpg\" alt=\"\" class=\"wp-image-238\" srcset=\"\/wp-content\/uploads\/2020\/06\/307-1024x444.jpg 1024w, \/wp-content\/uploads\/2020\/06\/307-300x130.jpg 300w, \/wp-content\/uploads\/2020\/06\/307-768x333.jpg 768w, \/wp-content\/uploads\/2020\/06\/307-1536x666.jpg 1536w, \/wp-content\/uploads\/2020\/06\/307-1226x531.jpg 1226w, \/wp-content\/uploads\/2020\/06\/307-928x402.jpg 928w, \/wp-content\/uploads\/2020\/06\/307-480x208.jpg 480w, \/wp-content\/uploads\/2020\/06\/307.jpg 1788w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Migration is completed as you can see under the Recent Tasks view.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"274\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/308-1024x274.jpg\" alt=\"\" class=\"wp-image-239\" srcset=\"\/wp-content\/uploads\/2020\/06\/308-1024x274.jpg 1024w, \/wp-content\/uploads\/2020\/06\/308-300x80.jpg 300w, \/wp-content\/uploads\/2020\/06\/308-768x205.jpg 768w, \/wp-content\/uploads\/2020\/06\/308-1536x411.jpg 1536w, \/wp-content\/uploads\/2020\/06\/308-2048x548.jpg 2048w, \/wp-content\/uploads\/2020\/06\/308-1226x328.jpg 1226w, \/wp-content\/uploads\/2020\/06\/308-928x248.jpg 928w, \/wp-content\/uploads\/2020\/06\/308-480x128.jpg 480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now, <em>VMToBeMigr<\/em> virtual machine is running on the second ESXi (192.168.0.116) and there was no interruption.<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"244\" src=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/309-1024x244.jpg\" alt=\"\" data-id=\"240\" data-full-url=\"http:\/\/bogdanburuiana.com\/wp-content\/uploads\/2020\/06\/309-scaled.jpg\" data-link=\"http:\/\/bogdanburuiana.com\/index.php\/2020\/06\/06\/live-migration-with-vmotion\/attachment\/309\/\" class=\"wp-image-240\" srcset=\"\/wp-content\/uploads\/2020\/06\/309-1024x244.jpg 1024w, \/wp-content\/uploads\/2020\/06\/309-300x71.jpg 300w, \/wp-content\/uploads\/2020\/06\/309-768x183.jpg 768w, \/wp-content\/uploads\/2020\/06\/309-1536x365.jpg 1536w, \/wp-content\/uploads\/2020\/06\/309-2048x487.jpg 2048w, \/wp-content\/uploads\/2020\/06\/309-1226x292.jpg 1226w, \/wp-content\/uploads\/2020\/06\/309-928x221.jpg 928w, \/wp-content\/uploads\/2020\/06\/309-480x114.jpg 480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><\/ul><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In a previous post I&#8217;ve described how to create a nested ESXi solution and the benefits of use it. Now it is time to see it in a new exercise &#8211; migration of a VM using vMotion. VMware vSphere vMotion is a zero downtime live migration of workloads from one host to another. I&#8217;ve created [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":117,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/posts\/182"}],"collection":[{"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/comments?post=182"}],"version-history":[{"count":40,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/posts\/182\/revisions"}],"predecessor-version":[{"id":344,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/posts\/182\/revisions\/344"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/media\/117"}],"wp:attachment":[{"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/media?parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/categories?post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/tags?post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}