


{"id":396,"date":"2024-02-06T04:34:11","date_gmt":"2024-02-06T04:34:11","guid":{"rendered":"https:\/\/oracle.human-design.jp\/en\/?p=396"},"modified":"2024-02-27T03:34:29","modified_gmt":"2024-02-27T03:34:29","slug":"20230615","status":"publish","type":"post","link":"https:\/\/oracle.human-design.jp\/en\/knowledge-base\/20230615\/","title":{"rendered":"6.Oracle Linux KVM Hard Partitioning Settings"},"content":{"rendered":"\n<p><a href=\"https:\/\/oracle.human-design.jp\/en\/knowledge-base\/20230615\/\" data-type=\"post\" data-id=\"396\">In the previous article<\/a>, we explained the &#8220;Oracle license concept&#8221; and &#8220;Partitioning Policy&#8221; for virtual server environments. You should now know that there are many things to be careful about when using Oracle products in a virtual server environment.<\/p>\n\n\n\n<p>We also explained that Oracle Linux KVM&#8217;s Hard Partitioning feature allows you to optimize the licensing cost for Oracle products. However, you can&#8217;t limit the number of licenses just by using Oracle Linux, you need to assign a specific CPU core to the virtual machine in the form of pinning.<\/p>\n\n\n\n<p>This is also written in the &#8220;<a href=\"https:\/\/www.oracle.com\/a\/ocom\/docs\/linux\/ol-kvm-hard-partitioning.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">Hard Partitioning with Oracle Linux KVM<\/a>&#8221; section introduced last time, but the reality is that it is quite difficult to actually build it.<\/p>\n\n\n\n<p>Therefore, in this article, we will focus on the points to note when configuring. However, this article is for the purpose of operation verification, so it is different from the actual operating environment. There are many things to consider, especially in the production environment, such as availability and security, but in this article, we will ignore these factors.<\/p>\n\n\n\n<p>In addition, knowledge of KVM is required to build the environment, but it is not the main issue, so we will only mention it briefly. For more information on Linux and KVM, see the Oracle Linux and Red Hat Enterprise Linux manuals at the end of the article.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Requirements for hard partitioning<\/h2>\n\n\n\n<p>After reading the whitepaper &#8220;<a href=\"https:\/\/www.oracle.com\/a\/ocom\/docs\/linux\/ol-kvm-hard-partitioning.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">Hard Partitioning with Oracle Linux KVM<\/a>&#8221; about Oracle Linux Hard Partitioning, perhaps you think that it is easy to carry out hard partitioning using the <strong>olvm-vmcontrol<\/strong> command?<\/p>\n\n\n\n<p>The reality is completely different. In addition to using Oracle Linux KVM as a hypervisor, you also need the management tool Oracle Linux Virtualization Manager. And these are quite difficult to set up. In the previous generation of virtualization products, Oracle VM Server, you could set up hard partitioning with just a small rewrite of the configuration file. The current situation is very different.<\/p>\n\n\n\n<p>Therefore, we will explain the prerequisite requirements.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Oracle Linux KVM and Oracle Linux Virtualization Manager<\/h3>\n\n\n\n<p>First, let&#8217;s review the basic components.<\/p>\n\n\n\n<p><strong>Oracle Linux KVM<\/strong><br>Oracle Linux KVM is a hypervisor that utilizes KVM built into the Oracle Linux kernel. You can use the kernel with both RHCK and UEK. As a guest OS, it supports Ubuntu, SUSE Linux, and Microsoft Windows as well as RHEL-based Linux. Note that, there is no product called Oracle Linux KVM, and it is realized by incorporating virtualization packages into Oracle Linux 7, Oracle Linux 8, and Oracle Linux 9.<\/p>\n\n\n\n<p><strong>Oracle Linux Virtualization Manager<\/strong><br>Oracle Linux Virtualization Manager (OLVM) is a virtual environment management tool equivalent to VMware&#8217;s vCenter. You can do tasks as needed for your operations, such as managing Oracle Linux KVM hosts and virtual machines. Below, it is sometimes abbreviated as OLVM.<\/p>\n\n\n\n<p>Oracle Linux Virtualization Manager is based on the open source <a href=\"https:\/\/www.ovirt.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">oVirt<\/a>, and the same oVirt-based management tools are used in Red Hat Virtualization (RHV). To be precise, the open source implementation of Red Hat Virtualization is oVirt. Each has a relationship as shown in the following table.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th class=\"has-text-align-left\" data-align=\"left\"><strong>Vendor<\/strong><\/th><th class=\"has-text-align-left\" data-align=\"left\">KVM Management Tool<\/th><th class=\"has-text-align-left\" data-align=\"left\">Infrastructure Configuration Management Tool<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\">Red Hat<\/td><td class=\"has-text-align-left\" data-align=\"left\">Red Hat Virtualization<\/td><td class=\"has-text-align-left\" data-align=\"left\">Red Hat Satellite<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">Open Source Implementation<\/td><td class=\"has-text-align-left\" data-align=\"left\">oVirt<\/td><td class=\"has-text-align-left\" data-align=\"left\">Spacewalk<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">Oracle<\/td><td class=\"has-text-align-left\" data-align=\"left\">Oracle Linux Virtualization Manager<\/td><td class=\"has-text-align-left\" data-align=\"left\">Oracle Linux Manager<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Oracle Linux Virtualization Manager is required<\/h3>\n\n\n\n<p><strong>To pin the CPU for hard partitioning, the target Oracle Linux KVM must be managed by the Oracle Linux Virtualization Manager.<\/strong><\/p>\n\n\n\n<p>This is very important. Oracle Linux Virtualization Manager is not required to manage Oracle Linux KVM. However, it is necessary for hard partitioning. The problem is that depending on whether Oracle Linux Virtualization Manager is used or not, the way it is built and operated is completely different.<\/p>\n\n\n\n<p>In Linux KVM, you can manage with the GUI tool virt-manager or the CLI virsh. You can also use Cockpit, a web-based management tool. However, if you migrate to Oracle Linux Virtualization Manager, you will not be able to use any of these tools. The base is the web-based Oracle Linux Virtualization Manager, followed by the REST interface.<\/p>\n\n\n\n<p><strong><strong>If you migrate to Oracle Linux Virtualization Manager, you will no longer be able to manage it with virt-manager or virsh.<\/strong><\/strong><\/p>\n\n\n\n<p>The following is a summary of the requirements for hard partitioning.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The Oracle Linux KVM host is managed by Oracle Linux Virtualization Manager<\/li>\n\n\n\n<li>olvm-vmcontrol is set up in Oracle Linux Virtualization Manager<\/li>\n<\/ul>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Oracle Linux Virtualization Manager Architecture<\/h2>\n\n\n\n<p>The key to using Oracle Linux Virtualization Manager is to understand the architecture. In both Oracle Linux Virtualization Manager and Red Hat Virtualization, the manual describing the architecture is written at the top of the documentation list. This section describes the main components and how to configure them.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Key components of Oracle Linux Virtualization Manager<\/h3>\n\n\n\n<p>Oracle Linux Virtualization Manager consists of two main components:<\/p>\n\n\n\n<p><strong>o-Virt Engine<\/strong><br>The main component of Oracle Linux Virtualization Manager, which provides services for GUI and REST API to manage resources. It is written in Java and runs on WildFly (formerly JBoss), a built-in Java EE container. It uses PostgreSQL for data management.<\/p>\n\n\n\n<p><strong>VDSM (Virtual Desktop Server Manager)<\/strong><br>The agent for the o-Virt Engine to be installed on the managed KVM host.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Two configuration methods<\/h3>\n\n\n\n<p>There are the following two ways to configure your system with Oracle Linux Virtualization Manager. In order to build correctly, you need to understand the characteristics of each. For details, please refer to the manual, and we will explain it briefly here.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Self-Hosted Engine<\/li>\n\n\n\n<li>Stand Alone Manager<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Self-Hosted Engine<\/h4>\n\n\n\n<p>The most common way is to run Oracle Linux Virtualization Manager on a virtual machine on an Oracle Linux KVM host. The diagram shows a two-host configuration, but a one-host configuration can be used when availability is not required.<\/p>\n\n\n\n<p><strong>Advantages<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>oVirt Engine runs on a virtual machine, so one fewer physical server is required<\/li>\n\n\n\n<li>Redundancy can easily be added to the oVirt Engine<\/li>\n<\/ul>\n\n\n\n<p><strong>Disadvantages<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The oVirt Engine runs on the KVM host, reducing the CPU and memory available to the KVM host<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"491\" src=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-01-1024x491.png\" alt=\"\" class=\"wp-image-407\" style=\"width:800px\" srcset=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-01-1024x491.png 1024w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-01-300x144.png 300w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-01-768x368.png 768w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-01-1536x736.png 1536w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-01.png 1678w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Stand Alone Manager<\/h4>\n\n\n\n<p>With this method, the oVirt Engine runs on a host other than the managed Oracle Linux KVM host. A physical server or a virtual machine that is hosted in a different virtual environment is used.<\/p>\n\n\n\n<p><strong><strong>Advantages<\/strong><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The oVirt Engine is independent of the managed host, so there is no load on the host<\/li>\n<\/ul>\n\n\n\n<p><strong><strong>Disadvantages<\/strong><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To make the oVirt Engine redundant, a cluster configuration using HA cluster software or similar is required.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"383\" src=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-02-1-1024x383.png\" alt=\"\" class=\"wp-image-565\" style=\"width:800px\" srcset=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-02-1-1024x383.png 1024w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-02-1-300x112.png 300w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-02-1-768x288.png 768w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-02-1-1536x575.png 1536w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-02-1.png 2008w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Unsupported method<\/h3>\n\n\n\n<p>Installing Oracle Linux Virtualization Manager on a managed Oracle Linux KVM host as shown below is not supported.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"449\" src=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-03-1-1024x449.png\" alt=\"\" class=\"wp-image-566\" style=\"width:800px\" srcset=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-03-1-1024x449.png 1024w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-03-1-300x132.png 300w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-03-1-768x337.png 768w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-03-1-1536x674.png 1536w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-03-1.png 1692w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Differences in terminology between Oracle and third-party manuals<\/h4>\n\n\n\n<p>When reading the Oracle Linux Virtualization Manager manual, the translation of terms and the organization of the manual are confusing. The following table compares these.<\/p>\n\n\n\n<figure class=\"wp-block-table text-left\"><table><thead><tr><th>   Source     <style>table {mso-displayed-decimal-separator:\"\\.\"; mso-displayed-thousand-separator:\"\\,\";}tr {mso-height-source:auto; mso-ruby-visibility:none;}col {mso-width-source:auto; mso-ruby-visibility:none;}br {mso-data-placement:same-cell;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:\u6e38\u30b4\u30b7\u30c3\u30af; mso-generic-font-family:auto; mso-font-charset:128; mso-number-format:General; text-align:general; vertical-align:middle; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl65 {font-family:\"Meiryo UI\"; mso-generic-font-family:auto; mso-font-charset:128;}.xl66 {font-family:\"Meiryo UI\"; mso-generic-font-family:auto; mso-font-charset:128; white-space:normal;}ruby {ruby-align:left;}rt {color:windowtext; font-size:6.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:\u6e38\u30b4\u30b7\u30c3\u30af; mso-generic-font-family:auto; mso-font-charset:128; mso-char-type:katakana; display:none;}<\/style><\/th><th>Virtual machine method on KVM<\/th><th>Hosted separately from KVM<\/th><\/tr><\/thead><tbody><tr><td>oVirt\/RHV English manual<\/td><td>Self-Hosted Engine<\/td><td>Stand Alone Manager(*1)<\/td><\/tr><tr><td>RHV Japanese manual<\/td><td>Self-Hosted Engine<\/td><td>Stand Alone Manager<\/td><\/tr><tr><td>OLVM English manual<\/td><td>Self-Hosted Engine<\/td><td>Engine(*2)<\/td><\/tr><tr><td>OLVM Japanese manual<\/td><td>Jiko Host Engine (Self-Hosted Engine)<\/td><td>Engine (*2)<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">*1 Previously, it seems that it was sometimes referred to as Stand Alone Engine instead of Stand Alone Manager.<br>*2 Stand Alone Manager is also used in a few places, but there is no description that clearly distinguishes the configurations. It is also sometimes referred to as Engine<\/figcaption><\/figure>\n\n\n\n<p>Although it is based on machine translation, the Japanese version of &#8220;Self-Hosted Engine&#8221; is not a good translation. In addition, it is confusing because there is no name that clearly indicates the &#8220;Stand Alone Manager&#8221; method in the start guide.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Planning for building Oracle Linux Virtualization Manager<\/h2>\n\n\n\n<p>To build Oracle Linux Virtualization Manager, you need to understand the Oracle Linux Virtualization Manager architecture and the system requirements.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Choosing a Self-Hosted Engine and Standalone Manager<\/h3>\n\n\n\n<p>When building Oracle Linux Virtualization Manager for the first time, we recommend the Stand Alone Manager method shown below. In the production environment, we recommend the Self-Hosted Engine method, but the Stand Alone Manager method is easier to build. When there are few servers available, please use a Self-Hosted Engine system. You will also need a DNS server that you can manage yourself.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"495\" src=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-04-1-1024x495.png\" alt=\"\" class=\"wp-image-567\" style=\"width:800px\" srcset=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-04-1-1024x495.png 1024w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-04-1-300x145.png 300w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-04-1-768x371.png 768w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-04-1-1536x742.png 1536w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-04-1-2048x989.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Oracle Linux KVM host and Oracle Linux Virtualization Manager host<\/h4>\n\n\n\n<p>This will be described as an organization of terms. The server on which Oracle Linux Virtualization Manager is installed is called the<strong> Oracle Linux Virtualization Manager host (OLVM host)<\/strong> or the <strong>engine host<\/strong>. The Oracle Linux KVM server managed by Oracle Linux Virtualization Manager is called the <strong>Oracle Linux KVM host<\/strong> or <strong>KVM host<\/strong>. In the official manual, there are places that simply refer to the <strong>Oracle Linux Virtualization Manager host<\/strong> as a host, so please judge from the context.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Can you build a validation environment with VirtualBox?<\/h4>\n\n\n\n<p>When we tried to build with VirtualBox, we were able to install Oracle Linux Virtualization Manager and add a KVM host. However, the error &#8220;host CPU type is not supported in this cluster compatibility\u201d occurred and no further operations could be performed. It may be possible with other PCs or virtual environments.<\/p>\n\n\n\n<p>In order to give it a try, perhaps you should use the following services on Oracle Cloud Infrastructure.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Oracle Linux Virtualization Manager: Compute virtual machine<\/li>\n\n\n\n<li>Oracle Linux KVM host: Compute bare metal instance<\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">System requirements<\/h3>\n\n\n\n<p>The system requirements for the Oracle Linux Virtualization Manager host and the Oracle Linux KVM host are as follows.<\/p>\n\n\n\n<p><strong>Oracle Linux Virtualization Manager host requirements<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Oracle Linux 8.5 or later for oVirt 4.4<\/li>\n\n\n\n<li>CPU:2 cores,MEM:4GB,DISK:25GB\u00a0\u00a0 (All minimum requirements)<\/li>\n<\/ul>\n\n\n\n<p><strong>Oracle Linux KVM host requirements<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Oracle Linux 7.6 or later or Oracle Linux 8.5 or later for oVirt 4.4<\/li>\n\n\n\n<li>CPU:2 cores,MEM:2GB,DISK:60GB (All minimum requirements)<\/li>\n<\/ul>\n\n\n\n<p>What is important here is that the supported OLVM host and KVM host requirements differ depending on the Oracle Linux Virtualization Manager version. Please check &#8220;Requirements and Scalability Limitations&#8221; in &#8220;Architecture and Planning&#8221; of the &#8220;<a href=\"https:\/\/docs.oracle.com\/en\/virtualization\/oracle-linux-virtualization-manager\/\" target=\"_blank\" rel=\"noreferrer noopener\">Oracle Linux Virtualization Manager Manual<\/a>&#8221; for the version to be used.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Tips for building Oracle Linux Virtualization Manager<\/h2>\n\n\n\n<p>Because of the complexity of the procedure and the difficulty of the manual, building the Oracle Linux Virtualization Manager environment is confusing even if you have some experience with Linux and KVM. In this section, we will introduce tips for building a validation environment.<\/p>\n\n\n\n<p>Also, at least for now, the <a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_virtualization\/4.4\" target=\"_blank\" rel=\"noreferrer noopener\">Red Hat Virtualization documentation<\/a> is more complete. The commands you run during installation are different, but the overall flow and limitations are the same. It is recommended to have a look through it once.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Procedure to build Oracle Linux Virtualization Manager<\/h3>\n\n\n\n<p>The following diagram shows the steps to build Oracle Linux Virtualization Manager to achieve hard partitioning. There are different procedures for Stand Alone Manager and Self-Hosted Engine.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"513\" src=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-05-1024x513.png\" alt=\"\" class=\"wp-image-418\" style=\"width:800px\" srcset=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-05-1024x513.png 1024w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-05-300x150.png 300w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-05-768x385.png 768w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-05-1536x769.png 1536w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-05-2048x1026.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Notes on building an Oracle Linux server<\/h3>\n\n\n\n<p>This section describes notes on building an Oracle Linux server before installing Oracle Linux Virtualization Manager. The Oracle Linux Virtualization Manager host is the same as the Oracle Linux KVM host.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Installation type to select<\/h4>\n\n\n\n<p>Oracle Linux is installed with &#8220;minimal installation&#8221;. However, since the commands required for operation validation may not be installed, it is better toinstall at least the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf install bind-utils nc tmux tree -y<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Other requirements<\/h4>\n\n\n\n<p>Other requirements include the following. Please note that there are some things that are not written in the manual.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It is possible to resolve the name with both forward and reverse DNS. In other words, you need another server to run DNS besides Oracle Linux Virtualization Manager or Oracle Linux host<\/li>\n\n\n\n<li>The firewall must be enabled. Opening of the required ports is automatically set by the setup tool<\/li>\n\n\n\n<li>SELinux should be enabled<\/li>\n\n\n\n<li>The locale of the Oracle Linux Virtualization Manager host must be en_US.utf8<\/li>\n<\/ol>\n\n\n\n<p>The locale of the Oracle Linux Virtualization Manager host must be en_US.utf8. If it looks like this, there is no problem.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># localectl\n   System Locale: LANG=en_US.utf8\n       VC Keymap: jp\n      X11 Layout: jp<\/code><\/pre>\n\n\n\n<p>If the locale is other than en_US.utf8, such as en_US.UTF-8, perform the following to change it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># dnf install glibc-langpack-en -y\n# localectl set-locale LANG=en_US.utf8<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Select repository to use<\/h3>\n\n\n\n<p><a href=\"https:\/\/docs.oracle.com\/en\/virtualization\/oracle-linux-virtualization-manager\/getstart\/getstarted-manager-install.html#manager-install-prepare\" target=\"_blank\" rel=\"noreferrer noopener\">The Oracle Linux Virtualization Manager Start Guide<\/a> describes the following two types of hosts as pre-installation settings.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For ULN registered hosts<\/li>\n\n\n\n<li>For Oracle Linux Yum server hosts<\/li>\n<\/ul>\n\n\n\n<p>The former is the procedure when you have signed up for Oracle Linux Premier Support and are using a ULN-registered host. The latter is a host procedure that refers to the public Yum repository (<a href=\"https:\/\/yum.oracle.com\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/yum.oracle.com<\/a>) with or without a Premier Support contract. The procedure is slightly different, so please select the appropriate one. This procedure is the same for Oracle Linux KVM hosts.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">How to add a public key when adding a KVM host<\/h3>\n\n\n\n<p>When you add a KVM host in Oracle Linux Virtualization Manager, you can choose a password method or an SSH public key method. We recommend the SSH public key method. At this time, the public key generated by the management portal will be added to the KVM host side.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mkdir -p \/root\/.ssh\n\n# vi \/root\/.ssh\/authorized_keys \u2190When adding manually\n# cat kvmhost.pub &gt;&gt; \/root\/.ssh\/authorized_keys\u2190When adding from a saved file\n\n# chmod 600 \/root\/.ssh\/authorized_keys<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Access Oracle Linux Virtualization Manager with a different FQDN<\/h3>\n\n\n\n<p>The Oracle Linux Virtualization Manager management portal is accessed with an FQDN, such as https:\/\/olvm.sample.com\/ovirt-engine. However, if you access with a different hostname for some reason, such as port forwarding, the login screen will not be displayed. At that time, define an alternate hostname on the Oracle Linux Virtualization Manager host.<\/p>\n\n\n\n<p>We will create a definition file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/etc\/ovirt-engine\/engine.conf.d\/99-custom-sso-setup.conf<\/code><\/pre>\n\n\n\n<p>The content to add is as follows. Separate multiple hosts with spaces.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SSO_ALTERNATE_ENGINE_FQDNS=\"localhost hostname1 hostname2\"<\/code><\/pre>\n\n\n\n<p>Reboot the service.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart ovirt-engine<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Can you use virsh?<\/h3>\n\n\n\n<p>We wrote that the virsh command is not available in Oracle Linux Virtualization Manager. However, read-only mode can be used. Add -r or &#8211;readonly as follows.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># virsh -r list --all\n Id Name                 State\n----------------------------------\n  0 o19v1                running\n  1 o19v2                running\n\n# virsh -r vcpuinfo o19vm1 --pretty\n VCPU:           0\n CPU:            0\n State:          running\n CPU time:       5.4s\n CPU Affinity:   0-1 (out of 12)\n\n VCPU:           1\n CPU:            1\n State:          running\n CPU time:       2.9s \n CPU Affinity:   0-1 (out of 12)<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">In case of a problem<\/h3>\n\n\n\n<p>If you can&#8217;t set it up properly, in addition to searching online, check the following information:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Oracle Linux Virtualization Manager &#8220;Events&#8221; in Admin Portal<\/li>\n\n\n\n<li>Logfile\uff1a<code>\/var\/log\/ovirt-engine\/engine.log<\/code><\/li>\n\n\n\n<li><a href=\"https:\/\/support.oracle.com\/portal\/?lang=us\" target=\"_blank\" rel=\"noreferrer noopener\">My Oracle Su<\/a><a href=\"https:\/\/support.oracle.com\/portal\/?lang=ja\" target=\"_blank\" rel=\"noreferrer noopener\">pport<\/a><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"590\" src=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-06en-1024x590.png\" alt=\"\" class=\"wp-image-421\" style=\"width:800px\" srcset=\"https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-06en-1024x590.png 1024w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-06en-300x173.png 300w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-06en-768x442.png 768w, https:\/\/oracle.human-design.jp\/en\/wp-content\/uploads\/2024\/02\/oraclecolumn06-06en.png 1314w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Once you have configured your Oracle Linux Virtualization Manager, follow the instructions in the white paper <a href=\"https:\/\/www.oracle.com\/a\/ocom\/docs\/linux\/ol-kvm-hard-partitioning.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">Hard Partitioning with Oracle Linux KVM<\/a> to configure hard partitioning.<\/p>\n\n\n\n<p>There is one last thing to keep in mind. It is the availability of a virtual machine with hard partitioning configured. For clusters configured with multiple Oracle Linux KVM hosts, virtual machines can be live migrated. However, virtual machines with fixed CPUs in hard partitioning are not eligible for live migration. If you need some level of availability, you should consider a recovery plan that also takes into account the license.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">References<\/h2>\n\n\n\n<p><strong>Oracle<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.oracle.com\/en\/virtualization\/oracle-linux-virtualization-manager\/\" target=\"_blank\" rel=\"noreferrer noopener\">Oracle Linux Virtualization Manager Documentation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.oracle.com\/a\/ocom\/docs\/linux\/ol-kvm-hard-partitioning.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">Hard Partitioning with Oracle Linux KVM<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.oracle.com\/en\/operating-systems\/oracle-linux\/8\/\" target=\"_blank\" rel=\"noreferrer noopener\">Oracle Linux 8 documentation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.oracle.com\/en\/operating-systems\/oracle-linux\/kvm-user\/\" target=\"_blank\" rel=\"noreferrer noopener\">Oracle Linux KVM User Guide<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/apexapps.oracle.com\/pls\/apex\/f?p=44785:141:107010029696701::NO:RP,141:P141_PAGE_ID,P141_SECTION_ID:551,3783\" target=\"_blank\" rel=\"noreferrer noopener\">Oracle Linux Virtualization Manager training,<\/a><\/li>\n<\/ul>\n\n\n\n<p><strong>Red Hat<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_virtualization\/4.4\" target=\"_blank\" rel=\"noreferrer noopener\">Red Hat Virtualization Manual<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/8\" target=\"_blank\" rel=\"noreferrer noopener\">Red Hat Enterprise Linux 8 documentation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/8\/html\/configuring_and_managing_virtualization\/index\" target=\"_blank\" rel=\"noreferrer noopener\">Configuring and Managing Red Hat Enterprise Linux 8 Virtualization<\/a><\/li>\n<\/ul>\n\n\n\n<p><strong>Others<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.ovirt.org\/documentation\/\" target=\"_blank\" rel=\"noreferrer noopener\">oVirt Documentation<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In the previous article, we explained the &#8220;Oracle license concept&#8221; and &#8220;Partitioning Policy&#038; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[6,7],"class_list":["post-396","post","type-post","status-publish","format-standard","hentry","category-knowledge-base","tag-kvm","tag-linux"],"_links":{"self":[{"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/posts\/396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/comments?post=396"}],"version-history":[{"count":20,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/posts\/396\/revisions"}],"predecessor-version":[{"id":570,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/posts\/396\/revisions\/570"}],"wp:attachment":[{"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/media?parent=396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/categories?post=396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oracle.human-design.jp\/en\/wp-json\/wp\/v2\/tags?post=396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}