When a virtual machine (VM) is created, VMmanager allocates to it an IP address from a specified pool. You can assign additional IP addresses to VMs or delete existing ones. To manage IP addresses, enter Virtual machines → select VMs → IP addresses.
You can configure IP addresses to be checked before the platform allocates them to virtual machines (VMs). If the IP address fails verification, VMmanager will not assign it to the VM. For example, you can prevent the issuance of IP addresses assigned to any devices on the network. For more information, see How do I set up an IP address check before issuing?
Adding an IPv4 address
You can choose the type for adding an IPv4 address to a VM. The file to which the network configuration will be written depends on the selected type:
|Type name||Path to configuration files||Used for|
Debian-based operating systems — AlmaLinux, Astra Linux, Debian, and Ubuntu
|FreeBSD-based operating systems|
|redhat-based||/etc/sysconfig/network-scripts/ifcfg-<interface>||RHEL-based operating systems — CentOS, Oracle Linux, Rocky Linux|
|none||The configuration is not added to the VM|
To add IPv4 addresses:
- If necessary, change the IP address add type. By default, VMmanager automatically selects the type that corresponds to the operating system.
- Press Add an IP address.
- Select the Pool from which IP addresses will be allocated, or click Assign IP to enter a specific address.
- Select the required Number of IPv4 addresses.
- Press Add.
To delete an IP address, press Delete → .
To prevent the platform from rebooting the VM when adding or removing an IP address, the following conditions must be met:
- the cluster node has AlmaLinux 8 OS installed and uses KVM virtualization;
- the VM is using the "none" IP adding type or the QEMU Guest Agent is running. Read more in How to check and restore QEMU Guest Agent?
If these conditions are not met, the platform will reboot the VM to change the configuration.
Adding an IPv6 address
To add an IPv6 address:
- Go to the IPv6 tab.
- Press Enable IPv6.
- Select IPv6 pool.
- Select Subnet prefix from /32 to /125.
- Press Enable IPv6.
The platform will allocate a subnet of IPv6 addresses for the VM. The first address from the subnet will be automatically assigned to the VM interface. Network settings will need to be added to the VM manually. Read more in Adding an IPv6 address to the server.
To disable IPv6 addressing, press Network parameters → Disable → Disable IPv6.
Read more about IPv6 in Managing IPv6.
PTR records for IPv6 addresses
PTR records are needed so that the DNS server can determine the domain name of a VM by its IP address. These records are used for some Internet services (e.g., sending email).
The main VM domain is automatically linked to the first two IPv6 addresses from the allocated subnet. For example, subnet 2a01:230:2:3::8/125 is allocated to cosmos-diamond.example.com VM. The platform will automatically create PTR records linking the domain cosmos-diamond.example.com to the IP addresses 2a01:230:2:3::8 and 2a01:230:2:3::9.
To manage PTR records, configure integration with PowerDNS and enter Virtual machines → select the VM → IP addresses → IPv6.
To create an additional PTR record for a VM:
- Press Add a PTR-record.
- Enter the IPv6 address and the Domain it should correspond to.
- Press Add.
To change the record settings, press .
To delete the record, press .