Configuring VN-Link Related Policies
This chapter includes the following sections:
- Configuring Dynamic vNIC Connection Policies
- Configuring the VM Lifecycle Policy
- Viewing Dynamic vNIC Properties in a VM
Configuring Dynamic vNIC Connection Policies
Dynamic vNIC Connection Policy
This policy determines how the VN-link connectivity between VMs and dynamic vNICs is configured. This policy is required for Cisco UCS instances that include servers with virtual interface card adapters on which you have installed VMs and configured dynamic vNICs.
Note |
If you Vmotion a server that is configured with dynamic vNICs, the dynamic interface used by the vNICs fails and Cisco UCS Manager raises a fault to notify you of that failure. When the server comes back up, Cisco UCS Manager assigns new dynamic vNICs to the server. If you are monitoring traffic on the dynamic vNIC, you must reconfigure the monitoring source. |
Each Dynamic vNIC connection policy must include an adapter policy and designate the number of vNICs that can be configured for any server associated with a service profile that includes the policy.
Configuring a Dynamic vNIC Connection Policy
The following example creates a dynamic vNIC connection policy named MyDynVnicConnPolicy that uses the Ethernet adapter policy named EthPolicy19 for 12 dynamic vNICs and commits the transaction:
UCS-A# scope org / UCS-A /org # create dynamic-vnic-conn-policy MyDynVnicConnPolicy UCS-A /org/dynamic-vnic-conn-policy* # set adapter-policy EthPolicy19 UCS-A /org/dynamic-vnic-conn-policy* # set desc Dynamic vNIC for Eth policy UCS-A /org/dynamic-vnic-conn-policy* # set dynamic-eth 12 UCS-A /org/dynamic-vnic-conn-policy* # commit-buffer UCS-A /org/dynamic-vnic-conn-policy #
Deleting a Dynamic vNIC Connection Policy
The following example deletes the dynamic vNIC connection policy named MyDynVnicConnPolicy and commits the transaction:
UCS-A# scope org / UCS-A /org # delete dynamic-vnic-conn-policy MyDynVnicConnPolicy UCS-A /org* # commit-buffer UCS-A /org #
Configuring the VM Lifecycle Policy
VM Lifecycle Policy
The VM lifecycle policy determines how long Cisco UCS Manager retains offline VMs and offline dynamic vNICs in its database. If a VM or dynamic vNIC remains offline after that period, Cisco UCS Manager deletes the object from its database.
All virtual machines (VMs) on Cisco UCS servers are managed by vCenter. Cisco UCS Manager cannot determine whether an inactive VM is temporarily shutdown, has been deleted, or is in some other state that renders it inaccessible. Therefore, Cisco UCS Manager considers all inactive VMs to be in an offline state.
Cisco UCS Manager considers a dynamic vNIC to be offline when the associated VM is shutdown, or the link between the fabric interconnect and the I/O module fails. On rare occasions, an internal error can also cause Cisco UCS Manager to consider a dynamic vNIC to be offline.
The default VM and dynamic vNIC retention period is 15 minutes. You can set that for any period of time between 1 minute and 7200 minutes (or 5 days).
Note |
The VMs that Cisco UCS Manager displays are for information and monitoring only. You cannot manage VMs through Cisco UCS Manager. Therefore, when you delete a VM from the Cisco UCS Manager database, you do not delete the VM from the server or from vCenter. |
Configuring the VM Lifecycle Policy
The following example configures a one day VM retention period and a one hour vNIC retention period and commits the transaction:
Switch-A# scope system Switch-A /system # scope vm-mgmt Switch-A /system/vm-mgmt # scope vm-life-cycle-policy Switch-A /system/vm-mgmt/vm-mgmt/vm-life-cycle-policy # set vmretention 1-day Switch-A /system/vm-mgmt/vm-mgmt/vm-life-cycle-policy* # set vnicretention 1-hour Switch-A /system/vm-mgmt/vm-mgmt/vm-life-cycle-policy* # commit-buffer Switch-A /system/vm-mgmt/vm-mgmt/vm-life-cycle-policy #
Viewing Dynamic vNIC Properties in a VM
The VM must be running.
The following example displays the properties of a dynamic vNIC in a VM:
Switch-A# scope system Switch-A /system # scope vm-mgmt Switch-A /system/vm-mgmt # scope vmware Switch-A /system/vm-mgmt/vmware # show virtual-machine Virtual Machine: UUID: 420a00c8-934b-4ae3-6af5-2ce9b8bd0f44 Service Profile: org-root/ls-PTS-ch6-7 Server: sys/chassis-6/blade-7 Status: Online . . . Switch-A /system/vm-mgmt/vmware # scope virtual-machine 420a08b0-cda7-9e0a-424f-01ec8653eea0 Switch-A /system/vm-mgmt/vmware/virtual-machine # show vnic detail vNIC: Name: 4479 Status: Online MAC Address: 00:50:56:8A:07:B5 Profile Name: VM-mgmt Virtual Adapter: sys/chassis-1/blade-1/adapter-1/host-eth-9 Vnic Dn: org-root/ls-PTS-ch1-1/ether-dynamic-prot-009 <--- add this vnic as source of SPAN session Current Task: Switch-A /system/vm-mgmt/vmware/virtual-machine #