OpenNebula 4.12 Quickstart CentOS 7 and KVM

Similar documents
OpenNebula 4.10 Quickstart CentOS 6 and KVM

OpenNebula 4.8 Quickstart CentOS 6 and Xen

OpenNebula 4.4 Quickstart CentOS 6 and KVM. OpenNebula Project

OpenNebula 4.12 Quickstart Ubuntu and KVM

OpenNebula 4.4 Quickstart Ubuntu and KVM. OpenNebula Project

OpenNebula 4.6 Quickstart CentOS 6 and ESX 5.x

Installing and Basic Usage

OpenNebula 4.4 Quickstart CentOS 6 and ESX 5.x. OpenNebula Project

OpenNebula 4.8 Design and Installation Guide

Quick Start Guide. Neverfail HybriStor v2.3 on VMware Appliance

OpenNebula 5.2 Deployment guide

Redhat OpenStack 5.0 and PLUMgrid OpenStack Networking Suite 2.0 Installation Hands-on lab guide

Using CFEngine with Open Nebula A CFEngine Special Topics Handbook

Overview Demo Claudia OpenNebula

Blueprints. Quick Start Guide for installing and running KVM

Ixia Developer KVM over CentOS deployment and configuration steps:

opennebula and cloud architecture

Configure Windows VM to CGM-SRV Module on CGR1xxx

Quick Note 52. Connecting to Digi Remote Manager Through Web Proxy. Digi Product Management February 2017

INSTALLATION RUNBOOK FOR Triliodata + TrilioVault

Upgrade Guide. This document details the upgrade process for customers moving from the full version of OnApp Cloud v2.3.1 to v2.3.2.

Deployment Guide for Nuage Networks VSP

Deployment Guide for Nuage Networks VSP

NSX-T Data Center Installation Guide. VMware NSX-T Data Center 2.3

NSX-T Installation Guide. VMware NSX-T 2.1

Newsreader virtual machines Technical Report NWR

OpenNebula on VMware: Cloud Reference Architecture

LIP for Windows Server Infrastructure Automation Via Ansible Devops Tool

Cloud environment with CentOS, OpenNebula and KVM

OpenNebula 4.6 Administration Guide

Precursor Steps & Storage Node

vonecloud Documentation

Sophos XG Firewall Virtual Appliance - KVM. Document Date: January Version: AHM Page 1 of 19

Open Cloud Reference Architecture

CloudPlatform. Trial Installation Guide

Plexxi HCN Plexxi Connect Installation, Upgrade and Administration Guide Release 3.0.0

pulsarvmlite v Installation and Usage

DC/OS on Google Compute Engine

Configure HOSTNAME by adding the hostname to the file /etc/sysconfig/network. Do the same to all the all nodes.

Cymmetria MazeRunner INSTALLATION GUIDE

CloudPlatform (powered by Apache CloudStack) Version Installation Guide

KVM Virtualization With Enomalism 2 On An Ubuntu 8.10 Server

5/19/11. Introduction. Private cloud Xen, KVM and VMware. Hybrid cloud (cloudbursting) Amazon EC2 other providers through Deltacloud

Integration of Oracle VM 3 in Enterprise Manager 12c

Configure HOSTNAME by adding the hostname to the file /etc/sysconfig/network. Do the same to all the other 3(4) nodes.

Getting to Know Apache CloudStack

If you had a freshly generated image from an LCI instructor, make sure to set the hostnames again:

NSX-T Installation Guide. VMware NSX-T 1.1

UCS Director 5.4 Windows/Linux CSV Workflow Deployment

OpenNebula 5.4 Advanced Components Guide

User Workspace Management

Migrating VMs from VMware vsphere to Oracle Private Cloud Appliance O R A C L E W H I T E P A P E R O C T O B E R

Configure Sensu and other Actions to Register Clients

CloudStack Installation Documentation

TimeIPS Server. IPS256T Virtual Machine. Installation Guide

Computing Services. Charles (Cal) Loomis & Mohammed Airaj LAL, Univ. Paris-Sud, CNRS/IN2P October 2013

Eucalyptus Installation Guide

HOW TO SECURELY CONFIGURE A LINUX HOST TO RUN CONTAINERS

Linux Administration

F5 BIG-IQ Centralized Management and Linux Xen Project: Setup. Version 5.0

Installing and Upgrading Cisco Network Registrar Virtual Appliance

NOCTION. Intelligent Routing Platform Lite Self-Deployment Guide. Intelligent Routing Platform. Lite (free version)

Red Hat Enterprise Linux Atomic Host 7 Getting Started with Cockpit

Citrix CloudPlatform (powered by Apache CloudStack) Version 4.3 Release Notes. Revised April 9, :00 pm IST

Cloud Computing. Luigi Santangelo Department of Computer Engineering University of Pavia

CommandCenter Secure Gateway

NSFOCUS WAF (VM) User Guide

kernels-in-kernels kernels within kernels by Lee Elston Version 1.0 c CC-BY SA4

Topics. 1. Basic Concepts. 2. Connectivity. 3. Configuration files. 4. IP-Binding. 5. Bonding 6. VLANS. 7. Some commands. 8.

Installing Cisco MSE in a VMware Virtual Machine

Citrix CloudPlatform (powered by Apache CloudStack) Version 4.5 Getting Started Guide

FORTINET DOCUMENT LIBRARY FORTINET VIDEO GUIDE FORTINET BLOG CUSTOMER SERVICE & SUPPORT FORTIGATE COOKBOOK FORTINET TRAINING SERVICES

High-performance computing on Microsoft Azure: GlusterFS

VIRTUAL GPU LICENSE SERVER VERSION , , AND 5.1.0

BIG-IP Virtual Edition and Linux KVM: Setup. Version 12.1

Installation Prerequisites

OpenNebula 5.2 Operation Guide

Deploying Cisco UCS Central

Deploying the Cisco ASA 1000V

Installation Prerequisites

The Balabit s Privileged Session Management 5 F5 Azure Reference Guide

Step by Step Single KVM/Virtual Ubuntu Server 14.04

PacketFence ZEN Administration Guide. for version 4.0.6

Blockchain on Kubernetes

CommandCenter Secure Gateway

Installation. Power on and initial setup. Before You Begin. Procedure

IBM Security Guardium Cloud Deployment Guide IBM SoftLayer

OnCommand Unified Manager 9.5 Installation Guide

RHOSP 12 Director Installation on MaxCore TM Platform

Citrix CloudPlatform (powered by Apache CloudStack) Version Patch D Release Notes. Revised July 02, :15 pm Pacific

Table of Contents. Table of Contents License server installation guide - Linux. Download SCL

VPN Solutions for Zerto Virtual Replication to Azure. IPSec Configuration Guide

FileCruiser VM Quick Configuration Guide For Trial Version V1.0

AOS-W Virtual Appliance

Red Hat Enterprise Linux 7 Getting Started with Cockpit

CA Agile Central Installation Guide On-Premises release

NSX-T Upgrade Guide NSX-T 1.1

VM Service. A Benchmark suite for cloud environment USER S MANUAL

Installation and Cluster Deployment Guide for KVM

Red Hat System Administration I - RH124

Transcription:

OpenNebula 4.12 Quickstart CentOS 7 and KVM Release 4.12.1 OpenNebula Project April 08, 2015

CONTENTS 1 Package Layout 3 2 Step 1. Installation in the Frontend 5 2.1 1.1. Install the repo............................................ 5 2.2 1.2. Install the required packages.................................... 5 2.3 1.3. Configure and Start the services................................... 6 2.4 1.4. Configure NFS............................................ 6 2.5 1.5. Configure SSH Public Key..................................... 6 3 Step 2. Installation in the Nodes 7 3.1 2.1. Install the repo............................................ 7 3.2 2.2. Install the required packages.................................... 7 3.3 2.3. Configure the Network....................................... 7 3.4 2.4. Configure NFS............................................ 8 4 Step 3. Basic Usage 9 4.1 3.1. Adding a Host............................................ 9 4.2 3.2. Adding virtual resources...................................... 10 4.3 3.3. Running a Virtual Machine..................................... 11 5 Further information 13 i

ii

OpenNebula 4.12 Quickstart CentOS 7 and KVM, Release 4.12.1 The purpose of this guide is to provide users with step by step guide to install OpenNebula using CentOS 7 as the operating system and KVM as the hypervisor. After following this guide, users will have a working OpenNebula with graphical interface (Sunstone), at least one hypervisor (host) and a running virtual machines. This is useful at the time of setting up pilot clouds, to quickly test new features and as base deployment to build a large infrastructure. Throughout the installation there are two separate roles: Frontend and Nodes. The Frontend server will execute the OpenNebula services, and the Nodes will be used to execute virtual machines. Please not that it is possible to follow this guide with just one host combining both the Frontend and Nodes roles in a single server. However it is recommended execute virtual machines in hosts with virtualization extensions. To test if your host supports virtualization extensions, please run: grep -E 'svm vmx' /proc/cpuinfo If you don t get any output you probably don t have virtualization extensions supported/enabled in your server. CONTENTS 1

OpenNebula 4.12 Quickstart CentOS 7 and KVM, Release 4.12.1 2 CONTENTS

CHAPTER ONE PACKAGE LAYOUT opennebula-server: OpenNebula Daemons opennebula: OpenNebula CLI commands opennebula-sunstone: OpenNebula s web GUI opennebula-java: OpenNebula Java API opennebula-node-kvm: Installs dependencies required by OpenNebula in the nodes opennebula-gate: Send information from Virtual Machines to OpenNebula opennebula-flow: Manage OpenNebula Services opennebula-context: Package for OpenNebula Guests Additionally opennebula-common and opennebula-ruby exist but they re intended to be used as dependencies. Warning: In order to avoid problems, we recommend to disable SELinux in all the nodes, Frontend and Nodes. # vi /etc/sysconfig/selinux... SELINUX=disabled... # setenforce 0 # getenforce Permissive Warning: Some commands may fail depending on your iptables/firewalld configuration. Disable the firewalls entirely for testing just to rule it out. 3

OpenNebula 4.12 Quickstart CentOS 7 and KVM, Release 4.12.1 4 Chapter 1. Package Layout

CHAPTER TWO STEP 1. INSTALLATION IN THE FRONTEND Note: Commands prefixed by # are meant to be run as root. Commands prefixed by $ must be run as oneadmin. 2.1 1.1. Install the repo Enable the EPEL repo: # yum install epel-release Add the OpenNebula repository: # cat << EOT > /etc/yum.repos.d/opennebula.repo [opennebula] name=opennebula baseurl=http://downloads.opennebula.org/repo/4.12/centos/7/x86_64/ enabled=1 gpgcheck=0 EOT 2.2 1.2. Install the required packages A complete install of OpenNebula will have at least both opennebula-server and opennebula-sunstone package: # yum install opennebula-server opennebula-sunstone Now run install_gems to install all the gem dependencies. Choose the CentOS/RedHat if prompted: # /usr/share/one/install_gems lsb_release command not found. If you are using a RedHat based distribution install redhat-lsb Select your distribution or press enter to continue without installing dependencies. 0. Ubuntu/Debian 1. CentOS/RedHat 5

OpenNebula 4.12 Quickstart CentOS 7 and KVM, Release 4.12.1 2.3 1.3. Configure and Start the services There are two main processes that must be started, the main OpenNebula daemon: oned, and the graphical user interface: sunstone. Sunstone listens only in the loopback interface by default for security reasons. To change it edit /etc/one/sunstone-server.conf and change :host: 127.0.0.1 to :host: 0.0.0.0. Now we can start the services: # systemctl enable opennebula # systemctl start opennebula # systemctl enable opennebula-sunstone # systemctl start opennebula-sunstone 2.4 1.4. Configure NFS Note: Skip this section if you are using a single server for both the frontend and worker node roles. Export /var/lib/one/ from the frontend to the worker nodes. To do so add the following to the /etc/exports file in the frontend: /var/lib/one/ *(rw,sync,no_subtree_check,root_squash) Refresh the NFS exports by doing: # systemctl restart nfs.service 2.5 1.5. Configure SSH Public Key OpenNebula will need to SSH passwordlessly from any node (including the frontend) to any other node. Add the following snippet to ~/.ssh/config as oneadmin so it doesn t prompt to add the keys to the known_hosts file: # su - oneadmin $ cat << EOT > ~/.ssh/config Host * StrictHostKeyChecking no UserKnownHostsFile /dev/null EOT $ chmod 600 ~/.ssh/config 6 Chapter 2. Step 1. Installation in the Frontend

CHAPTER THREE STEP 2. INSTALLATION IN THE NODES 3.1 2.1. Install the repo Add the OpenNebula repository: # cat << EOT > /etc/yum.repos.d/opennebula.repo [opennebula] name=opennebula baseurl=http://downloads.opennebula.org/repo/4.12/centos/7/x86_64/ enabled=1 gpgcheck=0 EOT 3.2 2.2. Install the required packages # yum install opennebula-node-kvm Start the required services: # systemctl enable messagebus.service # systemctl start messagebus.service # systemctl enable libvirtd.service # systemctl start libvirtd.service # systemctl enable nfs.service # systemctl start nfs.service 3.3 2.3. Configure the Network Warning: Backup all the files that are modified in this section before making changes to them. You will need to have your main interface connected to a bridge. We will do the following example with ens3 but the name of the interface may vary. An OpenNebula requirements is that the name of the bridge should be the same in all nodes. To do so, substitute /etc/sysconfig/network-scripts/ifcfg-ens3 with: DEVICE=ens3 BOOTPROTO=none NM_CONTROLLED=no 7

OpenNebula 4.12 Quickstart CentOS 7 and KVM, Release 4.12.1 ONBOOT=yes TYPE=Ethernet BRIDGE=br0 And add a new /etc/sysconfig/network-scripts/ifcfg-br0 file. If you were using DHCP for your ens3 interface, use this template: DEVICE=br0 TYPE=Bridge ONBOOT=yes BOOTPROTO=dhcp NM_CONTROLLED=no If you were using a static IP address use this other template: DEVICE=br0 TYPE=Bridge IPADDR=<YOUR_IPADDRESS> NETMASK=<YOUR_NETMASK> ONBOOT=yes BOOTPROTO=static NM_CONTROLLED=no After these changes, restart the network: # systemctl restart network.service 3.4 2.4. Configure NFS Note: Skip this section if you are using a single server for both the frontend and worker node roles. Mount the datastores export. Add the following to your /etc/fstab: 192.168.1.1:/var/lib/one/ /var/lib/one/ nfs soft,intr,rsize=8192,wsize=8192,noauto Note: Replace 192.168.1.1 with the IP of the frontend. Mount the NFS share: # mount /var/lib/one/ If the above command fails or hangs, it could be a firewall issue. 8 Chapter 3. Step 2. Installation in the Nodes

CHAPTER FOUR STEP 3. BASIC USAGE Note: All the operations in this section can be done using Sunstone instead of the command line. Point your browser to: http://frontend:9869. The default password for the oneadmin user can be found in ~/.one/one_auth which is randomly generated on every installation. To interact with OpenNebula, you have to do it from the oneadmin account in the frontend. We will assume all the following commands are performed from that account. To login as oneadmin execute su - oneadmin. 4.1 3.1. Adding a Host To start running VMs, you should first register a worker node for OpenNebula. Issue this command for each one of your nodes. Replace localhost with your node s hostname. 9

OpenNebula 4.12 Quickstart CentOS 7 and KVM, Release 4.12.1 $ onehost create localhost -i kvm -v kvm -n dummy Run onehost list until it s set to on. If it fails you probably have something wrong in your ssh configuration. Take a look at /var/log/one/oned.log. 4.2 3.2. Adding virtual resources Once it s working you need to create a network, an image and a virtual machine template. To create networks, we need to create first a network template file mynetwork.one that contains: NAME = "private" BRIDGE = br0 AR = [ TYPE = IP4, IP = 192.168.0.100, SIZE = 3 ] Note: Replace the address range with free IPs in your host s network. You can add more than one address range. Now we can move ahead and create the resources in OpenNebula: $ onevnet create mynetwork.one $ oneimage create --name "CentOS-7-one-4.8" \ --path http://marketplace.c12g.com/appliance/53e7bf928fb81d6a69000002/download \ --driver qcow2 \ -d default $ onetemplate create --name "CentOS-7" \ --cpu 1 --vcpu 1 --memory 512 --arch x86_64 \ --disk "CentOS-7-one-4.8" \ --nic "private" \ --vnc --ssh --net_context Note: If oneimage create complains because there s not enough space available in the datastore, you can disable the datastore capacity check in OpenNebula: /etc/one/oned.conf:datastore_capacity_check = "no". You need to restart OpenNebula after changing this. You will need to wait until the image is ready to be used. Monitor its state by running oneimage list. In order to dynamically add ssh keys to Virtual Machines we must add our ssh key to the user template, by editing the user template: $ EDITOR=vi oneuser update oneadmin Add a new line like the following to the template: SSH_PUBLIC_KEY="ssh-dss AAAAB3NzaC1kc3MAAACBANBWTQmm4Gt..." Substitute the value above with the output of cat ~/.ssh/id_dsa.pub. 10 Chapter 4. Step 3. Basic Usage

OpenNebula 4.12 Quickstart CentOS 7 and KVM, Release 4.12.1 4.3 3.3. Running a Virtual Machine To run a Virtual Machine, you will need to instantiate a template: $ onetemplate instantiate "CentOS-7" Execute onevm list and watch the virtual machine going from PENDING to PROLOG to RUNNING. If the vm fails, check the reason in the log: /var/log/one/<vm_id>/vm.log. Note: If it stays too long in pend status you can check why by doing: onevm show <vmid> grep ^SCHED_MESSAGE. If it reports that no datastores have enough capacity for the VM, you can force a manual deployment by running: onevm deploy <vmid> <hostid>. 4.3. 3.3. Running a Virtual Machine 11

OpenNebula 4.12 Quickstart CentOS 7 and KVM, Release 4.12.1 12 Chapter 4. Step 3. Basic Usage

CHAPTER FIVE FURTHER INFORMATION Planning the Installation Installing the Software FAQs. Good for troubleshooting Main Documentation 13