{"id":7488,"date":"2021-03-01T22:32:39","date_gmt":"2021-03-01T21:32:39","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=7488"},"modified":"2021-12-14T10:48:08","modified_gmt":"2021-12-14T09:48:08","slug":"vmware-vsphere-update-vcsa-appliance-from-command-line","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/vmware-vsphere-update-vcsa-appliance-from-command-line\/","title":{"rendered":"VMWare vSphere: Update VCSA Appliance from command line"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_7488 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_7488')){$('.twoclick_social_bookmarks_post_7488').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"VMWare%20vSphere%3A%20Update%20VCSA%20Appliance%20from%20command%20line\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0AI%20will%20show%20you%20how%20you%20can%20update%20a%20VCSA%20Appliance%20from%20command%20line%20rather%20then%20from%20webfrontend.%0D%0A%0D%0AI%20assume%20you%20have%20configured%20a%20proxy%20server%20when%20you%20do%20not%20have%20a%20direct%20internet%20connection.%0D%0A%0D%0ALogin%20to%20the%20appliance%20at%20the%20console%20or%20by%20ssh.%0D%0A%0D%0AFirst%20of%20all%20check%20the%20state%20of%20the%20lookup%20service%20by%20lsdoctor%0D%0A%0D%0ARun%20the%20lsdoctor%20tool%20to%20recognized%20some%20certificate%20issues.%20Certifica%20...\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/vmware-vsphere-update-vcsa-appliance-from-command-line\\\/\",\"post_id\":7488,\"post_title_referrer_track\":\"VMWare+vSphere%3A+Update+VCSA+Appliance+from+command+line\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>I will show you how you can update a VCSA Appliance from command line rather then from webfrontend.<\/p>\n<p>I assume you have configured a proxy server when you do not have a direct internet connection.<\/p>\n<p>Login to the appliance at the console or by ssh.<\/p>\n<p>First of all check the state of the lookup service by lsdoctor<\/p>\n<p>Run the <a href=\"https:\/\/kb.vmware.com\/s\/article\/80469\" rel=\"noopener\" target=\"_blank\">lsdoctor <\/a>tool to recognized some certificate issues. Certificate issues are often the problem when an update fails.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nCommand&gt; shell\r\nroot@vCenter &#x5B; ~\/lsdoctor-master ]# python lsdoctor.py -l\r\n2021-12-13T12:52:04 INFO generateReport: Listing lookup service problems found in SSO domain...\r\n2021-12-13T12:52:04 INFO generateReport: No issues detected in the lookup service entries\r\n<\/pre>\n<p><!--more--><br \/>\nStage the packages and accept eula<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nCommand&gt; software-packages stage --url --acceptEulas\r\n &#x5B;2021-02-28T18:44:03.060] : UpdateInfo: Using product version 7.0.1.00100 and build 17004997\r\n &#x5B;2021-02-28T18:44:03.060] : Target VCSA version = 7.0.1.00300\r\n &#x5B;2021-02-28T18:44:32.060] : Running requirements script.....\r\n\r\n &#x5B;2021-02-28T18:44:54.060] : Evaluating packages to stage...\r\n &#x5B;2021-02-28T18:44:54.060] : Verifying staging area\r\n &#x5B;2021-02-28T18:44:54.060] : Staging process completed successfully\r\n<\/pre>\n<p>List staged update<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nCommand&gt; software-packages list --staged\r\n        category: Bugfix\r\n        kb: https:\/\/docs.vmware.com\/en\/VMware-vSphere\/7.0\/rn\/vsphere-vcenter-server-70u1d-release-notes.html\r\n        leaf_services: &#x5B;'vmware-pod' , 'vsphere-ui', 'wcp']\r\n        vendor: VMware, Inc.\r\n        name: VC-7.0U1d\r\n        size in MB: 5103\r\n<\/pre>\n<p>Install staged packages, the vSphere sso adminstrator password is needed during installation.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nCommand&gt; software-packages install --staged\r\nEnter Single Sign-On administrator password:\r\n\r\n &#x5B;2021-03-01T09:08:47.060] : Validating software update payload\r\n &#x5B;2021-03-01T09:08:47.060] : UpdateInfo: Using product version 7.0.1.00100 and build 17004997\r\n &#x5B;2021-03-01 09:08:47,460] : Running validate script.....\r\n &#x5B;2021-03-01T09:08:52.060] : Validation successful\r\n &#x5B;2021-03-01 09:08:52,485] : Copying software packages 39\/165\r\n<\/pre>\n<p>If you don&#8217;t won&#8217;t to update directly over the internet, download the latest <a href=\"https:\/\/my.vmware.com\/de\/group\/vmware\/patch#search\" rel=\"noopener\" target=\"_blank\">patch<\/a> and mount the iso as a cdrom to the VCSA appliance. <\/p>\n<p>Stage it with<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nCommand&gt; software-packages stage --iso\r\n<\/pre>\n<p>Logs about the update process:<br \/>\n<code>\/var\/log\/vmware\/applmgmt\/applmgmt.log<\/code><br \/>\nThe appliance state is stored here:<br \/>\n<code>\/etc\/applmgmt\/appliance\/software_update_state.conf<\/code><\/p>\n<p>If an update failed, you want to open a ticket, VMware wants an Appilance log bundle<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nCommand&gt; shell\r\nroot@ myVCSA # vc-support.sh\r\n<\/pre>\n<p>Bundle is stored at <strong>\/storage\/log\/<\/strong><\/p>\n<p>Michael<\/p>\n<p><!-- \nlogs:  \/var\/log\/vmware\/applmgmt\/applmgmt.log\ncat \/etc\/applmgmt\/appliance\/software_update_state.conf\n--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, I will show you how you can update a VCSA Appliance from command line rather then from webfrontend. I assume you have configured a proxy server when you do not have a direct internet connection. Login to the appliance at the console or by ssh. First of all check the state of the lookup &hellip; <a href=\"https:\/\/michlstechblog.info\/blog\/vmware-vsphere-update-vcsa-appliance-from-command-line\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">VMWare vSphere: Update VCSA Appliance from command line<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[188,1541,1540,189,1167,1190,920,1524,14,110],"class_list":["post-7488","post","type-post","status-publish","format-standard","hentry","category-vmware","tag-command","tag-internet","tag-iso","tag-line","tag-patch","tag-update","tag-url","tag-vcsa","tag-vmware-2","tag-vsphere"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=7488"}],"version-history":[{"count":12,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7488\/revisions"}],"predecessor-version":[{"id":8282,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7488\/revisions\/8282"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=7488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=7488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=7488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}