<div style="line-height:1.6;font-size:16px;font-family:'苹方','微软雅黑','sans-serif';">thanks, but i do not know why is my hostname invalid?<br/><br /><br /></div><div class='ne-quoted'><blockquote id='ntes-andriodmail-quote' style="margin:0px !important;padding:0px !important;border: none !important;"><div class="J-reply" style="background-color:#f2f2f2;color:black;padding-top:6px;padding-bottom:6px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin-top:45px;margin-bottom:20px;">
<div style="font-size:14px;line-height:1.5;word-break:break-all;margin-left:10px;margin-right:10px">在<span class="mail-date">2018年04月04日 18:41</span>,<a class="mail-to" style="text-decoration:none;color:#2a97ff;" href="mailto:stirabos@redhat.com">Simone Tiraboschi</a> 写道:</div>
</div><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 4, 2018 at 12:28 PM, <span dir="ltr"><<a href="mailto:dhy336@sina.com" target="_blank">dhy336@sina.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,</div><div> </div><div>I deloy hosted-engine, by this blog,<a href="https://ovirt.org/documentation/self-hosted/chap-Deploying_Self-Hosted_Engine/" target="_blank">https://ovirt.org/<wbr>documentation/self-hosted/<wbr>chap-Deploying_Self-Hosted_<wbr>Engine/</a></div><div> but I am facing some error.who may give me some advise?</div><div><br></div><div>[root@localhost ~]# hosted-engine --deploy</div></blockquote><div><br></div><div>^^^</div><div><br></div><div>The error is here: please set a valid hostname for your host: the engine VM should be able to reach it.</div><div>If you add the host as localhost the engine VM will reach itself and it's not what we want.</div><div><br></div><div>If you don'y have a working DNS system, hosted-engine-setup will ask about injecting an entry for you under /etc/hosts on the engine VM but you still need a valid hostname.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div> </div><div><br></div><div><br></div><div> --== STORAGE CONFIGURATION ==--</div><div> </div><div> Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]: </div><div> Please specify the full shared storage connection path to use (example: host:/path): 192.168.122.134:/home/exports/<wbr>hosted-engine</div><div> </div><div> --== HOST NETWORK CONFIGURATION ==--</div><div> </div><div> iptables was detected on your computer, do you wish setup to configure it? (Yes, No)[Yes]: </div><div> Please indicate a pingable gateway IP address [192.168.122.1]: </div><div> Please indicate a nic to set ovirtmgmt bridge on: (eth0) [eth0]: </div><div> </div><div> --== VM CONFIGURATION ==--</div><div> </div><div> The following appliance have been found on your system:</div><div> <span class="m_-2002185882275311284Apple-tab-span" style="white-space:pre-wrap">        </span>[1] - The oVirt Engine Appliance image (OVA) - 4.1-20180124.1.el7.centos</div><div> <span class="m_-2002185882275311284Apple-tab-span" style="white-space:pre-wrap">        </span>[2] - Directly select an OVA file</div><div> Please select an appliance (1, 2) [1]: </div><div>[ INFO ] Verifying its sha1sum</div><div>[ INFO ] Checking OVF archive content (could take a few minutes depending on archive size)</div><div>[ INFO ] Checking OVF XML content (could take a few minutes depending on archive size)</div><div> Please specify the console type you would like to use to connect to the VM (vnc, spice) [vnc]: </div><div>[ INFO ] Detecting host timezone.</div><div> Would you like to use cloud-init to customize the appliance on the first boot (Yes, No)[Yes]? </div><div> Would you like to generate on-fly a cloud-init ISO image (of no-cloud type)</div><div> or do you have an existing one (Generate, Existing)[Generate]? </div><div> Please provide the FQDN you would like to use for the engine appliance.</div><div> Note: This will be the FQDN of the engine VM you are now going to launch,</div><div> it should not point to the base host or to any other existing machine.</div><div> Engine VM FQDN: (leave it empty to skip): []: <a href="http://engine.tchyp.com" target="_blank">engine.tchyp.com</a></div><div> Please provide the domain name you would like to use for the engine appliance.</div><div> Engine VM domain: [<a href="http://tchyp.com" target="_blank">tchyp.com</a>]</div><div> Automatically execute engine-setup on the engine appliance on first boot (Yes, No)[Yes]? </div><div> Automatically restart the engine VM as a monitored service after engine-setup (Yes, No)[Yes]? </div><div> Enter root password that will be used for the engine appliance (leave it empty to skip): </div><div>[WARNING] Skipping appliance root password</div><div> Enter ssh public key for the root user that will be used for the engine appliance (leave it empty to skip): </div><div>[WARNING] Skipping appliance root ssh public key</div><div> Do you want to enable ssh access for the root user (yes, no, without-password) [yes]: </div><div>[WARNING] The oVirt engine appliance is not configured with a default password, please consider configuring it via cloud-init</div><div> Please specify the size of the VM disk in GB: [58]: </div><div>[WARNING] Minimum requirements not met by available memory: Required: 4096 MB. Available: 3064 MB</div><div> Please specify the memory size of the VM in MB (Defaults to maximum available): [3064]: </div><div>[WARNING] Minimum requirements for memory size not met</div><div> Continue with specified memory size? (Yes, No) [No]: yes</div><div> The following CPU types are supported by this host:</div><div> <span class="m_-2002185882275311284Apple-tab-span" style="white-space:pre-wrap">        </span> - model_Haswell-noTSX: Intel Haswell-noTSX Family</div><div> <span class="m_-2002185882275311284Apple-tab-span" style="white-space:pre-wrap">        </span> - model_SandyBridge: Intel SandyBridge Family</div><div> <span class="m_-2002185882275311284Apple-tab-span" style="white-space:pre-wrap">        </span> - model_Westmere: Intel Westmere Family</div><div> <span class="m_-2002185882275311284Apple-tab-span" style="white-space:pre-wrap">        </span> - model_Nehalem: Intel Nehalem Family</div><div> <span class="m_-2002185882275311284Apple-tab-span" style="white-space:pre-wrap">        </span> - model_Penryn: Intel Penryn Family</div><div> <span class="m_-2002185882275311284Apple-tab-span" style="white-space:pre-wrap">        </span> - model_Conroe: Intel Conroe Family</div><div> Please specify the CPU type to be used by the VM [model_Haswell-noTSX]: </div><div> Please specify the number of virtual CPUs for the VM (Defaults to appliance OVF value): [4]: </div><div> You may specify a unicast MAC address for the VM or accept a randomly generated default [00:16:3e:5d:72:8a]: </div><div> How should the engine VM network be configured (DHCP, Static)[DHCP]? Static</div><div> Please enter the IP address to be used for the engine VM [192.168.122.2]: 192.168.122.211</div><div>[ INFO ] The engine VM will be configured to use <a href="http://192.168.122.211/24" target="_blank">192.168.122.211/24</a></div><div> Please provide a comma-separated list (max 3) of IP addresses of domain name servers for the engine VM</div><div> Engine VM DNS (leave it empty to skip) [192.168.122.1]: </div><div> Add lines for the appliance itself and for this host to /etc/hosts on the engine VM?</div><div> Note: ensuring that this host could resolve the engine VM hostname is still up to you</div><div> (Yes, No)[No] </div><div> </div><div> --== HOSTED ENGINE CONFIGURATION ==--</div><div> </div><div> Enter engine admin password: </div><div> Confirm engine admin password: </div><div> Please provide the name of the SMTP server through which we will send notifications [localhost]: </div><div> Please provide the TCP port number of the SMTP server [25]: </div><div> Please provide the email address from which notifications will be sent [root@localhost]: </div><div> Please provide a comma-separated list of email addresses which will get notifications [root@localhost]: </div><div>[ INFO ] Stage: Setup validation</div><div>[WARNING] Cannot validate host name settings, reason: resolved host does not match any of the local addresses</div><div><span style="background-color:rgb(255,255,0)">[ ERROR ] Host name is not valid: localhost.localdomain resolves to 127.0.0.1 and not all of them can be mapped to non loopback devices on this host</span></div><div><span style="background-color:rgb(255,255,0)">[ ERROR ] Failed to execute stage 'Setup validation': Host name is not valid: localhost.localdomain resolves to 127.0.0.1 and not all of them can be mapped to non loopback devices on this host</span></div><div><span style="background-color:rgb(255,255,0)">[ INFO ] Stage: Clean up</span></div><div>[ INFO ] Generating answer file '/var/lib/ovirt-hosted-engine-<wbr>setup/answers/answers-<wbr>20180404182053.conf'</div><div>[ INFO ] Stage: Pre-termination</div><div>[ INFO ] Stage: Termination</div><div>[ ERROR ] Hosted Engine deployment failed</div><div> Log file is located at /var/log/ovirt-hosted-engine-<wbr>setup/ovirt-hosted-engine-<wbr>setup-20180404181811-aq5ord.<wbr>log</div><div><br></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div>