0639.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install VMware vSphere (ESXi) Update Via Command Line</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="How To Patch ESXi Host,How To Update ESXi Host,ESXi,VMware,VSphere,Hypervisor,Virtual Machine,VM,Update,SSH,CLI,Command Line,Manual Update,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install VMware vSphere (ESXi) Update Via Command Line">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Install VMware vSphere (ESXi) Update Via Command Line</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <h2>Downloading the Update</h2>
  25. <ol>
  26. <li>Open a web browser and navigate to https://customerconnect.vmware.com/</li>
  27. <li>Register or login with an existing account</li>
  28. <li>Search for vmware vsphere</li>
  29. <li>Filter the results to Downloads</li>
  30. <li>Select the result for the target version of VMware vSphere</li>
  31. <li>Use the Select Version dropdown to set the target update version</li>
  32. <li>Scroll down and download the VMware vSphere Hypervisor (ESXi) Offline Bundle</li>
  33. </ol>
  34. <h2>Applying the Update</h2>
  35. <ol>
  36. <li>Log into the VMware vSphere ESXi web UI</li>
  37. <li>Enable the SSH service if it is not already enabled by selecting Actions &gt; Services &gt; Enable Secure Shell (SSH)</li>
  38. <li>Select Storage from the left navigation menu</li>
  39. <li>Click Datastore browser in the main content area &gt; Select a target Data store &gt; Click Upload &gt; Browse to and select the downloaded Offline Bundle .zip file</li>
  40. <li>After the upload completes, connect to the ESXi host via SSH</li>
  41. <li>Run the following commands
  42. <div class="codeBlock"># put the host into maintenance mode<br />
  43. vim-cmd hostsvc/maintenance_mode_enter<br />
  44. # list datastores<br />
  45. ls /vmfs/volumes<br />
  46. # run the update, replacing the datastore name and update file name<br />
  47. esxcli software vib install -d &quot;/vmfs/volumes/datastore1/ESXi670-201912001.zip&quot;<br />
  48. # after the update completes, reboot the host<br />
  49. reboot<br />
  50. # once the host is back up, log back in<br />
  51. # take the host out of maintenance mode<br />
  52. vim-cmd hostsvc/maintenance_mode_exit</div>
  53. </li>
  54. <li>Log back into the VMware vSphere ESXi web UI</li>
  55. <li>Verify the updated version is displayed</li>
  56. </ol>
  57. </div>
  58. </div>
  59. </body>
  60. </html>