source/installguide/locale/zh_CN/LC_MESSAGES/qig.mo (25 lines of code) (raw):

���<\\]r������� H` �� =� �� $� � t& ��_������� �-����'~ �.�%�'9/"i�T��e�h�J)� �yA|A�-�H��� 1 ?�C*F$`F�!�W�cF �� p3!��![-"o�"��"D�#Q�#�C$�$�%�&�&@�&'4+'`' r'�';�';�'(#(?(O(W(`i(2�(�()E-)s)��)�*J�*[�*|U,��,�T-o;.9�.a�.�G/M�/�*1��1 B2L2�j2j3��3a(4��4C}5H�5� 6��6f>7N�7�7t8��8z'9��9vJ:��:b�;��;��<K=�^=/?D?X?h?|?��?�%@-�@��@-�A��A�B[�B C�"D��D��FcG�dH�HI I $I�1I�I�I&�I&J((J?QJ�J �J\�J K]"K��KJLQMmM]tM*�M*�M (N2NEN�UN�N��O �P�P�P0�P�P��P�Q�Q�Q:�Q"RR<R>�RQ�R? S]`S?�Se�S�dT/U<OU^�U��U �V��V1W"8W'wW�W �W �W#�W$�W X!X<XPX XXceX,�X�X Y?YYYplYh�YAFZ �Zz�[i\�x\fP]-�]M�]k3^�^t�_p#`�`�`��`ra}�a? b�Mb;c(Mc�vcE dNPd@�d�dv�d`veW�e�/fQ�f�gY�g�h��h2i:ref:`conf-hostname`:ref:`conf-network`:ref:`conf-ntp`:ref:`conf-selinux`:ref:`qigconf-pkg-repo`A /24 network with the gateway being at xxx.xxx.xxx.1, no DHCP should be on this network and none of the computers running CloudStack will have a dynamic address. Again this is done for the sake of simplicity.A zone is the largest organization entity in CloudStack - and we'll be creating one, this should be the screen that you see in front of you now. And for us there are 5 pieces of information that we need.After you've modified that file, go ahead and restart the network using:As we noted before we will be using security groups to provide isolation and by default that implies that we'll be using a flat layer-2 network. It also means that the simplicity of our setup means that we can use the quick installer.At least one computer which supports hardware virtualization.At the moment, for CloudStack to work properly SELinux must be set to permissive. We want to both configure this for future boots and modify it in the current running system.At this point it will likely return:Before you begin , you need to prepare the environment before you install CloudStack. We will go over the steps to prepare now.By default the network will not come up on your hardware and you will need to configure it to work in your environment. Since we specified that there will be no DHCP server in this environment we will be manually configuring your network interface. We will assume, for the purposes of this exercise, that eth0 is the only network interface that will be connected and used.CentOS 6.x releases use NFSv4 by default. NFSv4 requires that domain setting matches on all clients. In our case, the domain is cloud.priv, so ensure that the domain setting in /etc/idmapd.conf is uncommented and set as follows: Domain = cloud.privCloudStack distinguishes between internal and public DNS. Internal DNS is assumed to be capable of resolving internal-only hostnames, such as your NFS server’s DNS name. Public DNS is provided to the guest VMs to resolve public IP addresses. You can enter the same DNS server for both types, but if you do so, you must make sure that both internal and public IP addresses can route to the DNS server. In our specific case we will not use any names for resources internally, and we have indeed them set to look to the same external resource so as to not add a namerserver setup to our list of requirements.CloudStack requires that the hostname be properly set. If you used the default options in the installation, then your hostname is currently set to localhost.localdomain. To test this we will run:CloudStack uses a number of system VMs to provide functionality for accessing the console of virtual machines, providing various networking services, and managing various aspects of storage. This step will acquire those system images ready for deployment when we bootstrap your cloud.CloudStack uses libvirt for managing virtual machines. Therefore it is vital that libvirt is configured correctly. Libvirt is a dependency of cloud-agent and should already be installed.ClusterConfigurationConfiguring the CloudStack Package RepositoryConfiguring the networkConnecting via the console you should login as root. Check the file /etc/sysconfig/network-scripts/ifcfg-eth0, it will look like this by default:Database Installation and ConfigurationEnvironmentGateway - We'll use 172.16.10.1 as our gatewayGuest gateway - We'll use 172.16.10.1Guest netmask - We'll use 255.255.255.0Guest start/end IP - We'll use 172.16.10.30-172.16.10.200High level overview of the processHostnameHostname - we'll use the IP address 172.16.10.2 since we didn't set up a DNS server.Hypervisor - Choose KVMIf this is a new zone, you'll be prompted for secondary storage information - populate it as follows:In order to have live migration working libvirt has to listen for unsecured TCP connections. We also need to turn off libvirts attempt to use Multicast DNS advertising. Both of these settings are in /etc/libvirt/libvirtd.confInfrastructure-as-a-Service (IaaS) clouds can be a complex thing to build, and by definition they have a plethora of options, which often lead to confusion for even experienced admins who are newcomers to building cloud platforms. The goal for this runbook is to provide a straightforward set of instructions to get you up and running with CloudStack with a minimum amount of trouble.Install by running the following command:InstallationInstallation of the KVM agent is trivial with just a single command, but afterwards we'll need to configure a few things.Internal DNS1 - we will also set this to '8.8.8.8' for our cloud.Internal DNS2 - we will also set this to '8.8.4.4' for our cloud.KVM ConfigurationKVM Setup and InstallationKVM configuration completeKVM configuration is relatively simple at only a single item. We need to edit the QEMU VNC configuration. This is done by editing /etc/libvirt/qemu.conf and ensuring the following line is present and uncommented.KVM is the hypervisor we'll be using - we will recover the initial setup which has already been done on the hypervisor host and cover installation of the agent software, you can use the same steps to add additional KVM nodes to your CloudStack environment.KVM, or Kernel-based Virtual Machine is a virtualization technology for the Linux kernel. KVM supports native virtualization atop processors with hardware virtualization extensions.Libvirt ConfigurationManagement Server InstallationNFSNFS server - We'll use the IP address 172.16.10.2NTPNTP configuration is a necessity for keeping all of the clocks in your cloud servers in sync. However, NTP is not installed by default. So we'll install and and configure NTP at this stage. Installation is accomplished as follows:Name - We'll use 'Primary1'Name - We'll use Cluster1Name - We'll use Pod1 for our cloud.Name - we will set this to the ever-descriptive 'Zone1' for our cloud.Netmask - We'll use 255.255.255.0Now recheck with the hostname --fqdn command and ensure that it returns a FQDN responseNow that MySQL is properly configured we can start it and configure it to start on boot as follows:Now that the database has been created, we can take the final step in setting up the management server by issuing the following command:Now that we have the configuration files properly set up, we need to run a few commands to start up the network:Now that we've added a Zone, the next step that comes up is a prompt for information regading a pod. Which is looking for several items.Now that we've added a Zone, we need only add a few more items for configuring the cluster.Now we need to configure the firewall to permit incoming NFS connections. Edit the file /etc/sysconfig/iptablesNow we need to download the system VM template and deploy that to the share we just mounted. The management server includes a script to properly manipulate the system VMs images.Now you can restart the iptables service with the following command:Now you'll need uncomment the configuration values in the file /etc/sysconfig/nfsNow, click Launch and your cloud should begin setup - it may take several minutes depending on your internet connection speed for setup to finalize.Once this installation is complete, you'll want to connect to your freshly installed machine via SSH as the root user. Note that you should not allow root logins in a production environment, so be sure to turn off remote logins once you have finished the installation and configuration.Operating SystemOur configuration is going to use NFS for both primary and secondary storage. We are going to go ahead and setup two NFS shares for those purposes. We'll start out by installing nfs-utils.OverviewPassword - enter the operating system password for the root userPath - We'll use /secondaryPath - Well define /primary as the path we are usingPod ConfigurationPrerequisitesPrimary StoragePublic DNS 1 - we will set this to '8.8.8.8' for our cloud.Public DNS 2 - we will set this to '8.8.4.4' for our cloud.QEMU ConfigurationQuick Installation Guide for CentOSRestart libvirtSELinuxSecondary StorageSecurity Groups act as distributed firewalls that control access to a group of virtual machines.Server - We'll be using the IP address 172.16.10.2Set the following paramaters:Setting up a ZoneStart/end reserved system IPs - we will use 172.16.10.10-172.16.10.20System Template SetupThat concludes our installation and configuration of KVM, and we'll now move to using the CloudStack UI for the actual configuration of our cloud.That concludes our setup of the management server. We still need to configure CloudStack, but we will do that after we get our hypervisor set up.That's it, you are done with installation of your Apache CloudStack cloud.The Apache CloudStack official releases are source code. As such there are no 'official' binaries available. The full installation guide describes how to take the source release and generate RPMs and and yum repository. This guide attempts to keep things as simple as possible, and thus we are using one of the community-provided yum repositories.The `CentOS 6.4 x86_64 minimal install CD <http://mirrors.kernel.org/centos/6.4/isos/x86_64/CentOS-6.4-x86_64-minimal.iso>`_The actual default configuration is fine for our purposes, so we merely need to enable it and set it to start on boot as follows:This runbook will focus on building a CloudStack cloud using KVM with CentOS 6.4 with NFS storage on a flat layer-2 network utilizing layer-3 network isolation (aka Security Groups), and doing it all on a single piece of hardware.To add the CloudStack repository, create /etc/yum.repos.d/cloudstack.repo and insert the following information.To complete this runbook you'll need the following items:To configure SELinux to be permissive in the running system we need to run the following command:To ensure that it remains in that state we need to configure the file /etc/selinux/config to reflect the permissive state, as shown in this example:To get access to CloudStack's web interface, merely point your browser to http://172.16.10.2:8080/client The default username is 'admin', and the default password is 'password'. You should see a splash screen that allows you to choose several options for setting up CloudStack. You should choose the Continue with Basic Setup option.To rectify this situation - we'll set the hostname by editing the /etc/hosts file so that it follows a similar format to this example:Turning on "listen_tcp" in libvirtd.conf is not enough, we have to change the parameters as well we also need to modify /etc/sysconfig/libvirtd:UI AccessUncomment the following line:Unfortunately, this configuration will not permit you to connect to the network, and is also unsuitable for our purposes with CloudStack. We want to configure that file so that it specifies the IP address, netmask, etc., as shown in the following example:Username - we'll use 'root'Using the CentOS 6.4 x86_64 minimal install ISO, you'll need to install CentOS on your hardware. The defaults will generally be acceptable for this installation.We are now going to install the management server. We do that by executing the following command:We explicitly are using the management server as a compute node as well, which means that we have already performed many of the prerequisite steps when setting up the management server, but we will list them here for clarity. Those steps are:We have two different parts of KVM to configure, libvirt, and QEMU.We need to configure the machine to use a CloudStack package repository.We now need to configure NFS to serve up two different shares. This is handled comparatively easily in the /etc/exports file. You should ensure that it has the following content:We now need to configure the nfs service to start on boot and actually start it on the host by executing the following commands:We'll start with installing MySQL and configuring some options to ensure it runs well with CloudStack.We're going to install the CloudStack management server and surrounding tools.What exactly are we building?When this process is finished, you should see a message like "CloudStack has successfully initialized the database."With MySQL now installed we need to make a few configuration changes to /etc/my.cnf. Specifically we need to add the following options to the [mysqld] section:With the application itself installed we can now setup the database, we'll do that with the following command and options:With your cluster now setup - you should be prompted for primary storage information. Choose NFS as the storage type and then enter the following values in the fields:You should be prompted to add the first host to your cluster at this point. Only a few bits of information are needed.You should not use the Hardware Address (aka the MAC address) from our example for your configuration. It is network interface specific, so you should keep the address already provided in the HWADDR directive.You should now see a prompt requiring you to change the password for the admin user. Please do so.You shouldn't need to do that for the management server, of course, but any additional hosts will need for you to complete the above steps.You will note that we specified two directories that don't exist (yet) on the system. We'll go ahead and create those directories and set permissions appropriately on them with the following commands:vnc_listen=0.0.0.0Project-Id-Version: Apache CloudStack Installation RTD Report-Msgid-Bugs-To: POT-Creation-Date: 2014-06-30 11:42+0200 PO-Revision-Date: 2014-06-30 10:25+0000 Last-Translator: FULL NAME <EMAIL@ADDRESS> Language-Team: Chinese (China) (http://www.transifex.com/projects/p/apache-cloudstack-installation-rtd/language/zh_CN/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Language: zh_CN Plural-Forms: nplurals=1; plural=0; :ref:`conf-hostname`:ref:`conf-network`:ref:`conf-ntp`:ref:`conf-selinux`:ref:`qigconf-pkg-repo`一个C类(/24)网络,网关为 xxx.xxx.xxx.1,网络中不能存在DHCP服务器,所有运行Cloudstack的主机需使用静态IP地址。区域是Cloudstack中最大的组织单位,下面将要讲述如何创建,此时屏幕中显示的是区域添加页面,这里需要您提供5部分信。更改配置文件后,重启网络服务:如上文所述,该手册所描述的环境将使用安全组提供网络隔离,这意味着您的安装环境仅需要一个扁平的二层网络,同样意味着较为简单的配置和快速的安装。至少一台支持硬件虚拟化的主机。当前的CloudStack需要将SELinux设置为permissive才能正常工作,您需要改变当前配置,同时将该配置持久化,使其在主机重启后仍然生效。在此处将返回:首先,需要先准备要Cloudstack的安装环境,以下将详细描述准备步骤。默认情况下新安装的机器并未启用网络,您需要根据实际环境进行配置。由于网络中不存在DHCP服务器,您需要手工配置网络接口。为了实现快速简化安装的目标,这里假定主机上只有eth0一个网络接口。CentOS 6.x 版本默认使用NFSv4,NFSv4要求所有客户端的域设置匹配,这里以设置cloud.priv为例,请确保文件/etc/idmapd.conf中的域设置没有被注释掉,并设置为以下内容:CloudStack分为内部和公共DNS。内部DNS只负责解析内部主机名,比如NFS服务器的DNS名称。公共DNS为虚拟机提供公共IP地址解析。你可以指定同一个DNS服务器,但如果这样做,你必须确保内部和公共IP地址都能路由到该DNS服务器。在我们的案例中对内部资源不使用DNS名称,因此这里将其设置为与外部DNS一致用以简化安装,从而不必为此再安装一台DNS服务器。Cloudstack要求正确设置主机名,如果安装时您接受了默认选项,主机名为localhost.localdomain,输入如下命令可以进行验证CloudStack通过一系列系统虚拟机提供功能,如访问虚拟机控制台,如提供各类网络服务,以及管理辅助存储的中的各类资源。该步骤会获取系统虚拟机模板,用于云平台引导后系统虚拟机的部署。CloudStack使用libvirt管理虚拟机。因此正确的配置libvirt至关重要。Libvirt属于cloudstack-agent的依赖组件,应提前安装好。群集配置配置ClouStack软件库网络配置使用root用户登录本地控制台。检查文件 /etc/sysconfig/network-scripts/ifcfg-eth0,默认情况,其内容如下所示:数据库安装和配置环境网关 - 使用172.16.10.1作为网关来宾网络网关 - 使用172.16.10.1来宾网络掩码 - 使用255.255.255.0来宾网络 起始/结束IP - 使用172.16.10.30-172.16.10.200整体过程概述主机名主机名 - 由于没有设置DNS服务器,所以这里输入主机IP地址 172.16.10.2。Hypervisor - 选择KVM如果添加的是一个新的区域,您需提供辅助存储相关信息 - 如下所示:为了实现动态迁移,libvirt需要监听使用非加密的TCP连接。还需要关闭libvirts尝试使用组播DNS进行广播。这些都是在 /etc/libvirt/libvirtd.conf文件中进行配置。构建基础架构即服务(IaaS)云是一个很复杂的工作,它定义了过多的选项,甚至新接触云平台的管理员都很容易混乱。此篇操作手册的目的就是为减少安装CloudStack时所发生的问题并提供最直接的帮助。运行如下命令安装:安装安装KVM代理仅仅需要一条简单的命令,但之后我们需要进行一些配置。内部DNS 1 - 我们同样输入8.8.8.8。内部DNS 2 - 我们同样输入8.8.4.4。配置KVMKVM配置和安装KVM配置完成KVM的配置项相对简单,仅需配置一项。编辑QEMU VNC配置文件/etc/libvirt/qemu.conf并取消如下行的注释。本文档使用KVM作为hypervisor,下文将回顾最如何配置hypervisor主机,其中大部分配置工作已在配置管理节点时完成;接下来描述如何安装agent。您可以应用相同的步骤添加额外的KVM节点到CloudStack环境中。KVM或Kernel-based Virtual Machine是一种基于LInux内核的虚拟化技术。KVM支持本地虚拟化,主机的CPU处理器需支持硬件虚拟化扩展。配置Libvirt管理服务器安装NFSNFS服务器 - 使用的IP地址为 172.16.10.2NTP为了同步云平台中主机的时间,需要配置NTP,但NTP默认没有安装。因此需要先安装NTP,然后进行配置。通过以下命令进行安装:名称 - 使用 'Primary1'群集名称 - 使用Cluster1提供点名称 - 使用Pod1名称 - 提供描述性的名称,这里以"Zone1"为例子网掩码 - 使用255.255.255.0通过hostname --fqdn命令重新检查主机名,并确认返回了正确的FQDN正确配置MySQL后,启动它并配置为开机自启动:数据库创建后,最后一步是配置管理服务器,执行如下命令:配置文件准备完毕后,需要运行命令启动网络。到这里我们已经添加了一个区域,下一步会显示添加提供点所需信息:添加区域后,仅需再为配置群集提供如下信息。接下来还需配置防火墙策略,允许NFS客户端访问。编辑文件/etc/sysconfig/iptables然后需要下载系统虚拟机模板,并把这些模板部署于刚才创建的辅助存储中;管理服务器包含一个脚本可以正确的操作这些系统虚拟机模板:通过以下命令重新启动iptables服务:在/etc/sysconfig/nfs文件中取消如下选项的注释:现在,点击启动开始配置云-完成安装所需的时间取决于你的网络速度。当安装完成后,需要以root身份通过SSH连接新安装的主机,注意不要以root账户登录生产环境,请在完成安装和配置后关闭远程登录。操作系统本文档将配置的环境使用NFS做为主存储和辅助存储,需配置两个NFS共享目录,在此之前需先安装nfs-utils:概述密码 - 输入root用户的密码路径 - 输入 /secondary 路径 - 使用之前定义的 /primary配置提供点先决条件主存储公共DNS1 - 我们输入8.8.8.8。公共DNS 2 - 我们输入8.8.4.4。配置QEMU基于CentOS的快速安装指南重启libvirt服务SELinux辅助存储安全组起到类似分布式防火墙的作用,它可以对一组虚拟机进行访问控制。服务器 - 使用的IP地址为 172.16.10.2设置下列参数:配置区域系统预留 起始/结束 IP - 使用172.16.10.10-172.16.10.20上传系统模板以上内容是针对KVM的安装和配置,下面将介绍如何使用CloudStack用户界面配置云平台。以上是管理服务器的安装和配置过程;在配置CloudStack之前,仍需配置hypervisor。到这里,你的Apache CloudStack云就已经安装完成了。Apache CloudStack官方发布源代码。因此没有可用的“官方”安装文件。完整的安装指南介绍了如何获取源代码,以及制作RPM包和yum软件库。本指南尽可能简化这些操作,所以直接使用社区提供的yum软件库。`"CentOS 6.4 x86_64 minimal install CD" <http://mirrors.kernel.org/centos/6.4/isos/x86_64/CentOS-6.4-x86_64-minimal.iso>`_实际上默认配置项即可满足的需求,仅需启用NTP并设置为开机启动,如下所示:该操作手册将重点介绍如何搭建Cloudstack云平台: 使用CentOS 6.4作为KVM和NFS存储主机,部署于扁平二层网络并使用三层网络隔离(安全组), 所有资源集中于一台物理主机添加CloudStack软件仓库,创建/etc/yum.repos.d/cloudstack.repo文件,并添加如下信息。完成此操作手册你需要如下条件:在系统运行状态下将SELinux配置为permissive需执行如下命令:为确保其持久生效需更改配置文件/etc/selinux/config,设置为permissive,如下例所示:要访问CloudStack的WEB界面,仅需在浏览器访问 http://172.16.10.2:8080/client ,使用默认用户'admin'和密码'password'来登录。第一次登录可以看到欢迎界面,提供两个选项设置CloudStack。请选择继续执行基本配置安装。为了纠正这个问题,需设置主机名,通过编辑/etc/hosts 文件,将其更改为类似如下内容:仅仅在libvirtd.conf中启用"listen_tcp"还不够,我们还必须修改/etc/sysconfig/libvirtd中的参数:访问用户界面取消如下行的注释:但是根据以上配置您无法连接到网络,对于Cloudstack也同样不适合;您需修改配置文件,指定IP地址,网络掩码等信息,如下例所示:用户名 - 我们使用root使用 CentOS 6.4 x86_64 minimal install 镜像,在物理主机上安装CentOS,安装过程中接受使用默认选项。现在将要开始安装管理服务器。执行以下命令:本文档描述的环境使用管理服务器同时作为计算节点,这意味着很多先决步骤已经在搭建管理服务器时完成;但为了清晰起见,仍然列出相关步骤:KVM中我们有两部分需要进行配置, libvirt和QEMU.配置主机使用CloudStack软件库。接下来需配置NFS提供两个不同的挂载点。通过编辑/etc/exports文件即可简单实现。确保这个文件中包含下面内容:最后需要配置NFS服务为开机自启动,执行如下命令:首先安装MySQL,并对它进行配置,以确保CloudStack运行正常。接下来进行CloudStack管理节点和相关工具的安装。我们真正要构建什么?当该过程结束后,您应该可以看到类似信息:"CloudStack has successfully initialized the database."。MySQL安装完成后,需更改其配置文件/etc/my.cnf。在[mysqld]下添加下列参数:在程序执行完毕后,需初始化数据库,通过如下命令和选项完成:在配置群集时,按提示输入主存储的信息。选择NFS作为存储类型,并在如下区域中输入相应的值:此时向导会提示您为集群添加第一台主机,需提供如下信息:注意,不要在你的配置中使用示例中的Hardware地址(也叫MAC地址)。该地址为网络接口所特有的,请保留你配置文件中已经提供的HWADDR字段。此时您会看到提示,要求为admin用户更改密码,请更新密码后继续。你不需要在管理节点上执行这些操作,当然,如果您需要添加额外的主机以上步骤仍然需要执行。注意配置文件中指定了系统中两个并不存在的目录,下面需要创建这些目录并设置合适的权限,对应的命令如下所示:vnc_listen=0.0.0.0