OpenStack Learning Notes (i)----Install virtualization Tools

Source: Internet
Author: User
Tags svm

The following command runs on the operating system Ubuntu 14.04.

In open source software, the main use is KVM and Xen. Although OpenStack supports KVM and Xen, OpenStack support for KVM is significantly better than Xen, so the virtualization tools we choose here are KVM.

Kernel-based VM KVM (kernel-based virtual machine) requires two conditions: hardware supports full virtualization and the operating system is Linux.

Libvirt is a toolset that manages a variety of different hypervisor and provides a unified API to support upper-level applications. It is a collection of software, including API libraries, background run programs (LIBVIRTD), and command-line tools (Virsh).

First we install the KVM

1. Since KVM requires the support of hardware virtualization features, the virtualization of the CPU should be turned on in the BIOS before installing KVM, with the need to turn on the VT and vt-d features.

2. Detect if the VT feature is turned on correctly:

Egrep " (VMX|SVM) " /proc/cpuinfovmx

If the output is VMX or SVM, it indicates that the CPU supports virtualization technology. The VMX indicates that the CPU is the Intel family, the INTEL-VT technology is used, and the SVM means the CPU is the AMD series with AMD-V technology.

3. To install KVM, install the following steps on Ubuntu 14.04:

sudo  Install QEMU-KVM ubuntu-vm-builder bridge-utils         //Installation QEMU-KVM

After the installation is complete, load the KVM kernel module:

modprobe KVM modprobe KVM_INTEL/KVM_AMD

Use the following command to check if the KVM module is successfully installed:

[Email protected]:~ #kvm-/dev/KVM EXISTSKVM acceleration can be used

To add the root user to the KVM group:

AddUser Root KVM

Installing Libvirt

Use the Apt-get command directly to install:

Install libvirt-bin qemu Virt-manager

After the installation is complete, you can use the following command to start LIBVIRTD:

Libvirtd-d

We can then use the Virsh List--all command to view the currently existing virtual machine or to open the virtual machine management interface directly using the Virt-manager command.

Ubuntu System Installation Vncserver:

1. First install the Vncserver:

sudo Install Vnc4server

2. After successful installation, turn on VNC service

If you want to access the root user's desktop environment with sudo vncserver, if access to the current ordinary user's environment directly vncserver can be, first boot will require a password to use when the client access, can later use vncpasswd modification.

When VNC is successful, a. VNC directory is generated in the home directory.

Since this Ubuntu system is not a desktop version of the previous installation, it is not possible to use a desktop environment such as GNOME or KDE when connecting using VNC. We can install the XFCE desktop environment.

sudo Install Xfce4

After the installation is complete, the ~/.vnc/xstartup file needs to be modified:

[Email protected]:~# vim ~/.vnc/xstartup#!/bin/SH# Uncomment the following and the lines fornormal desktop:# unset session_manager# exec/etc/x11/xinit/XINITRC [-x/etc/vnc/xstartup] && exec/etc/vnc/xstartup[-R $HOME/. Xresources] && Xrdb $HOME/. Xresourcesxsetroot-Solid Greyvncconfig-iconic &x-terminal-emulator-geometry 1600x1000+Ten+Ten-ls-title"$VNCDESKTOP Desktop"&#x-window-manager &//comment out this line and add the following sectionX-sesion-manager & Xfdesktop & Xfce4-panel &Xfce4-menu-plugin &XFSETTINGSD&XFCONFD&XFWM4&

After the modification we need to restart the Vncserver:

[Email protected]:~# vncserver-kill :1[email protected]:~# vncserver:1

OpenStack Learning Notes (i)----Install virtualization Tools

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.