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:
| [Content navigation] |
| Page 1: kvm-libvirt |
Page 2nd: vm xml file |
| Page 1: create a virtual machine |
|