Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Deploy oVirt platform to manage kvm on centos7

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Introduction to oVirt platform

OVirt is an open source distributed virtualization solution designed to manage the entire enterprise infrastructure. OVirt uses the trusted KVM hypervisor and builds on several other community projects, including libvirt,Gluster,PatternFly and Ansible.

Official website https://www.ovirt.org/

OVirt is the open source version of RHEV, the RedHat virtualization management platform. The project originated from Qumranet, whose original virtualization management software was rewritten from C # to Java after it was acquired by RedHat in 2008 and opened up for the oVirt project in 2011. In November 2011, RedHat held its first oVirt Seminar (oVirt Workshop) to announce the establishment of the oVirt community with IBM, Intel, Cisco, Canonical, NetApp and SUSE. Using oVirt to manage KVM virtual machines and networks, enterprises can quickly build a private cloud environment. From this point of view, the positioning of oVirt is somewhat similar to that of OpenStack, another well-known cloud computing project. Interestingly, however, oVirt is actually the upstream project of RedHat's enterprise virtualization solution RHEV, and the vendors who support the oVirt project are also participants in the OpenStack project.

Reasons why you need to use oVirt:

1. KVM is managed by command line or virt-manager graphics, based on stand-alone management mode.

2. Stand-alone KVM does not have advanced management features such as data center and cluster.

3. OVirt belongs to the open source community and is used free of charge. Through web management, the management interface is very friendly!

The oVirt platform consists of two parts: the oVirt-engine management side and the oVirt-node node host.

OVirt-engine belongs to the oVirt management side, which provides the completed enterprise virtualization platform management capabilities. It can run on RHEL or CentOS system and operate based on WEB browser. Its function is similar to vcenter.

OVirt-node data node side, which is used to run virtual machines, and its kernel is based on kvm. It is a minimum hypervisor operating system based on CentOS, similar to exsi.

In addition to the oVirt-node side, oVirt supports CentOS and Rhel operating systems

The main functions of oVirt are as follows

1. The management of node host node, supporting the management based on data center and cluster

2. Manage the virtual machine, and complete the creation, snapshot, deletion, template-based cloning and other common operations of the virtual machine.

3. Migrate virtual machines online and offline

4. High availability. When one node host goes down, the virtual machine is automatically turned on on another node host.

5. Performance viewing and statistics of hosts and virtual machines

6. Support mainstream storage methods such as NFS, iSCSI, FC, etc.

7. Supports multi-port network port binding

8. Provide a command line that can complete most of the functions of the graphical interface

9. Active Directory Integration

10. Provide python api interface, can be programmed with api

11. There are no authorization restrictions

The latest version of oVirt is 4.3.4.

It is said that the vrm in the virtualization of Huawei's fusionsphere6.x version is based on oVirt modification.

Install oVirt platform on centos7

Virtual nesting installation is not recommended. It is best to install it directly on physical machines. The following are recommended configurations.

First, update the system.

Sudo yum update-y

Restart takes effect after the update is completed

Confirm that the centos version is above 7.5

Then add the official oVirt repository

Sudo yum intall https://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm

Then install the ovirt-engine package and dependencies

Yum × × tall ovirt-engine

It is installed online, and the installation package is about 500m. The installation time is determined according to the network situation.

After installing the ovirt-engine package and dependencies, you must use this engine-setup command to configure oVirt. This command asks you a series of questions, and after providing the required values for all questions, apply the configuration and start the ovirt-engine service.

Run the engine-setup command to start configuring oVirt-engine

Engine-setup

Enter yes here to represent the local installation of ovirt-engine

Install the Open Virtual Network (OVN). Select Yes to install the OVN central server on the engine computer and add it to oVirt as an external network provider. The default cluster uses OVN as its default network provider, and hosts added to the default cluster are automatically configured to communicate with OVN. Default yes

Allow engine-setup to configure Image I / O Proxy (ovirt-imageio-proxy) to allow Engine to upload virtual disks to the storage domain. Default yes

Allow engine-setup to configure websocket proxy server to allow users to connect to virtual machines through noVNC or HTML 5 console, default yes

Choose whether to configure the data warehouse on the engine computer, default yes

Allows access to the serial console of the virtual machine from the command line. Default yes

Set the local domain name and enter directly.

Configure the firewall, default yes. Use the firewalld service of linux to configure the firewall. Tcp80,443,iptables is disabled by default.

Configure additional firewall programs, usually firewalld, and enter firewalld as prompted

Configure local or remote database. Local local is used by default, and postgreSQL is used for database. Enter is available.

Automatically configure the database user password, enter directly for the first time and automatically configure it according to the prompts.

Configure the local database. Enter and use the local local.

Automatically configure local database and create engine database. By default, enter enter.

Set the password for automatically created oVirt Engine administrative users

Choose whether to configure the user password as virt stand-alone or gluster cluster. The default is both. You can enter.

If the OVN provider is installed, you can choose to use the default credentials or specify alternate credentials and enter

Sets the default value for the wipe_after_delete flag, which erases the blocks of the virtual disk when the disk is deleted. I don't quite understand this. The default is no.

The configuration is that the certificate communicates securely with the host. The default is localdomain, and you can enter.

Allows engine-setup to set the login page of the engine to the default page provided by the Apache Web server, the default yes

Configure ca certificate for ssl communication. Automatically configure it by default, and press enter.

Choosing a data warehouse will keep the time for collecting data. Default is 1. I don't know what this means.

After passing the installation check, carry on the installation configuration

When you see the output success, the installation is successfully completed.

Login and use

Use the browser to log in to the ovirt-engine management side

Default is https://your-manager-fqdn/ovirt-engine,

Like https://localhost.localdomain/ovir-engine.

At present, it is found that it is impossible to log in by using the ip address. You must log in by using the specified FQDN address.

You can add an alternate domain name to log in, such as using kvm.ovirt.com. You need to add the configuration file 99-custom-sso-setup.conf under / etc/ovirt-engine/engine.conf.d/.

# vi / etc/ovirt-engine/engine.conf.d/99-custom-sso-setup.confSSO_ALTERNATE_ENGINE_FQDNS= "kvm.ovirt.com"

If you need to log in remotely, you can log in by modifying the local host file. C:\ Windows\ System32\ drivers\ etc\ hosts, modify hosts parsing kvm.ovirt.com 192.168.3.60

Then the browser enters https://kvm.ovirt.com

Make a landing

Enter the account password to log in

After logging in, it is as follows:

The vrm interface with Huawei looks like ah ha.

Add centos7 as a kvm host

After completing the ovirt-engine, we need to add the kvm host. As a kvm host, virtualization must be enabled in the host's BIOS settings.

First install and configure cockpit on the kvm host

# yum × × tall cockpit-ovirt-dashboard

Then start the cockpit.socket service

# systemctl enable cockpit.socket # systemctl start cockpit.socket

You can log in to the Cockpit user interface through https:// HostFQDNorIP:9090

Because of my limitations, ovirt-engine and ovirt-node are both physical hosts with limited performance. And this cockpit is just a host status display, so I didn't install it.

However, this cockpit can be used as a separate linux monitor program to check all the status of the linux host by using web.

After that, the host can be added directly by virt-engine, and all operations have an interface.

In the administrative portal, click Compute → hosts

Then click New

Then add the host as follows

Ignore power management and configure directly

The new host is displayed in the list of hosts with a status of Installing, and you can view the installation progress in the details pane. After a short delay, the host status changes to Up. During this period, the installer will be automatically sent to the host. Just wait patiently.

Just wait patiently.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report