[Info] IP management in Plesk installed inside Virtuozzo container

Refers to:

  • Plesk for Windows
  • Plesk for Linux

Created:

2016-11-16 13:09:36 UTC

Modified:

2016-12-21 20:05:04 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[Info] IP management in Plesk installed inside Virtuozzo container

Symptoms

I cannot manage IP addresses through the IP address management page at \{Server -> IP Addresses\}. The "Add New IP Address" button is grayed-out.

The new IP address can be added with the Plesk utility ipmanage :

# /usr/local/psa/bin/ipmanage --create 192.168.34.81 -type shared -mask 255.255.255.0 -interface venet0
SUCCESS: IP address '192.168.34.81' created successfully.

However, a red circle is shown in front of it:

IP Address IP Address and Subnet Mask Interface Users Hosting
192.168.34.80 255.255.255.0 venet0 8 16
192.168.34.81 255.255.255.0 venet0 0 0

Also, it does not exist on the interface:

# /sbin/ifconfig | grep inet
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
inet addr:192.168.34.80 P-t-P:192.168.34.80 Bcast:192.168.34.80 Mask:255.255.255.255

I get the "Permission denied" error when I try to delete this IP address from Plesk.

How can I resolve the issue?

Cause

Inside Virtuozzo containers, IP addresses cannot be managed through Plesk. They should be added or deleted with the utility vzctl from the Hardware Node where the Virtuozzo container is running.

To add a new IP address, log in to the Hardware Node and execute the following command:

# vzctl set CTID --ipadd 192.168.34.81 --save
Adding IP address(es) to pool: 192.168.34.81
Adding IP address(es): 192.168.34.81
Saved parameters for Container CTID

(replacing CTID with the ID of the Virtuozzo container where Plesk is installed).

Then update the Plesk database according to the existing IP addresses on the interface. Log in to the Virtuozzo container with Plesk and run the utility ifmng :

# vzctl enter CTID
entered into Container CTID
-bash-3.2# /usr/local/psa/admin/sbin/ifmng --reread
-bash-3.2#

This will write the new IP address to the Plesk database and make it visible on the \{Server -> IP Addresses\} page in Plesk. Alternatively, you may synchronize IP addresses through the control panel at \{Server -> P Addresses -> Reload IP\}.

On a Plesk installation on a Virtuozzo container, the utility /usr/local/psa/bin/ipmanage adds a new IP address to the Plesk database only. Because the new IP address does not exist on the interface, it is shown with a red mark. Use the utility ipmanage to remove the IP address:

# /usr/local/psa/bin/ipmanage --remove 192.168.34.81
SUCCESS: IP address '192.168.34.81' removed sucessfully.
#

Note: An IP address cannot be removed if it is used by any domain.

Additional information

Please refer to the article [Info] IP management in Plesk installed inside Virtuozzo container based on SuSe OS template for more details about IP management in Plesk on SuSe.

Have more questions? Submit a request
Please sign in to leave a comment.