Opennebula 5.4 Deployment Guide Release 5.4.15
Total Page:16
File Type:pdf, Size:1020Kb
OpenNebula 5.4 Deployment guide Release 5.4.15 OpenNebula Systems Jun 19, 2018 This document is being provided by OpenNebula Systems under the Creative Commons Attribution-NonCommercial- Share Alike License. THE DOCUMENT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IM- PLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE DOCUMENT. i CONTENTS 1 Cloud Design 1 1.1 Overview.................................................1 1.2 Open Cloud Architecture.........................................2 1.3 VMware Cloud Architecture.......................................7 1.4 OpenNebula Provisioning Model.................................... 13 2 OpenNebula Installation 19 2.1 Overview................................................. 19 2.2 Front-end Installation.......................................... 19 2.3 MySQL Setup.............................................. 25 3 Node Installation 27 3.1 Overview................................................. 27 3.2 KVM Node Installation......................................... 28 3.3 vCenter Node Installation........................................ 34 3.4 Verify your Installation.......................................... 42 4 Authentication Setup 50 4.1 Overview................................................. 50 4.2 SSH Authentication........................................... 51 4.3 x509 Authentication........................................... 53 4.4 LDAP Authentication.......................................... 56 5 Sunstone Setup 61 5.1 Overview................................................. 61 5.2 Sunstone Installation & Configuration.................................. 62 5.3 Sunstone Views.............................................. 70 5.4 Labels.................................................. 75 5.5 User Security and Authentication.................................... 83 5.6 Cloud Servers Authentication...................................... 88 5.7 Configuring Sunstone for Large Deployments.............................. 91 6 VMware Infrastructure Setup 97 6.1 Overview................................................. 97 6.2 vCenter Driver.............................................. 97 6.3 vCenter Datastores............................................ 121 6.4 Datastore clusters with Storage DRS.................................. 128 6.5 Tuning and Extending.......................................... 129 6.6 vCenter Networking Overview...................................... 129 6.7 Consuming existing vCenter port groups................................ 130 6.8 Creating Port Groups from OpenNebula................................. 130 ii 6.9 Network monitoring........................................... 136 7 Open Cloud Host Setup 137 7.1 Overview................................................. 137 7.2 KVM Driver............................................... 137 7.3 Monitoring................................................ 147 7.4 PCI Passthrough............................................. 150 8 Open Cloud Storage Setup 156 8.1 Overview................................................. 156 8.2 Filesystem Datastore........................................... 158 8.3 Ceph Datastore.............................................. 162 8.4 LVM Datastore.............................................. 167 8.5 Raw Device Mapping (RDM) Datastore................................. 169 8.6 iSCSI - Libvirt Datastore......................................... 171 8.7 The Kernels & Files Datastore...................................... 173 9 Open Cloud Networking Setup 175 9.1 Overview................................................. 175 9.2 Node Setup................................................ 176 9.3 Bridged Networking........................................... 177 9.4 802.1Q VLAN Networks......................................... 179 9.5 VXLAN Networks............................................ 180 9.6 Open vSwitch Networks......................................... 182 10 References 185 10.1 Overview................................................. 185 10.2 ONED Configuration........................................... 185 10.3 Logging & Debugging.......................................... 200 10.4 Onedb Tool................................................ 203 10.5 Large Deployments............................................ 207 iii CHAPTER ONE CLOUD DESIGN 1.1 Overview The first step of building a reliable, useful and successful cloud is to decide a clear design. This design needs to be aligned with the expected use of the cloud, and it needs to describe which data center components are going to be part of the cloud. This comprises i) all the infrastructure components such as networking, storage, authorization and virtualization back-ends, as well as the ii) planned dimension of the cloud (characteristics of the workload, numbers of users and so on) and the iii) provisioning workflow, ie, how end users are going to be isolated and using the cloud. In order to get the most out of a OpenNebula Cloud, we recommend that you create a plan with the features, perfor- mance, scalability, and high availability characteristics you want in your deployment. This Chapter provides informa- tion to plan an OpenNebula cloud based on KVM or vCenter. With this information, you will be able to easily architect and dimension your deployment, as well as understand the technologies involved in the management of virtualized resources and their relationship. 1.1.1 How Should I Read This Chapter This is the first Chapter to read, as it introduces the needed concepts to correctly define a cloud architecture. Within this Chapter, as first step a design of the cloud and its dimension should be drafted. For KVM clouds proceed to Open Cloud Architecture and for vCenter clouds read VMware Cloud Architecture. Then you could read the OpenNebula Provisioning Model to identify the wanted model to provision resources to end users. In a small installation with a few hosts, you can skip this provisioning model guide and use OpenNebula without giving much thought to infrastructure partitioning and provisioning. But for medium and large deployments you will probably want to provide some level of isolation and structure. Once the cloud architecture has been designed the next step would be to learn how to install the OpenNebula front-end. 1.1.2 Hypervisor Compatibility Section Compatibility Open Cloud Architecture This Section applies to KVM. VMware Cloud Architecture This Section applies to vCenter. OpenNebula Provisioning Model This Section applies to both KVM and vCenter. 1 OpenNebula 5.4 Deployment guide, Release 5.4.15 1.2 Open Cloud Architecture Enterprise cloud computing is the next step in the evolution of data center (DC) virtualization. OpenNebula is a simple but feature-rich and flexible solution to build and manage enterprise clouds and virtualized DCs, that combines existing virtualization technologies with advanced features for multi-tenancy, automatic provision and elasticity. OpenNebula follows a bottom-up approach driven by sysadmins, devops and users real needs. 1.2.1 Architectural Overview OpenNebula assumes that your physical infrastructure adopts a classical cluster-like architecture with a front-end, and a set of hosts where Virtual Machines (VM) will be executed. There is at least one physical network joining all the hosts with the front-end. A cloud architecture is defined by three components: storage, networking and virtualization. Therefore, the basic components of an OpenNebula system are: • Front-end that executes the OpenNebula services. • Hypervisor-enabled hosts that provide the resources needed by the VMs. • Datastores that hold the base images of the VMs. • Physical networks used to support basic services such as interconnection of the storage servers and OpenNebula control operations, and VLANs for the VMs. OpenNebula presents a highly modular architecture that offers broad support for commodity and enterprise-grade hypervisor, monitoring, storage, networking and user management services. This Section briefly describes the different choices that you can make for the management of the different subsystems. If your specific services are not supported we recommend to check the drivers available in the Add-on Catalog. We also provide information and support about how to develop new drivers. 1.2.2 Dimensioning the Cloud The dimension of a cloud infrastructure can be directly inferred from the expected workload in terms of VMs that the cloud infrastructure must sustain. This workload is also tricky to estimate, but this is a crucial exercise to build an efficient cloud. The main aspects to take into account at the time of dimensioning the OpenNebula cloud follows. OpenNebula front-end The minimum recommended specs are for the OpenNebula front-end are: 1.2. Open Cloud Architecture 2 OpenNebula 5.4 Deployment guide, Release 5.4.15 Resources Minimum Recommended configuration Memory 2 GB CPU 1 CPU (2 cores) Disk Size 100 GB Network 2 NICS The maximum number of servers (virtualization hosts) that can be managed by a single OpenNebula instance strongly depends on the performance and scalability of the underlying platform infrastructure, mainly the storage subsystem. The general recommendation is that no more than 500 servers managed by a single