VM Network Connection and Use

Create and manage ZNS distributed port groups in ZSphere to provide workload networks for VMs.

Host connections, uplinks, and associations between transport zones and clusters are configured in ZNS. After preparing these network infrastructure resources, create port groups on the system-generated ZNS distributed switches in ZSphere, and then select the port groups for VM NICs.

Select a switch based on how the workload network is carried:

VLAN Distributed Switch

Used to create port groups with a standard VLAN or no VLAN tag. The workload network corresponds to the physical network configuration on the host uplinks.

Overlay Distributed Switch

Used to create Geneve port groups. If Layer 3 connectivity is required, you can select a Tier-1 gateway prepared in ZNS.

A port group corresponds to a segment in ZNS and is managed by its owning ZSphere environment. Maintain the port group's address ranges, DHCP, and DNS in ZSphere. Configure gateway routing, NAT, load balancing, and network policies in ZNS.

After the port group is ready, use the existing procedures for creating VMs and configuring virtual NICs. VMs using ZNS networks must also meet the applicable host network, NIC configuration, and migration requirements.

Create a ZNS Distributed Port Group

Select a system-generated ZNS distributed switch to create a VLAN, untagged, or Geneve port group.

Before you begin

  • You have registered the target ZSphere compute manager in ZNS, connected the workload hosts to Fabric, and associated the required transport zones with the clusters.
  • You have determined the workload network type and VLAN ID or Geneve ID to avoid conflicts with existing workload networks in the target transport zone. If IP address management is required, you have planned the address ranges, gateway, and DNS.
  • If the Geneve network needs to connect to a Tier-1 gateway, an available gateway exists in ZNS.

Procedure

  1. In ZSphere, choose Inventory > Network Resources and switch to ZNS Network.
  2. Select the target distributed switch in the resource tree and click Actions > New Distributed Port Group.

    A VLAN switch is used for standard VLAN or untagged networks. An Overlay switch is used for Geneve networks. The port group is created on the selected switch.

  3. Enter a Name and optionally a Description.
  4. Configure the workload network based on the selected switch.
    • For a VLAN switch:

      • For an untagged network, set VLAN Type to None.
      • For VLAN isolation, select Standard VLAN and enter a VLAN ID from 1 to 4094 that matches the workload VLAN allowed on the physical switch.
    • For an Overlay switch:

      • The Network Type is Geneve. Enter a Geneve ID from 1 to 16777215.
      • If Layer 3 connectivity is required, select the target Tier-1 gateway in ZNS Router. Leave it blank for Layer 2 connectivity only.
  5. Configure DHCP Service and IP Address Management.

    Both options are enabled by default and switch together. They must be enabled or disabled at the same time. When enabled, configure the port group's address range and allocation method. When disabled, the platform does not allocate addresses through this port group. Prepare static address settings for the VMs.

    After creation, you cannot change whether DHCP service and IP address management are enabled in ZSphere. Confirm the address management method before creating the port group.

  6. If IP address management is enabled, select the IP Address Type and enter the address settings.

    Select IPv4 or IPv6 for this operation. For dual-stack networking, add a network range of the other address type after creation.

    OptionDescription
    IP Allocation PolicyFor IPv4, select Random allocation or Allocate in Order. Random allocation is the default and selects an available address at random. Sequential allocation uses the lowest available address first.
    Network Range MethodSelect IP Range or CIDR. For an IP range, enter the start and end addresses and subnet information. For CIDR, enter the network address and prefix length.
    IPv4 address rangeFor an IP range, enter the Start IP, End IP, Netmask, and Gateway. The start and end addresses must be in the same subnet, and the end address must be greater than or equal to the start address. The range must not include the gateway, network address, or broadcast address. For CIDR, enter the CIDR and optionally a Gateway in the same subnet.
    IPv6 address rangeFor an IP range, enter the Start IP, End IP, a Prefix Length from 64 to 126, and the Gateway. The range must not include the gateway. For CIDR, enter the CIDR.
    IP Configuration ModeIPv6 IP ranges use Stateful-DHCP. For CIDR, you can also select Stateless-DHCP or SLAAC. Stateful-DHCP allocates addresses through DHCP. The other two modes generate addresses from router-advertised prefixes and require EUI-64 address generation in the guest operating system.
    IPv4 DHCP IP / IPv6 DHCP IPThe address used by the DHCP service. Leave it blank for system allocation, or specify an unused address in the same subnet. The address can be outside the specified start-to-end range.
  7. Enter a DNS server address if required. When IP address management is enabled, the address type must match the selected IPv4 or IPv6 type. When it is disabled, enter an IPv4 address in this field.
  8. Check the network identifier, address management method, and address range, and click OK.

Results

After the task completes, check the parent switch, VLAN ID or Geneve ID, DHCP service, and address management settings on the port group's Overview tab. The port group is available for selection when its network requirements and usage permissions are satisfied. A corresponding segment is displayed in ZNS.

Modify ZNS Distributed Port Group Configuration

Adjust an existing port group's network identifier, MTU, associated router, or DHCP address settings.

Before you begin

Perform this operation as the resource owner. Changing the VLAN ID or Geneve ID interrupts networking for VMs using the port group. Changing or removing the router association changes Layer 3 connectivity. Check workload dependencies and schedule the change in advance.

Procedure

  1. In ZSphere, choose Inventory > Network Resources, switch to ZNS Network, and select the target port group.
  2. Click Actions > Modify Configuration.
  3. Modify the configuration according to your change plan.
    OptionDescription
    VLAN IDFor a VLAN port group, enter an integer from 1 to 4094. Leave it blank for no VLAN tag. The new ID must match the workload VLAN configuration on the physical network and avoid conflicts with existing network identifiers.
    Geneve IDFor a Geneve port group, enter an integer from 1 to 16777215. The value is required and must not already be in use.
    ZNS RouterAvailable only for Geneve port groups. Select another Tier-1 gateway to change the association, or clear the selection to remove it. First make sure that the target gateway's routing and network services meet workload connectivity requirements.
    MTUEnter an integer from 68 to 9216 that meets the MTU requirements of the underlying physical links and the applicable network protocols.
    IP Allocation PolicyWhen DHCP is enabled and an IPv4 network range exists, you can switch between Random allocation and Allocate in Order. The policy applies to subsequent address allocations.
    IPv4 DHCP IP / IPv6 DHCP IPWhen DHCP is enabled and a network range of the corresponding address type exists, you can change the service address. Use an unused address in the corresponding subnet.

    After a port group is created, you cannot change whether DHCP service and IP address management are enabled in ZSphere.

  4. Check the changes and their workload impact, and click OK.

Results

After the task completes, check the updated settings on the port group's Overview tab. If the network identifier, MTU, or associated router changed, verify workload connectivity for the affected VMs.

Manage Port Group Network Ranges and DNS

Maintain IPv4 and IPv6 address ranges and DNS servers for ZNS port groups in ZSphere.

In ZSphere, choose Inventory > Network Resources, switch to ZNS Network, and select the target port group. Perform the following operations as the resource owner.

A port group's Network Range is a range of IP addresses available for allocation. It is a different object from a segment in the ZNS management interface. Adding a network range extends the address ranges or adds another address type. It does not create a new Layer 2 workload network.

Add an IPv4 or IPv6 Network Range

IP Address Management must be enabled on the port group. New address ranges must follow the workload network's subnet plan and avoid conflicts with existing ranges and addresses already configured statically.

  1. In the port group's Actions menu, select Add IPv4 Range or Add IPv6 Range.
  2. In the Add Network Range window, select the Network Range Method and enter the address settings.

    MethodSettings
    IPv4, IP RangeEnter the start IP, end IP, netmask, and gateway. The start and end addresses must be in the same subnet. The range must not include the gateway, network address, or broadcast address.
    IPv6, IP RangeEnter the start IP, end IP, a prefix length from 64 to 126, and the gateway. The range must not include the gateway. The IP configuration mode is Stateful-DHCP.
    CIDREnter a CIDR of the corresponding address type. For IPv4, optionally specify a gateway in the same subnet. For IPv6, select Stateful-DHCP, Stateless-DHCP, or SLAAC. The latter two modes require EUI-64 address generation in the guest operating system.
  3. If DHCP is enabled, check the DHCP IP. If a service IP already exists for this address type, it is retained. Otherwise, specify an unused address in the same subnet, or leave it blank for system allocation.
  4. Click OK. After the task completes, check the new range in the IPv4 or IPv6 list on the Network Range tab.

Delete a Network Range

Deletion removes the address configuration for the range. First check address usage in Port Statistics. Move NICs whose workloads must be retained to another network or adjust their addresses before deleting the range. Do not delete a network range while workloads still use its addresses.

  1. Open the Network Range tab, select an unused range in the IPv4 or IPv6 list, and click Delete.
  2. In the confirmation window, check the selected ranges. After confirming that the related workloads and NICs have been handled, enter delete and click Confirm to Delete.
  3. After the task completes, check the remaining network ranges and address usage, and verify connectivity for the workloads being retained.

Add or Delete DNS Servers

  1. Click Actions > Add DNS, select the IP Address Type, enter a DNS server address of that type, and click OK.
  2. To remove an existing server, open the DNS tab, select the target address, click Delete, and confirm after checking the selection. If workloads still depend on that server, prepare an alternative DNS configuration first.
  3. Check the final addresses on the DNS tab, and check the actual DNS settings and name resolution results in the guest operating system.

After updating port group DNS settings, VMs that obtain configuration through DHCP must renew their leases. VMs using static configuration must update their operating system settings.

Maintain ZNS Distributed Switches and Port Groups

Set sharing modes and custom attributes for network resources, modify port group names and descriptions, and delete unused port groups.

In ZSphere, choose Inventory > Network Resources, switch to ZNS Network, and select the target switch or port group. Maintain resources as the resource owner. Recipients of shared port groups cannot modify or delete them.

ZNS distributed switches are generated by the system from transport zones. You cannot create them, modify their names or descriptions, or delete them in ZSphere. You also cannot attach or detach clusters or configure uplinks here. Maintain the network coverage and host networking in ZNS Fabric.

Set the Sharing Mode

Sharing permissions are configured separately for switches and port groups. Visibility of a switch does not imply permission to use its port groups. Users who only have permission to use a port group might not be able to see its parent switch.

  1. Select the target switch or port group and click Actions > Set Sharing Mode.
  2. Select Not Share, Share Globally, or Share With Users/User Groups. For sharing with specified recipients, select the target users or user groups.
  3. Click OK and check the sharing mode in the resource information.

After the sharing mode changes, connections already using the resource are retained until the corresponding resources are released. Revoking sharing permissions does not disable existing workload connections.

Set Custom Attributes

  1. Select the target switch or port group and click Actions > Set Custom Attribute.
  2. Set attribute names and values as needed for management, and click OK.
  3. Check the results in the custom attributes section on the resource's Overview tab.

Modify a Port Group's Name and Description

  1. Select the target port group and click Actions > Edit Name and Description.
  2. Modify the name or description, click OK, and check the results in the resource tree and port group information.

Delete a Port Group

First check the VMs and workloads associated with the port group. Move connections that must be retained to another network or remove the corresponding NICs. If the port group is referenced by VM memory snapshots, handle those snapshots before deleting the port group.

  1. Select an unused port group and click Actions > Delete.
  2. Check the target name in the confirmation window.

    Warning:
    Deleting the port group removes the workload network. VMs still connected to it lose the corresponding network connections. Make sure that the workloads and NICs have been handled before proceeding.
  3. Enter delete and click Confirm to Delete. After the task completes, check the port group list and the cleanup results for the corresponding segment in ZNS.

VM Requirements and Limitations

Understand host network requirements, NIC configuration differences, and migration requirements for VMs using ZNS networks.

After selecting a ZNS port group for a VM, use the existing ZSphere procedures for creating VMs, configuring virtual NICs, and migration. The following requirements help determine whether a network can be used at the target location and which NIC settings apply.

Network Selection and Runtime Location

  • The VM must use a ZNS port group that the current account has permission to use. A port group can be shared independently without sharing its parent switch.
  • The target host must be connected to ZNS Fabric and meet the transport zone requirements for the port group.
  • For multiple NICs, the runtime location must meet the network requirements of all NICs. Before changing the runtime location, make sure that the target location can carry all networks used by the NICs.

NIC Configuration Differences

ConfigurationApplicability
SR-IOVZNS networks do not support SR-IOV NICs.
Security groupsZNS NICs cannot be associated with ZSphere security groups.
NIC QoSYou cannot configure QoS bandwidth limits for ZNS NICs in ZSphere.
DatapathIn the current version, ZSphere VMs connect to ZNS networks in kernel mode. DPDK mode is not supported. The effective Fabric Datapath on the VM hosts must be kernel.

Address Configuration and Application

  • When IP address management is enabled on a port group, address settings are constrained by its existing IPv4 and IPv6 network ranges. Specified addresses must be within the selected network's address ranges and must not conflict with other addresses.
  • When DHCP and IP address management are disabled on the port group, prepare static addresses, gateways, and DNS. Applying static settings to the VM through the platform also requires the applicable operating system and VMTools conditions to be met.
  • After an online address change, VMs that obtain configuration through DHCP must renew their leases or receive the settings through VMTools running properly. Check the actual addresses, routes, and DNS in the guest operating system.
  • IPv6 Stateless-DHCP and SLAAC require EUI-64 address generation in the guest operating system.

Parameters in System Management > System Parameters > Network Resources (Flat Network) apply only to flat networks. Maintain address ranges, DHCP, and DNS for a ZNS port group on that port group.

Change the Connected Network

An existing NIC can switch only to a port group in its original network category. A NIC connected to Flat Network cannot switch directly to a ZNS Network port group, or vice versa.

To connect to another network category, add a NIC using the target network, configure its addresses, and verify workload connectivity. Then disable or remove the old NIC as needed. Changing the network or removing the old NIC might interrupt remote access. Prepare another access method, such as the console, before proceeding.

After switching to another port group in the same network category, check the addresses, gateway, and DNS against the target network.

ZNS NICs can be removed, including the VM's last NIC. Removal while the VM is running requires hot-unplug support in the guest operating system and driver.

Migration Requirements

For Change Host or Change Host and Data Storage, the target host must meet the network requirements of all VM NICs in addition to the general compute, storage, and migration method requirements.

For ZNS NICs, the target host must be connected to Fabric, and its transport zones must be able to carry the existing port groups. For migration across clusters, the target cluster must also be associated with the required transport zones.

After migration, check the addresses and workload connectivity in the VM. To check network-side status, find the segment and VIF ports corresponding to the owning ZSphere environment in ZNS, and check their configuration status and associations.