• Posted: 22-07-2025
  • Last Updated: 10-08-2025
  • Category: VPS Guides

When managing a virtualization system with Virtualizor, encountering an issue where the IP Pool doesn't display the full list of IPs during new VPS creation is common yet confusing. This error typically occurs not due to a misconfiguration, but because of a default performance-optimizing limit set within Virtualizor.

This article will guide you on how to identify the cause and resolve the issue completely with just a few simple steps.

Nội dung chính

1. Problem Description

Have you encountered a situation where you've correctly configured an IP Pool in the Virtualizor control panel, but when you go to the "Create VPS" screen, the IP Address dropdown is empty or doesn't show all the IPs you assigned to the pool?

  • Symptom: The IP list is empty or incomplete on the VPS creation page.
  • Condition: The IP Pool is created and assigned correctly, but the number of IPs in the pool is large (typically over 250).

2. The Cause

The root of this problem isn't a misconfiguration on your part, but rather a predefined limit set in Virtualizor's source code to optimize performance. Specifically:

In the main Virtualizor configuration file located at /usr/local/virtualizor/universal.php, a variable is set with a default value of 250:

$globals['max_ips'] = 250;

This variable limits the maximum number of IPs that are loaded and displayed in the VPS creation form. The purpose is to prevent the loading of an excessively large list (thousands of IPs), which could slow down or hang the browser. When the number of IPs in your pool exceeds this value, they will not be displayed.

3. How to Fix It

To resolve this, we simply need to increase the value of the $globals['max_ips'] variable to a number higher than the total number of IPs you have. Follow these steps:

  1. SSH into your server:

    Use a terminal or Putty to SSH into your Virtualizor Master node with root privileges.

  2. Back up the configuration file:

    This is a critical step for safety. Always create a backup of the file before editing.

    cp /usr/local/virtualizor/universal.php /usr/local/virtualizor/universal.php.bak
  3. Open the file for editing:

    Use a text editor like nano or vim.

    nano /usr/local/virtualizor/universal.php
  4. Find and change the value:

    In the nano editor, press Ctrl + W to open the search prompt, then type max_ips and press Enter. You will see the line:

    $globals['max_ips'] = 250;

    Change the number 250 to a larger value.

    Which value should you choose?

    Select a number that is higher than the total number of IPs you plan to use. Safe values are typically 1024, 2048, or higher.

    For example: $globals['max_ips'] = 1024;

  5. Save and exit:

    Press Ctrl + X, then type Y and press Enter to save the changes.

4. Verification

You do not need to restart any services. Simply return to the Virtualizor admin panel in your browser and press F5 to refresh the "Create VPS" page. The IP Address dropdown menu should now display the full list of IPs.

5. Conclusion

This is a simple issue that can cause confusion for new administrators. By adjusting the $globals['max_ips'] limit, you can easily manage large IP pools in Virtualizor. Happy hosting!

If you encounter more complex issues during server operation, our Server Management service is always available to assist you.

Share:
Rating:

( Total: 2 ratings. Average 5, scale: 1 to 5 )