Opennebula 5.6 Deployment Guide Release 5.6.1
Total Page:16
File Type:pdf, Size:1020Kb
OpenNebula 5.6 Deployment guide Release 5.6.1 OpenNebula Systems Sep 20, 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 62 5.1 Overview................................................. 62 5.2 Sunstone Installation & Configuration.................................. 63 5.3 Sunstone Views.............................................. 70 5.4 Labels.................................................. 75 5.5 User Security and Authentication.................................... 84 5.6 Cloud Servers Authentication...................................... 89 5.7 Configuring Sunstone for Large Deployments.............................. 92 6 VMware Infrastructure Setup 98 6.1 Overview................................................. 98 6.2 vCenter Driver.............................................. 98 6.3 vCenter Datastores............................................ 125 6.4 Datastore clusters with Storage DRS.................................. 132 6.5 Marketplace with vCenter Datastores.................................. 133 6.6 Tuning and Extending.......................................... 133 6.7 vCenter Networking Overview...................................... 133 6.8 Consuming existing vCenter port groups................................ 134 ii 6.9 Creating Port Groups from OpenNebula................................. 134 6.10 Network monitoring........................................... 140 7 Open Cloud Host Setup 141 7.1 Overview................................................. 141 7.2 KVM Driver............................................... 141 7.3 Monitoring................................................ 152 7.4 PCI Passthrough............................................. 156 8 Open Cloud Storage Setup 163 8.1 Overview................................................. 163 8.2 Filesystem Datastore........................................... 165 8.3 Ceph Datastore.............................................. 170 8.4 LVM Datastore.............................................. 175 8.5 Raw Device Mapping (RDM) Datastore................................. 178 8.6 iSCSI - Libvirt Datastore......................................... 180 8.7 The Kernels & Files Datastore...................................... 182 9 Open Cloud Networking Setup 184 9.1 Overview................................................. 184 9.2 Node Setup................................................ 185 9.3 Bridged Networking........................................... 186 9.4 802.1Q VLAN Networks......................................... 188 9.5 VXLAN Networks............................................ 189 9.6 Open vSwitch Networks......................................... 191 9.7 Open vSwitch on VXLAN Networks.................................. 193 10 References 195 10.1 Overview................................................. 195 10.2 ONED Configuration........................................... 195 10.3 Logging & Debugging.......................................... 211 10.4 Onedb Tool................................................ 214 10.5 Large Deployments............................................ 219 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.6 Deployment guide, Release 5.6.1 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.6 Deployment guide, Release 5.6.1 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