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
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
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 , 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.
- In the port group's Actions menu, select Add IPv4 Range or Add IPv6 Range.
-
In the Add Network Range window, select the Network Range Method and enter the address settings.
Method Settings IPv4, IP Range Enter 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 Range Enter 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. CIDR Enter 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. - 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.
- 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.
- Open the Network Range tab, select an unused range in the IPv4 or IPv6 list, and click Delete.
- 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.
- 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
- Click , select the IP Address Type, enter a DNS server address of that type, and click OK.
- 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.
- 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 , 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.
- Select the target switch or port group and click .
- Select Not Share, Share Globally, or Share With Users/User Groups. For sharing with specified recipients, select the target users or user groups.
- 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
- Select the target switch or port group and click .
- Set attribute names and values as needed for management, and click OK.
- Check the results in the custom attributes section on the resource's Overview tab.
Modify a Port Group's Name and Description
- Select the target port group and click .
- 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.
- Select an unused port group and click .
-
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. - 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
| Configuration | Applicability |
|---|---|
| SR-IOV | ZNS networks do not support SR-IOV NICs. |
| Security groups | ZNS NICs cannot be associated with ZSphere security groups. |
| NIC QoS | You cannot configure QoS bandwidth limits for ZNS NICs in ZSphere. |
| Datapath | In 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 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.
