Opennebula 5.7 Deployment Guide Release 5.7.80
Total Page:16
File Type:pdf, Size:1020Kb
OpenNebula 5.7 Deployment guide Release 5.7.80 OpenNebula Systems Jan 16, 2019 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 LXD Node Installation.......................................... 35 3.4 vCenter Node Installation........................................ 37 3.5 Verify your Installation.......................................... 45 4 Authentication Setup 52 4.1 Overview................................................. 52 4.2 SSH Authentication........................................... 53 4.3 x509 Authentication........................................... 55 4.4 LDAP Authentication.......................................... 58 5 Sunstone Setup 64 5.1 Overview................................................. 64 5.2 Sunstone Installation & Configuration.................................. 65 5.3 Sunstone Views.............................................. 72 5.4 Labels.................................................. 77 5.5 User Security and Authentication.................................... 86 5.6 Cloud Servers Authentication...................................... 91 5.7 Configuring Sunstone for Large Deployments.............................. 94 6 VMware Infrastructure Setup 100 6.1 Overview................................................. 100 6.2 vCenter Driver.............................................. 100 6.3 vCenter Datastores............................................ 127 6.4 Datastore clusters with Storage DRS.................................. 134 6.5 Marketplace with vCenter Datastores.................................. 135 6.6 Tuning and Extending.......................................... 135 6.7 vCenter Networking Overview...................................... 135 ii 6.8 Consuming existing vCenter port groups................................ 136 6.9 Creating Port Groups from OpenNebula................................. 136 6.10 Network monitoring........................................... 142 7 Open Cloud Host Setup 143 7.1 Overview................................................. 143 7.2 KVM Driver............................................... 143 7.3 LXD Driver................................................ 154 7.4 Monitoring................................................ 159 7.5 PCI Passthrough............................................. 163 8 Open Cloud Storage Setup 170 8.1 Overview................................................. 170 8.2 Filesystem Datastore........................................... 172 8.3 Ceph Datastore.............................................. 177 8.4 LVM Datastore.............................................. 182 8.5 Raw Device Mapping (RDM) Datastore................................. 185 8.6 iSCSI - Libvirt Datastore......................................... 187 8.7 The Kernels & Files Datastore...................................... 189 9 Open Cloud Networking Setup 191 9.1 Overview................................................. 191 9.2 Node Setup................................................ 192 9.3 Bridged Networking........................................... 193 9.4 802.1Q VLAN Networks......................................... 195 9.5 VXLAN Networks............................................ 196 9.6 Open vSwitch Networks......................................... 198 9.7 Open vSwitch on VXLAN Networks.................................. 200 10 References 202 10.1 Overview................................................. 202 10.2 ONED Configuration........................................... 202 10.3 Logging & Debugging.......................................... 218 10.4 Onedb Tool................................................ 221 10.5 Large Deployments............................................ 225 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 infor- mation to plan an OpenNebula cloud based on KVM or LXD 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 and LXD 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 and LXD. VMware Cloud Architecture This Section applies to vCenter. OpenNebula Provisioning Model This Section applies to both KVM and vCenter. 1 OpenNebula 5.7 Deployment guide, Release 5.7.80 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.7 Deployment guide, Release 5.7.80 Resources Minimum Recommended configuration Memory 2 GB CPU 1 CPU (2 cores) Disk Size 100 GB Network