{"id":10288,"date":"2010-01-25T17:38:00","date_gmt":"2010-01-25T17:38:00","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=10288"},"modified":"2010-01-25T17:38:00","modified_gmt":"2010-01-25T17:38:00","slug":"hyper-v-live-migration-and-linux-vms","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=10288","title":{"rendered":"Hyper-V Live Migration and Linux VM\u2019s"},"content":{"rendered":"<p>Let\u2019s get this out of the way quickly.&#160; Yes, you can run Linux virtual machines on a Hyper-V cluster and you can Live Migrate them.&#160; I have SUSE Enterprise Linux 10 SP1 VM\u2019s running on our cluster.&#160; I can live migrate them from one host to another and not lose a ping packet during the move.<\/p>\n<p>There\u2019s a configuration that you must to to ensure this stability.&#160; I first read about it online and it is in the Microsoft documentation for the <a href=\"https:\/\/aidanfinn.com\/?p=10280\" target=\"_blank\">Linux integration components<\/a>.<\/p>\n<p>You need to set the MAC (Ethernet) address of the virtual machine to be static.&#160; VMM makes that quite easy.&#160; <\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2010\/01\/image1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2010\/01\/image_thumb1.png\" width=\"404\" height=\"413\" \/><\/a> <\/p>\n<p>Above you can see the properties of a SLES VM on our Hyper-V cluster.&#160; You can see that I\u2019ve put the VM into a VLAN so I can firewall it.&#160; I\u2019ve also set the NIC to have a static MAC address.&#160; Unlike most controls for networking, this must be set while the VM is powered off.&#160; There\u2019s a button on the right which allows you to generate a MAC address.&#160; This is created from a pool of MAC addresses.<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2010\/01\/image2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2010\/01\/image_thumb2.png\" width=\"404\" height=\"359\" \/><\/a> <\/p>\n<\/p>\n<p>VMM allows you to specify what that pool of MAC addresses is.&#160; It must be a range that does not exist on any hardware \u2013 there\u2019s always the chance that you could otherwise accidentally set a MAC address for a VM that clashes with that of an actual Ethernet network card and cause all sorts of ARP issues.<\/p>\n<p>Once you have that setting configured, boot up your VM, install the OS, install the IC\u2019s and test.&#160; Here I have run a ping from within the VM to the default gateway while running a live migration from VMM:<\/p>\n<p><em>64 bytes from 192.168.100.31: icmp_seq=15 ttl=64 time=0.469 ms     <br \/>64 bytes from 192.168.100.31: icmp_seq=16 ttl=64 time=0.052 ms <\/em><\/p>\n<p><em>&#8212; 192.168.100.31 ping statistics &#8212;     <br \/>107 packets transmitted, 107 received, 0% packet loss, time 106053ms      <br \/>rtt min\/avg\/max\/mdev = 0.030\/0.090\/0.469\/0.083 ms<\/em><\/p>\n<p>Zero packets lost and no massive spikes in latency.&#160; Failing to set the MAC to be static can cause issues where the VM appears to go offline.&#160; There is an example of this on the <a href=\"http:\/\/support.microsoft.com\/kb\/976724\" target=\"_blank\">MS support site (KB976724)<\/a>.&#160; In this scenario, SLES 10 SP2 live migrates, changes MAC address on the new host and then loses it\u2019s IP configuration.&#160; This is because the Linux distro binds the IP configuration to the MAC address.<\/p>\n<p>By the way, there\u2019s <em>usually<\/em> no reason to configure this setting for Windows guests.<\/p>\n<div style=\"padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:519b71d7-6bff-494e-875b-a3ff9fe53e91\" class=\"wlWriterEditableSmartContent\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/Hyper-V\" rel=\"tag\">Hyper-V<\/a>,<a href=\"http:\/\/technorati.com\/tags\/VMM\" rel=\"tag\">VMM<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Live+Migration\" rel=\"tag\">Live Migration<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Linux\" rel=\"tag\">Linux<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Let\u2019s get this out of the way quickly.&#160; Yes, you can run Linux virtual machines on a Hyper-V cluster and you can Live Migrate them.&#160; I have SUSE Enterprise Linux 10 SP1 VM\u2019s running on our cluster.&#160; I can live migrate them from one host to another and not lose a ping packet during the &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=10288\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Hyper-V Live Migration and Linux VM\u2019s&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[181,184,74,196],"class_list":["post-10288","post","type-post","status-publish","format-standard","hentry","category-hyper-v","tag-hyper-v","tag-linux","tag-live-migration","tag-vmm"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/10288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10288"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/10288\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}