{"id":3845,"date":"2018-06-28T10:24:49","date_gmt":"2018-06-28T09:24:49","guid":{"rendered":"http:\/\/tomaskalabis.com\/wordpress\/?p=3845"},"modified":"2018-06-28T10:24:49","modified_gmt":"2018-06-28T09:24:49","slug":"how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host","status":"publish","type":"post","link":"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/","title":{"rendered":"How to enable vCenter Server High Availability (VCHA) in vSphere 6.7 in single ESXi host"},"content":{"rendered":"<h3>How to enable vCenter Server High Availability (VCHA) in vSphere 6.7 in single ESXi host<\/h3>\n<p>i wanted to try out VCHA &#8211; vCenter Server High Availability, which was introduced in vSphere 6.5 in my demo lab enviornment, but in deploy process i got error &#8222;This operation would violate a virtual machine affinity\/anti-affinity rule.&#8220;<\/p>\n<figure id=\"attachment_3846\" aria-describedby=\"caption-attachment-3846\" style=\"width: 494px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2018\/06\/ha-af-3-e1530177346158.png\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-3846 size-large\" src=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2018\/06\/ha-af-3-494x183.png\" alt=\"\" width=\"494\" height=\"183\" \/><\/a><figcaption id=\"caption-attachment-3846\" class=\"wp-caption-text\">This operation would violate a virtual machine affinity\/anti-affinity rule<\/figcaption><\/figure>\n<p>vCenter Server High Availability automatically provision affinity rules, active, passive and witness node are not running on the same physical ESXi host, in production deployment is needed 3 ESXi hosts, but i have only 2 ESXi hosts in my lab.<\/p>\n<p><a href=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2018\/06\/ha-af-4-e1530177635365.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-3847\" src=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2018\/06\/ha-af-4-494x124.png\" alt=\"\" width=\"494\" height=\"124\" \/><\/a><\/p>\n<p>change value\u00a0<strong>config.vpxd.vcha.drsAntiAffinity\u00a0<\/strong>to <strong>false<\/strong> and re-deploy VCHA.<\/p>\n<p><a href=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2018\/06\/ha-vcenter13-e1530177729478.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-3848\" src=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2018\/06\/ha-vcenter13-494x299.png\" alt=\"\" width=\"494\" height=\"299\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to enable vCenter Server High Availability (VCHA) in vSphere 6.7 in single ESXi host i wanted to try out VCHA &#8211; vCenter Server High Availability, which was introduced in &#8230;<\/p>\n","protected":false},"author":2,"featured_media":2402,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[224,113],"tags":[290,291,276,289],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to enable vCenter Server High Availability (VCHA) in vSphere 6.7 in single ESXi host<\/title>\n<meta name=\"description\" content=\"vCenter Server High Availability vcenter HA but in deploy process i got error &quot;This operation would violate a virtual machine affinity\/anti-affinity rule.&quot;\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to enable vCenter Server High Availability (VCHA) in vSphere 6.7 in single ESXi host\" \/>\n<meta property=\"og:description\" content=\"vCenter Server High Availability vcenter HA but in deploy process i got error &quot;This operation would violate a virtual machine affinity\/anti-affinity rule.&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/\" \/>\n<meta property=\"og:site_name\" content=\"tomaskalabis.com\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-28T09:24:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"164\" \/>\n\t<meta property=\"og:image:height\" content=\"164\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tomas Kalabis\" \/>\n<meta name=\"twitter:label1\" content=\"Napsal(a)\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomas Kalabis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Odhadovan\u00e1 doba \u010dten\u00ed\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuta\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/\",\"name\":\"How to enable vCenter Server High Availability (VCHA) in vSphere 6.7 in single ESXi host\",\"isPartOf\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png\",\"datePublished\":\"2018-06-28T09:24:49+00:00\",\"dateModified\":\"2018-06-28T09:24:49+00:00\",\"author\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6\"},\"description\":\"vCenter Server High Availability vcenter HA but in deploy process i got error \\\"This operation would violate a virtual machine affinity\/anti-affinity rule.\\\"\",\"breadcrumb\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/#breadcrumb\"},\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/#primaryimage\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png\",\"contentUrl\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png\",\"width\":164,\"height\":164},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tomaskalabis.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to enable vCenter Server High Availability (VCHA) in vSphere 6.7 in single ESXi host\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#website\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/\",\"name\":\"tomaskalabis.com\",\"description\":\"my personal blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tomaskalabis.com\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"cs\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6\",\"name\":\"Tomas Kalabis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g\",\"caption\":\"Tomas Kalabis\"},\"sameAs\":[\"https:\/\/x.com\/tomaskalabis\"],\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/author\/kalabis\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to enable vCenter Server High Availability (VCHA) in vSphere 6.7 in single ESXi host","description":"vCenter Server High Availability vcenter HA but in deploy process i got error \"This operation would violate a virtual machine affinity\/anti-affinity rule.\"","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/","og_locale":"cs_CZ","og_type":"article","og_title":"How to enable vCenter Server High Availability (VCHA) in vSphere 6.7 in single ESXi host","og_description":"vCenter Server High Availability vcenter HA but in deploy process i got error \"This operation would violate a virtual machine affinity\/anti-affinity rule.\"","og_url":"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/","og_site_name":"tomaskalabis.com","article_published_time":"2018-06-28T09:24:49+00:00","og_image":[{"width":164,"height":164,"url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png","type":"image\/png"}],"author":"Tomas Kalabis","twitter_misc":{"Napsal(a)":"Tomas Kalabis","Odhadovan\u00e1 doba \u010dten\u00ed":"1 minuta"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/","url":"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/","name":"How to enable vCenter Server High Availability (VCHA) in vSphere 6.7 in single ESXi host","isPartOf":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/#primaryimage"},"image":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/#primaryimage"},"thumbnailUrl":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png","datePublished":"2018-06-28T09:24:49+00:00","dateModified":"2018-06-28T09:24:49+00:00","author":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6"},"description":"vCenter Server High Availability vcenter HA but in deploy process i got error \"This operation would violate a virtual machine affinity\/anti-affinity rule.\"","breadcrumb":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/#breadcrumb"},"inLanguage":"cs","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/"]}]},{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/#primaryimage","url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png","contentUrl":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png","width":164,"height":164},{"@type":"BreadcrumbList","@id":"https:\/\/tomaskalabis.com\/wordpress\/how-to-enable-vcenter-server-high-availability-vcha-in-vsphere-6-7-in-single-esxi-host\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tomaskalabis.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"How to enable vCenter Server High Availability (VCHA) in vSphere 6.7 in single ESXi host"}]},{"@type":"WebSite","@id":"https:\/\/tomaskalabis.com\/wordpress\/#website","url":"https:\/\/tomaskalabis.com\/wordpress\/","name":"tomaskalabis.com","description":"my personal blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tomaskalabis.com\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"cs"},{"@type":"Person","@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6","name":"Tomas Kalabis","image":{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g","caption":"Tomas Kalabis"},"sameAs":["https:\/\/x.com\/tomaskalabis"],"url":"https:\/\/tomaskalabis.com\/wordpress\/author\/kalabis\/"}]}},"jetpack_featured_media_url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png","_links":{"self":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/3845"}],"collection":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3845"}],"version-history":[{"count":1,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/3845\/revisions"}],"predecessor-version":[{"id":3849,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/3845\/revisions\/3849"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/media\/2402"}],"wp:attachment":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}