mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-20 04:23:34 +01:00
18 lines
3.5 KiB
HTML
18 lines
3.5 KiB
HTML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>11.7. Changing Host Password</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-Admin_Guide-4.0.0-incubating-en-US-1-" /><link rel="home" href="index.html" title="CloudStack Administrator's Guide" /><link rel="up" href="working-with-hosts.html" title="Chapter 11. Working With Hosts" /><link rel="prev" href="maintain-hypervisors-on-hosts.html" title="11.6. Maintaining Hypervisors on Hosts" /><link rel="next" href="host-allocation.html" title="11.8. Host Allocation" /></head><body><p id="title"><a class="left" href="http://cloudstack.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://docs.cloudstack.org"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="maintain-hypervisors-on-hosts.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="host-allocation.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" id="change-host-password" lang="en-US"><div class="titlepage"><div><div><h2 class="title" id="change-host-password">11.7. Changing Host Password</h2></div></div></div><div class="para">
|
||
The password for a XenServer Node, KVM Node, or vSphere Node may be changed in the database. Note that all Nodes in a Cluster must have the same password.
|
||
</div><div class="para">
|
||
To change a Node's password:
|
||
</div><div class="orderedlist"><ol><li class="listitem"><div class="para">
|
||
Identify all hosts in the cluster.
|
||
</div></li><li class="listitem"><div class="para">
|
||
Change the password on all hosts in the cluster. Now the password for the host and the password known to CloudStack will not match. Operations on the cluster will fail until the two passwords match.
|
||
</div></li><li class="listitem"><div class="para">
|
||
Get the list of host IDs for the host in the cluster where you are changing the password. You will need to access the database to determine these host IDs. For each hostname "h" (or vSphere cluster) that you are changing the password for, execute:
|
||
</div><pre class="programlisting">mysql> select id from cloud.host where name like '%h%';</pre></li><li class="listitem"><div class="para">
|
||
This should return a single ID. Record the set of such IDs for these hosts.
|
||
</div></li><li class="listitem"><div class="para">
|
||
Update the passwords for the host in the database. In this example, we change the passwords for hosts with IDs 5, 10, and 12 to "password".
|
||
</div><pre class="programlisting">mysql> update cloud.host set password='password' where id=5 or id=10 or id=12;</pre></li></ol></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="maintain-hypervisors-on-hosts.html"><strong>Prev</strong>11.6. Maintaining Hypervisors on Hosts</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="host-allocation.html"><strong>Next</strong>11.8. Host Allocation</a></li></ul></body></html>
|