Install and deploy OpenStack in Ubuntu 16.04

Source: Internet
Author: User

Install and deploy OpenStack in Ubuntu 16.04

Preparations:

Operating System: Ubuntu 16.04

Install KVM

The short name of Kernel-based Virtual Machine is an open-source system virtualization module. It has been integrated into major Linux Release versions since Linux 2.6.20. It uses the Linux Scheduler for management, so compared with Xen, its core source code is few. KVM has become one of the mainstream VMM in the academic field. KVM virtualization requires hardware support (such as Intel VT or amd v ). Is hardware-based full virtualization. In the early days, Xen was based on Para-Virtualization simulated by software. The new version was based on full Virtualization supported by hardware. However, Xen has its own process scheduler and storage management module, so the code is huge. The widely spread commercial system Virtualization software VMware ESX series is a software-simulated Full-Virtualization.

The following is a collection of Openstack related knowledge for you to see if you like it:

Install and deploy Openstack on Ubuntu 12.10

Ubuntu 12.04 OpenStack Swift single-node deployment Manual

OpenStack cloud computing quick start tutorial

Deploying OpenStack for enterprises: what should be done and what should not be done

CentOS 6.5 x64bit quick OpenStack Installation

Steps for building OpenStack F Based on Ubuntu Server 12.04

1. Check whether the CPU supports virtualization.

Root @ cy-computer :~ # Grep-E "vmx | svm"/proc/cpuinfo

The output is as follows:

Flags: fpu vme de pse tsc msr pae mce cx8 apic sep limit pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm limit pebs bts rep_good nopl limit kernel kernel pni kernel monitor kernel vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt kernel xsave avx kernel ida arat epb pln pts dtherm kernel vnmi flexpriority ept vpid xsaveopt

2. Install kvm

Root @ cy-computer :~ # Apt-get install qemu-kvm ubuntu-vm-builder bridge-utils

3. Enable the kvm Module

Root @ cy-computer :~ # Modprobe kvm
Root @ cy-computer :~ # Modprobe kvm_intel
Root @ cy-computer :~ # Modprobe kvm_amd

4. Check whether kvm is successfully installed:

Root @ cy-computer :~ # Kvm-OK
INFO:/dev/kvm exists
KVM acceleration can be used

5. Add the root user to the kvm group.

Root @ cy-computer :~ # Adduser root kvm
Adding user 'root' to group 'kvm '...
Adding user root to group kvm
Done.

6. Install libvirt

It is designed to provide a set of convenient and reliable programming interfaces for various virtualization tools, including Xen, and supports binding with various mainstream development languages such as C, C ++, Ruby, Python, and Java. Currently, the default virtualization management tools virt-manager (graphical) and virt-install (command line mode) on mainstream Linux platforms are developed based on libvirt. The Libvirt library is a Linux system that implements the Linux virtualization function.®API, which supports a variety of Virtual Machine Monitoring programs, including Xen and KVM, as well as QEMU and some virtual products for other operating systems. Libvirt comparison and use case model principles:

Root @ cy-computer :~ # Apt-get install libvirt-bin qemu virt-manager

7. Check whether libvirt is successfully installed.

Root @ cy-computer :~ # Service libvirt-bin start # start libvirt
Root @ cy-computer :~ # Virsh list -- all # The following output indicates normal
Id Name State
----------------------------------------------------


8. Management Interface

Root @ cy-computer :~ # Virt-manager

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • 3
  • Next Page
[Content navigation]
Page 1: kvm-libvirt Page 2nd: vm xml file
Page 1: create a virtual machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.