Network adapter auto-configuration feature

8/25/2025 4:27 PM
how-to, vms

The network adapter auto-configuration feature of allows while creating VMs to disable DHCP and set network settings (the machine's IP address, Default gateway, and DNS server) automatically.

Currently, this feature is supported only when creating virtual machines from templates. When creating a VM from ISO images, this feature is not supported.

In the Igiko settings, you can specify the DNS server addresses, the Default gateway address, which will be set for all created virtual machines from templates, as well as the IP pool of addresses from which addresses for virtual machines will be taken.

The article Instruction for creating VM templates in Igiko describes how to create VM templates, and what you should pay attention to if you are using the VM network adapter auto-configuration feature.

Configuration

Configuration is performed via the appSettings section parameters in the Igiko.exe.Config file, from the folder where Igiko is installed. By default, this is C:\Program Files\Igiko

The parameters related to this feature are described below.

EnableVmNetAdapterAutoConfig - enables this feature. If false, the feature is disabled and all further parameters are ignored. If true, the feauture is enabled.

VmNetAdapterAutoConfigDefaultGateway - IPv4 Default gateway address for virtual machines

VmNetAdapterAutoConfigDnsServers - IPv4 addresses of DNS servers for virtual machines, separated by semicolons. If you plan to create virtual machines on Windows, you must specify no more than two addresses, otherwise you will not be able to create a virtual machine.

VmNetAdapterAutoConfigIpPool - subnets in CIDR format separated by semicolons, from which IP addresses will be taken. For more information, see the Address pool section.

An example of the configuration is shown below.

Note: If there is no Internet connection on the VMs you are creating, make sure that the VlanPerUser option in appSettings is set to false.

Address pool

The address pool is set in the VmNetAdapterAutoConfigIpPool parameter in appSettings.

The value of the field, separated by semicolons in the CIDR format, lists the subnets from which the IP addresses will be taken.

Example: 192.168.1.0/24;192.168.2.0/30;192.168.3.1/32

At the same time, there are the following rules: if the length of the network mask is less than 32, then the broadcast address and the network address are ignored. In this regard, it makes no sense to set the mask length to 31, since the network consists of only these two addresses. If the mask length is 32, then in fact it is a description of one specific IP address that can be allocated.

Additionally, if the Default gateway is part of one of the subnets of the address pool, it will not be issued for the VM.

The address is allocated if the VM is created from a template in Igiko. Each VM can receive only 1 address. If the addresses are uploaded, then creating virtual machines from templates becomes unavailable.

The address is released when the VM to which the address was allocated is deleted. This happens immediately if the deletion was performed through Igiko, or after a while if the VM was deleted in another way.

Email is required
Email is invalid

Tags

how-to
vms