Introduction to open-source virtualization management platform Ovirt and Setup of configuration Environment

Source: Internet
Author: User
Tags certificate fingerprint jboss fully qualified domain name ovirt dell r610

1. Introduction to Ovirt

What is Ovirt?

Ovirt is an open-source virtualization management platform and an open-source version of redhat virtualization management platform rev.

What is the Ovirt architecture?

Ovirt consists of two parts,

The client ovirt-node is similar to vmware esxi and is customized by fedaro 16. You can also install the vdsm service on linux to obtain an ovirt client.

Management end overt-engine is similar to vmware vcenter, but is based on Web pages.

What can Ovirt do and cannot do?

Existing Ovirt functions:

1. Management of host nodes supports data center-based and cluster-based management. A unique feature is the management of ilo idarc and other hardware management cards;

2. Manage virtual machines to create, snapshot, delete, and clone virtual machines based on templates;

3. Migration, online and offline migration of virtual machines;

4. High Availability: when one host machine goes down, the VM is automatically enabled on another host machine;

5. View and collect statistics on the Performance of Host machines and virtual machines;

6. Support for nfs, iscsi, fc, and other storage methods;

7. Support multi-port network port binding;

8. Provides a command line interface to complete most functions of the graphic interface;

9. Integrate the Active Directory;

10. Provides python api interfaces and supports api programming;

11. No authorization restrictions;

Compared with vmware, there are currently no features:

1. Stability is currently poor, and frequent crashes and connection problems occur;

2. Poor ease of use and unfriendly design;

3. There is no fine-tuned cpu memory limit function;

4. No FT (Fault Tolerance) function;

5. The host machine and virtual machine performance display and statistics functions are simple, far from being enriched by vmware;

6. Distributed switches are not supported;

2. Build an Ovirt test environment

Test environment:

Hardware environment

Ovirt Node 1 Dell r610

CPU E5645 2 (2.4G 6-core)

48 gb memory

Hard Disk 300 GB * 2 raid 1

Ovirt Node 2 HP ready G7

CPU E5620 2 (2.4G 4-core)

8 GB memory

Hard drive 146 GB * 4 raid 10

Ovirt engine vmwarevm

2 CPUs 2.4 GB

4 GB memory

Hard Disk 255 GB

Software Environment

Ovirt Node 1 install f16 to update the latest package, and then install the vdsm package

Ovirt Node 2 install ovirt-node-image 2.2.2 customized by f16

Ovirt engine install f16 to update the latest package, and then install ovirt engine package

Ovirt Configuration

Note:Because the ovirt program uses the Global domain name FQDN, you should ensure that the machine name of each test machine can be resolved, You need to configure dns, or ensure that the content of the/etc/hosts file is consistent.

1 ovirt-engineInstall

1) Upgrade the system to the latest version.

Yum-y update

2) download the yum configuration file of ovirt

Wget http://ovirt.org/releases/stable/ovirt-engine.repo-O/etc/yum. repos. d/ow.engine. repo
 
3) if the classpathx-jaf component is installed, delete it because it conflicts with the jboss used by ovirt. yum remove classpathx-jaf

 

4) use the yum command to install ovirt-engine

Yum install overt-engine

5) through the engine-setup configuration, a wizard will be started and operated as prompted

Engine-setup

[Root @ ovirt yum. repos. d] # engine-setup

Welcome to oVirt Engine setup utility

HTTP Port [8080]:

HTTPS Port [8443]:

Host fully qualified domain name, note that this name shoshould be fully resolvable [ovirt. engine]:

Ovirt. engine did not resolve into an IP address

User input failed validation, do you still wish to use it? (Yes | no): yes

Password for Administrator (admin @ internal ):

Confirm password:

Database password (required for secure authentication with the locally created d atabase ):

Confirm password:

Organization Name for the Certificate: ovirttest

The default storage type you will be using ['nfs '| 'fc' | 'iscsi '] [NFS]:

Shocould the installer configure NFS share on this server to be used as an ISO Dom ain? ['Yes' | 'no'] [yes]:

Mount point path:/nfsios

Display name for the ISO Domain: iso

Firewall ports need to be opened.

You can let the installer configure iptables automatically overriding the curren t configuration. The old configuration will be backed up.

Alternately you can configure the firewall later using an example iptables file found under/usr/share/ovirt-engine/conf/iptables. example

Configure iptables? ['Yes' | 'no']: yes

OVirt Engine will be installed using the following configuration:

========================================================== ======================================

Http-port: 8080

Https-port: 8443

Host-fqdn: ovirt. engine

Auth-pass :********

Db-pass :********

Org-name: o1_test

Default-dc-type: NFS

Nfs-mp:/nfsios

Iso-domain-name: iso

Override-iptables: yes

Proceed with the configuration listed above? (Yes | no): yes

Installing:

Caching ing oVirt-engine... [DONE]

Creating CA... [DONE]

Editing JBoss Configuration... [DONE]

Setting Database Security... [DONE]

Creating Database... [DONE]

Updating the Default Data Center Storage Type... [DONE]

Editing oVirt Engine Configuration... [DONE]

Locking ing the Default ISO Domain... [DONE]

Refreshing ing Firewall (iptables)... [DONE]

Starting JBoss Service... [DONE]

***** Installation completed successfully ******

(Please allow oVirt Engine a few moments to start up .....)

Additional information:

* There is less than 4 GB available free memory on the Host.

It is recommended to have at least 4 GB available memory to run the rev Manage r.

* SSL Certificate fingerprint: 0F: C8: 10: 80: CC: D6: 09: 51: B7: 85: 62: 50: 60: 46: 61: B5: 22: 7D: 17: ED

* SSH Public key fingerprint: 57: 5b: 03: c4: e8: cd: 48: b4: 2f: 72: 16: 83: 16: fa: 79: ad

* A default ISO share has been created on this host.

If IP based access restrictions are required, please edit/nfsios entry in/e tc/exports

* The firewall has been updated, the old iptables configuration file was saved to/usr/share/ovirt-engine/conf/iptables. backup.102859-02162012_26054

* The installation log file is available at:/var/log/ovirt-engine/engine-setup _ 2012_02_16_10_26_24.log

* Please use the user "admin" and password specified in order to login into oVi rt Engine

* To configure additional users, first configure authentication domains using t he 'Engine-manage-domain' utility

* To access oVirt Engine please go to the following URL: http://ovirt.engine: 80 80

[Root @ ovirt yum. repos. d] #

6) install spice

Yum install spice *-y

After the installation is complete, enter http: // ip: 8080 in the browser to access ovirt-engine.
 
2. Install ovirt-node
 
Download the iso file for ovirt-node-image from the http://ovirt.org/releases/stable/binary/ovirt-node-image-2.2.2-2.2.fc16.iso and burn the disc to start the installation.

 

Press ENTER

 

 

 

After the installation is complete, the interface is as follows:

Set Network

Enable ssh

Enter the ip address and administrator password of the engine server, and add ovirt-node to the engine.

 

Sometimes the following situations may occur after the restart, and it will start up normally after about 10 minutes.

 

3 ovirt-vdsmIn f16OnInstall

1) install f16 and upgrade it to the latest version,

Yum-y update

2) install kvm libvirt and other virtualization components, and edit a bridge for ovirt management.

Vim/etc/sysconfig/network-scripts/ifcfg-o1_mgmt:

DEVICE = ow.mgmt

TYPE = Bridge

ONBOOT = yes

DELAY = 0

BOOTPROTO = static

IPADDR = 192.168.1.110

NETMASK = 255.255.255.0

GATEWAY = 192.168.1.1

Vim/etc/sysconfig/network-scripts/ifcfg-em1:

DEVICE = em1

ONBOOT = yes

BRIDGE = ow.mgmt

3) Stop the Network Management Service

Systemctl stop NetworkManager. service

Systemctl disable NetworkManager. service

4) download the ovirt yum configuration file and install the vdsmd service.

Wget http://www.ovirt.org/releases/nightly/fedora/16/ovirt-engine.repo-P/etc/yum. repos. d/

Yum install-y vdsm-cli

5) Add the installed nodes to the engine.

 

4. Create a virtual machine

Click New Server to create a VM

5. Storage Management

In the Storage menu, click New Domain to add a New restaurant.

Support adding nfs iscsi fc storage mode

After adding a disk, you can add a disk to the VM.

6. Network Management

In the host menu, click host> logical network to configure the network of the host.

Click the physical Nic to configure the Logical Network,

After that, you can configure the Virtual Machine network in the virtual machine.

After creating a virtual machine, adding a network, and storing the device, you can install it like a normal machine.

7 High Availability

Set high availability and run virtual machines on any host

Enable High Availability

Enable the Virtual Machine and continuously ping

Turn off the host of the VM

We can see that the VM is restarted again on another host.

8. Online migration

Migration is simple. You can click the migration menu to complete the migration.

9. Use of command lines

1) download and install the corresponding components

Http://www.ovirt.org/releases/nightly/fedora/16/ovirt-engine-sdk-1.5-1.fc16.noarch.rpm

Http://www.ovirt.org/releases/nightly/fedora/16/ovirt-engine-cli-2.0-1.fc16.noarch.rpm2)

Start the command line and use the command ovirt-shell

 

From xiaoli110's blog

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.