{"id":1253,"date":"2021-09-26T15:18:02","date_gmt":"2021-09-26T20:18:02","guid":{"rendered":"http:\/\/zewwy.ca\/?p=1253"},"modified":"2022-05-17T14:18:38","modified_gmt":"2022-05-17T19:18:38","slug":"change-vcenter-fqdn-or-ip-on-veeam","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2021\/09\/26\/change-vcenter-fqdn-or-ip-on-veeam\/","title":{"rendered":"Change vCenter FQDN or IP on Veeam"},"content":{"rendered":"<h1 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Story\"><\/span>Story<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>I recently did a infrastructure upgrade on my home lab, which included moving all my esxi hosts into a dedicate subnet, and making them all more dependent on DNS. This has it&#8217;s pros n cons, after all <a href=\"http:\/\/zewwy.ca\/index.php\/2021\/09\/19\/esxi-update-network-config-failedset-esxi-ip-via-cli\/\">my ESXi host had their IP addresses changed<\/a>. I also <a href=\"http:\/\/zewwy.ca\/index.php\/2021\/09\/15\/upgrade-and-migrate-a-vcenter-server\/#Changing_vCenter_Server_IP_address\">moved my vCenter and changed it IP address<\/a>, which is now supported yay.<\/p>\n<p>Now I had to move Veeam along with it, originally it was in the same subnet as the esxi hosts, and vCenter which have all moved, instead of trying to manage cross subnet comms, I changed Veaam&#8217;s IP address and pointed it&#8217;s DNS settings to my AD DNS which has all the ESXi and vCenter host records. Was easy enough just changing the Windows NIC Ip address, and changing the VM&#8217;s VMPG.<\/p>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"_How_to\"><\/span>\u00a0How to<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now when I went to scan the vCenter instance in Veeam, it complained about the certificate, since it was renewed from the vCEnter upgrade. I decided I&#8217;d change it to be based on DNS now that everything else is as well. When I went to edit the object in Veeam it was greyed out.\u00a0 Lucky for me <a href=\"https:\/\/www.veeam.com\/kb1905\">Veeam had a KB ready to go<\/a>.<\/p>\n<p style=\"text-align: center;\">Challenge<\/p>\n<p>The Name\/FQDN\/IP of the vCenter Server has changed, and needs to be updated within Veeam Backup &amp; Replication.<\/p>\n<p style=\"text-align: center;\">Solution<\/p>\n<p>Solves Name Change Only<br \/>\nThis solution applies ONLY if the vCenter Server database has not changed.<br \/>\n(I did an upgrade so yes, which you&#8217;d want to preserve VM-IDs, and chains)<\/p>\n<p>If the Name\/FQDN\/IP of the vCenter changed due to a reinstall or upgrade, and a new vCenter database was used, the Ref-IDs will have changed. Due to the changed Ref-IDs you will need to follow the documented process in www.veeam.com\/KB1299<\/p>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Step_1\"><\/span>Step 1<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Prior to running the commands below you need to identify the Name\\FQDN\\IP Veeam is using to communicate with the VC currently. To do this, edit the entry for the vCenter under Backup Infrastructure and note the \u201cName:\u201d.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/5xZGuz7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/5xZGuz7.png\" alt=\"\" width=\"751\" height=\"328\" \/><\/a><\/p>\n<p>Next perform the following steps to change that VMware Server&#8217;s name.<\/p>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Step_2\"><\/span>Step 2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Launch PowerShell from inside the Veeam Backup &amp; Replication console. You can find the &#8220;PowerShell&#8221; button under the File-menu&#8217;s &#8220;Console&#8221; section.<\/p>\n<p>The Veeam Backup &amp; Replication PowerShell Tookit will load.<\/p>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Step_3\"><\/span>Step 3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Run the following command:<\/p>\n<pre>$Servers = Get-VBRServer -name \"old-name\"<\/pre>\n<p>Replace old-name with the &#8220;Name&#8221; current set for the vCenter in the Veeam Backup and Replication Console<\/p>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Step_4\"><\/span>Step 4<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Run the following command next to change the name:<\/p>\n<pre>$Servers.SetName(\"new-name\")<\/pre>\n<p>Replace new-name with the new name for the vCenter, this can be an IP, Hostname, or FQDN.<br \/>\nDo not remove the quotes on either side.<br \/>\nThis change will go in to effect as soon as the command in Step 4 completes.<\/p>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"How_I_did_it_%E2%80%93_One_Liner\"><\/span>How I did it &#8211; One Liner<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Verify\"><\/span>Verify:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre>Get-VBRServer -name \"Name from Step 1\"<\/pre>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Change\"><\/span>Change:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre>(Get-VBRServer -name \"Name From Step 1\").SetName(\"new.domain.com\")<\/pre>\n<h3 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Results\"><\/span>Results:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><a href=\"https:\/\/i.imgur.com\/tnH83Kh.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/tnH83Kh.png\" alt=\"\" width=\"927\" height=\"330\" \/><\/a><\/p>\n<p><a href=\"https:\/\/i.imgur.com\/FX26afI.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/FX26afI.png\" alt=\"\" width=\"756\" height=\"356\" \/><\/a><\/p>\n<p>Now you can click next, Apply, should get right past checking certificate if the certificates are all good&#8230; and end up with the follow after rescan:<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/top1gsr.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/top1gsr.png\" alt=\"\" width=\"753\" height=\"533\" \/><\/a><\/p>\n<p>That was easy enough, I don&#8217;t fully understand why the grey out the UI to make this change, but there you have it. Happy Backups!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Story I recently did a infrastructure upgrade on my home lab, which included moving all my esxi hosts into a dedicate subnet, and making them all more dependent on DNS. This has it&#8217;s pros n cons, after all my ESXi host had their IP addresses changed. I also moved my vCenter and changed it IP &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2021\/09\/26\/change-vcenter-fqdn-or-ip-on-veeam\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Change vCenter FQDN or IP on Veeam&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[5,8,236],"tags":[379,16,82],"class_list":["post-1253","post","type-post","status-publish","format-standard","hentry","category-hypervisors","category-server-administration","category-veeam","tag-change-ip","tag-vcenter","tag-veeam"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1253"}],"version-history":[{"count":3,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1253\/revisions"}],"predecessor-version":[{"id":1371,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1253\/revisions\/1371"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}