Bobcares

Setup Virtualizor on AlmaLinux: Essential Commands

by | Sep 29, 2024

Learn how to set up Virtualizor on AlmaLinux with essential commands. Our Virtualizor Support team is here to help you with your questions and concerns.

Setup Virtualizor on AlmaLinux: Essential Commands

Virtualizor is a powerful web-based control panel for managing virtual environments like KVM, XEN, and OpenVZ.

By combining these virtualizers, Virtualizor offers a robust virtualization system. In fact, one of its standout features is the ability to limit bandwidth for each virtual server.

Furthermore, it simplifies server management by letting us create virtual servers with a single click and manage operating systems using OS templates. Let’s dive deeper into its features and the steps for installation on AlmaLinux 8.

An Overview:

Key Features of Virtualizor

Virtualizor comes packed with several features that make it a top choice for managing virtualized environments:

  • Easily configure the server where Virtualizor is installed.
  • Create and edit virtual servers seamlessly.
  • Manage IP addresses for different virtual machines.
  • Handle all our storage needs.
  • Administer users with ease.
  • Create and manage invoices for virtual servers.
  • Upload and manage ISO files to create VPS servers efficiently.

How to Install Virtualizor on AlmaLinux 8

  1. Step 1: Download and Install Virtualizor

    To get started, open the Shell and SSH into our server. Then, run the following commands:

    wget -N http://files.virtualizor.com/install.sh
    chmod 0755 install.sh
    ./install.sh email=our@email.com kernel-kvm

    We have to replace `our@email.com` with our actual admin email address.

  2. Step 2: Understanding the Installation Parameters
    • email: The admin email address for the panel.
    • kernel: Specifies KVM as the kernel.
    • noos: Use `noos=true` to avoid downloading the DomU operating system for DomU.
    • beta: Add `beta=true` to test the latest beta version of Virtualizor.
    • nested_virt: Set `nested_virt=1` to enable nested virtualization, which will install a new kernel to support it.
    • lvg (optional): If we plan to use LVM for VPS storage, specify it here.
    • interface: The default network interface to use (default is eth0).
    • license: Get your license key by submitting a support ticket.
  3. Step 3: Completing the Installation

    Once the installation is complete, reboot the system by pressing “y” when prompted.

Configuring Firewall for Virtualizor

Virtualizor operates on ports 4081 to 4085. These ports need to be opened on our server’s firewall to ensure access.

firewall-cmd --zone=public --permanent --add-port=4081-4085/tcp
firewall-cmd --zone=public --permanent --add-port=5900-6000/tcp
systemctl restart firewalld

We have to restart the firewall to apply these changes.

Accessing the Virtualizor Admin Panel

To log in to the admin panel, use one of the following URLs:

  • Secure Access: `https://Your-Server-IP:4085/`
  • Non-Secure Access: `http://Your-Server-IP:4084/`

Log in using the server’s root credentials.

Setup Virtualizor on AlmaLinux: Essential Commands

Setting Up the Network Interface

By default, Virtualizor considers the `eth0` interface. To change or add a different network interface, follow these steps:

  1. Go to the Virtualizor Admin Panel.
  2. Then, go to Configuration.
  3. Save the settings for the network interface.

Managing Network Bridge for Virtualizor

Virtualizor creates a bridge, `viifbr0`, which is used for network communication between virtual servers. Here’s how to configure it:

  1. First, backup the current network configuration:

    cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak

  2. Next, open the configuration for the bridge:

    vi /etc/sysconfig/network-scripts/ifcfg-viifbr0

    Copy the necessary details from the `ifcfg-eth0` configuration into the new bridge file, `ifcfg-viifbr0`:

    DEVICE=viifbr0
    TYPE=Bridge
    BOOTPROTO=static
    IPADDR=10.0.0.93
    NETMASK=255.255.255.0
    GATEWAY=10.0.0.1
    ONBOOT=yes
    IPV6INIT=yes
    IPV6ADDR=2607:f0d0:1002:0011:0000:0000:0000:0002
    IPV6_DEFAULTGW=2607:f0d0:1002:0011:0000:0000:0000:0001

  3. Then, modify the `ifcfg-eth0` file:

    vi /etc/sysconfig/network-scripts/ifcfg-eth0

    The result should look like this:

    DEVICE=eth0
    HWADDR=00:25:90:98:35:90
    IPV6INIT=yes
    ONBOOT=yes
    BRIDGE=viifbr0

  4. If the network interface name is `eth0`, change the route file name to match the new bridge interface:

    mv route6-eth0 route6-viifbr0

  5. Then, restart the network services to apply the changes:

    service network restart

Troubleshooting Common Virtualizor Setup Issues on AlmaLinux

  • Network Configuration Issues:

    One of the most common problems is related to network configuration, especially with bridging and firewall rules.

    If our virtual servers aren’t able to communicate with the external network, you should verify the bridge configuration and check the network interface settings.

  • Firewall Port Issues:

    Virtualizor requires specific ports (4081–4085) to be open for access to the admin panel and other services.

    If the firewall is blocking these ports, we won’t be able to access the panel, resulting in connection timeouts or permission denied errors. Make sure we have added the necessary firewall rules and restarted `firewalld`.

  • Kernel and Virtualization Issues:

    In some cases, the KVM kernel may not load properly. This can happen if the system’s BIOS settings don’t have virtualization enabled. So, ensure that Intel VT-x or AMD-V is enabled in the system’s BIOS.

  • License Key Issues:

    Without a valid license key, Virtualizor won’t function beyond the trial period. Make sure to retrieve your internal license key by opening a support ticket with Virtualizor’s team. If the license isn’t activating, check if the system’s hostname and IP address match the registered license details.

Performance Optimization Tips

  • To optimize storage performance, consider using LVM for VPS storage, as it allows for easier scalability and better performance management. We can also use high-performance SSDs or configure RAID arrays to boost disk I/O performance, particularly for high-load environments.
  • Be mindful of how we allocate resources to your virtual machines, such as CPU cores, RAM, and storage. Overcommitting resources—assigning more virtual CPUs or memory than physically available—can degrade the performance of both the host and VMs.
  • If we are running VMs that require high network throughput, optimizing network performance is crucial. By using virtio drivers for networking, you can reduce latency and increase network bandwidth for our virtual machines.
  • For systems that handle heavy workloads, it’s essential to manage CPU load efficiently. Use cpufrequtils to set the CPU governor to “performance” mode for tasks that require high processing power, ensuring that the CPU runs at full speed when needed.

    Conversely, for lower workloads, we can use “powersave” mode to reduce power consumption and heat generation.

  • Regular monitoring of Virtualizor’s performance to keep the environment healthy. Use tools like htop, iostat, and sar to monitor CPU, disk, and network utilization in real-time.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

With these steps, we can successfully install and configure Virtualizor on AlmaLinux 8. Whether managing virtual servers, storage, or networking, Virtualizor offers a powerful and flexible solution for administrators. By configuring the network bridge and opening the required firewall ports, the smooth operation of our virtualization environment is guaranteed.

In brief, our Support Experts demonstrated how to set up Virtualizor on AlmaLinux with a few key commands.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF