VSwitch Controller User Guide
VSwitch Controller User Guide
VSwitch Controller User Guide
Contents
1. Introduction ................................................................................................... 1
1.1. vSwitch and Controller for XenServer ............................................................................ 1
iii
iv
vi
Chapter 1. Introduction
The XenServer platform is a server virtualization platform for server and client operating systems that virtualizes
each physical host on which it is installed, enabling a single physical machine to run multiple virtual machines
(VMs) simultaneously.
XenServer allows you to combine multiple XenServer hosts into a resource pool, using industry-standard shared
storage architectures and Citrix resource clustering technology. Resource pooling extends the basic single-server
notion of virtualization to multiple servers, with VMs able to run on any server in the pool and even move between
different servers in the pool using a technology called live migration. Each resource pool includes a master server,
which stores configuration for all physical hosts and VMs in the pool.
XenCenter is a Windows-based management application that allows IT managers to create XenServer resource
pools and to manage them and their resources from a single point of control. XenCenter provides a graphical
interface to perform many of the same VM, storage, and clustering configuration operations that can be
performed using the xe utility on the XenServer command line.
After the VM has been imported, start it to begin the process of configuring the DVS.
Typically, this will be the user named "root" but could be a different name if the RBAC features of the XenServer
platform are in use.
5. Select the Steal check box only if you want to override any existing vSwitch Controller configuration that was
previously set for this resource pool.
6. Click Connect.
The vSwitch Controller will use the provided username and password to communicate with the pool master server
using the XAPI protocol. When communications are established, the new resource pool is added to the resource
tree, along with all of the associated resources. If the vSwitch Controller VM is unable to communicate with the
pool master, it displays an error message describing the failure.
Figure 3.1.
background behind the buttons turns orange and a Data Updated Paused indicator appears in the status bar
when in pause mode.
All VMs: This list shows all VMs in the resource pool, whether or not they are configured for a single server.
You can expand the list to show the individual VMs, and expand a VM to show its VIFs.
Right-click context menus on nodes are available on most nodes to provide a simple way of adding, modifying,
and deleting items in the resource tree.
10
vSwitch Controller (selected by default): Forwards Netflow information to the vSwitch Controller for use by the
Flow Statistics section of the GUI. If you deselect this check box, the Netflow data is not sent to the vSwitch
Controller and the Flow Statistics pages will not show date.
External Netflow Controller: Allows you to forward Netflow data to an external third party Netflow collector.
Enter the IP address of the external collector.
Server Status: Color-coded icon that shows the current server status.
Server Networks: Number of networks in the resource pool.
MAC Address: MAC address of the server management interface.
IP Address: IP address of the server management interface.
vSwitch Version: Build and version number of the vSwitch running on this XenServer.
Server Networks: List of all networks associated with the server, including the number of VMs on the server
using that network, associated physical interface, VLAN, number of bytes transmitted and received, number
of errors, and status.
Server VMs: List of all VMs associated with the server, and for each VIF on the VM, list of the MAC address,
network, IP address, total bytes transmitted and received since the VM was booted, and status.
On this page you can also specify available target VLANs for port configuration policies. See Setting Up Port
Configuration Policies.
On this page you can also specify available target VLANs for port configuration policies. See Setting Up Port
Configuration Policies.
The data rate of a flow is represented as the total traffic of the flow averaged across the duration of the flow.
For example, if a flow lasts 10 seconds with 900KB sent in the first second and 10KB sent in each of the nine
remaining seconds, the resulting data is plotted as if the rate were 100KB/second for the entire flow period.
Due to Netflows use of UDP datagrams to transport NetFlow records between a switch and a collector (e.g., the
vSwitch Controller), there is usually no way for the collector to know why a NetFlow record was not received, and
dropped records may result in nondeterministic data with Flow Statistics tables or charts. For example, assume
that a network generating 10 flows per second has a single 1GB file transfer that lasts 10 seconds. A total of 202
flows are generated (100 hping stimuli, 100 hping responses, 1 file transfer stimulus, and 1 file transfer response).
If 50 percent of the UDP datagrams carrying NetFlow records are dropped, there is a 50/50 probability that the
collector will report either 1GB of data, or 2KB.
Because Netflow records are generated by each vSwitch in a resource pool, sources and destinations that are
running on different XenServers result in two records, doubling the statistics counts.
We recommend disabling flow visibility in deployments of more than 100 VMs to avoid overloading the vSwitch
Controller virtual appliance and the network used to send NetFlow records.
The Flow Statistics tab displays a graph and associated table to show flows for the selected node.
Use the drop-down lists at the top of the page to specify the following:
17
Figure 4.1.
The page shows expandable bars for global rules, expandable bars for the resource pool, network, and VM to
which the VIF belongs, and an expanded area for VIF rules. If you click the Expand All button, you can see how
the VIF rules are embedded in the VM, network, resource pool, and global framework.
Description
Action
Click the link and choose Change Action to Deny or Change Action to Allow.
Protocol
Direction
Choose whether the rule will apply from or to the specified remote address- es, or
both.
Remote Addresses
20
Item
Description
Description
Rule Details
Click the Rule Details button to display a brief summary of the rule.
You must click Save Policy Changes to apply the new rules. When you do so, the changes take effect immediately
within the virtual network environment. If you have not already saved the rules, you can click Undo Changes to
reverse the changes you have named.
When you change an ACL, all background updates for the vSwitch Controller GUI are paused. If another
administrator is modifying the policy simultaneously and commits changes before you, you must refresh the page
to retrieve the new policy from the server and then reenter the changes.
You can change order of rules in a level by clicking the gear icon for the rule and choosing Move Up or Move
Down. You cannot move a rule between levels in the hierarchy. To remove a rule, click the gear icon and choose
Delete. Click the Description button to display the ACL description. or the Rule button to display the ACL rule
that you constructed.
ACL rules should always be interpreted from the point of view of the virtual interface of the VM, even if configured
at higher levels of the policy hierarchy. This is particularly important when thinking about the meaning of the
Remote Addresses field in the rules.
For example, if a VM within a resource pool has the IP address 10.1.1.1, it might be expected that a rule on
that resource pool specifying "deny all protocols to IP 10.1.1.1" would prevent any traffic from reaching the VM.
This will be the case for all other VMs in the resource pool because each VM will enforce the rule when the VM
transmits. However, machines that are external to the resource pool will be able to communicate with the VM
with IP address 10.1.1.1. This is because no rules control the transmit behavior of the external machines. It is
also because the VIF of the VM with IP address 10.1.1.1 has a rule that drops transmit traffic with that address
but not receive traffic with that address.
If the policy behavior is unexpected, it can be helpful to view the Status tab for the virtual interface on which the
entire configured set of rules from all policy levels is visualized.
You can configure QoS and Traffic Mirroring port policies at the global, resource pool, network, VM, and VIF levels.
When you select a node in the resource tree and choose the Port Configuration tab, the configured value for
each parent level in the hierarchy is shown, but only the configuration at the selected policy level can be changed.
For example, if you select a VM, the Port Configuration tab shows the values configured at the global, resource
pool, and network levels, and lets you change the value at the VM level.
QoS and Traffic Mirroring configurations at a given level override the configurations at the higher levels. If a
configuration is overridden, then the Port Configuration tab shows the higher level configuration crossed out.
For example, the next figure shows a QoS configuration at the network level that overrides the configuration at
the resource pool level.
Figure 4.2.
To configure port policies, choose the node in the resource tree and choose the Port Configuration tab. If you
choose a node that does not support port configuration policies (such as a XenServer), a message is displayed
with links to nodes that do support port configuration.
Setting QoS to an inappropriately low burst rate (for example, 1 KB) on any interface which
the vSwitch Controller sits may result in losing all communication with the vSwitch Controller
and forcing an emergency reset situation.
To prevent any inherited enforcement from taking place, the QoS policy at the VM level should
be disabled
Click Save Port Configuration Changes to implement the changes, or click Undo Changes to remove any unsaved
changes. The policy takes effect immediately after saving.
24
2.
3.
4.
To view information about the vSwitch SSL security certificate or determine when it expires:
1. Under Settings, click Server and Certificate Maintenance.
2. Click View OVS Certificate.
After updating the vSwitch SSL certificate, as new resource pools are added for management the vSwitch of
each XenServer in the new resource pool automatically downloads and starts using the updated SSL certificate.
However, the SSL certificate on vSwitches running on existing pools under management need to have their SSL
certificates updated manually.
2.
2.
Enter the desired hostname and domain name into the appropriate fields.
The value of the domain name is used for both the domain name of the host and the domain to search for
unqualified host names.
3.
27
Click Configuration Snapshots under Settings to view the list of configuration backups and restore from backup.
The page lists all recent backups, with the most recent listed first. Automatic backups are taken twice per day
and each time the vSwitch Controller is restarted. When restoring from a backup, the current IP configuration of
the vSwitch Controller is not updated. To change the vSwitch Controller IP address, see Section 5.1, Configuring
IP Address Settings.
To restore the configuration from a backup, click its Restore link, and then click Yes, Restore.
To create a backup on demand, click Create New Snapshot. Enter a name to identify the backed up configuration
file, and click Perform Snapshot. The new backup is added to the top of the list.
To download a snapshot to store on another system, click the gear icon for the snapshot and choose Download.
Follow the instructions in the popup windows to save the snapshot file.
To upload a previously-saved snapshot to the controller, click Upload Snapshot. Browse to select the snapshot
file, and click Upload Snapshot. The uploaded snapshot is added to the list on the Configuration Snapshots page.
To delete a snapshot, click the gear icon for the snapshot and choose Delete.
The snapshot table also includes information on the software version and compatibility. Compatibility indicates
whether the data in the snapshot is compatible with the current software version. It displays a green indicator if
it is compatible and a red indicator if it is not. To revert to an incompatible snapshot, you must first change the
software to a compatible version, as listed in the Software Version column.
By default, the system creates a configuration snapshot every 12 hours. These snapshots are listed with a
description label of Automatic periodic snapshot. In addition, configuration snapshots are created each time
the vSwitch Controller is restarted. These snapshots are listed with a description label of Startup snapshot.
System initiated snapshots are automatically deleted if more than 30 days old. When manually creating a new
snapshot, enter a unique description label so it is not mistaken as a system initiated snapshot and deleted after
30 days. If a system initiated snapshot needs to be preserved beyond 30 days, it can be downloaded and reuploaded using a unique description label.
29
Description
VIFs
Red
Green
Orange
VM is running but the XenServer on which the VIF resides is not connected to the vSwitch
Controller.
VMs
Red
Green
Orange
VM is running but the XenServer on which the VM resides is not correctly connected to
the vSwitch Controller (depends on the collective state of the respective VIFs).
Server Networks
Red
XenServer is shut down or unreachable or no VMs have VIFs that are associated with the
network.
Green
Orange
XenServers
Red
Green
Orange
30
Items/Status
Icons
Description
Pool-Wide
Networks
Red
Green
Master XenServer is configured to connect to the vSwitch Controller and the connection
is up and working.
Orange
Master XenServer is not configured to connect to the vSwitch Controller (depends on the
collective state of the associated physical interfaces and VIFs).
Resource Pools
Red
Green
Master XenServer is configured to connect to the vSwitch Controller and the connection
is up and working.
Orange
Master XenServer is not configured to connect to the vSwitch Controller (depends on the
collective state of the associated physical interfaces and VIFs).
Include a Server Status report for each XenServer that is involved in the issue. Refer to the XenServer
Administrator's Guide for instructions on generating Server Status reports.
Include a log bundle from the vSwitch Controller by clicking Collect and Zip All Logs in the Server & Certificate
Maintenance Settings page. Refer to Troubleshooting vSwitch Controller Issues.
Description
Connecting to Pool
Displayed when a new pool is added and vSwitch Controller has not yet
successfully connected to the pool master.
OR
Displayed when the vSwitch Controller restarts and it has not yet
successfully connected to the pool master. If a successful connection
is not established in 30 seconds, this message will be replaced Pool
Connection Failed
Network
control
disconnected
channels
There is a network problem between the controller and the pool master,
a failure in DNS name resolution, an invalid DNS name or pool master IP
address, or the pool master is down or misconfigured.
The DNS name or IP address configured to the pool does not resolve to
a compatible version of XenServer.
The pool reports the same XAPI UUID as another pool already in the
vSwitch Controller database.
The pool has been reinstalled and does not match the state of the
matching pool in vNetManager.
Unknown Error
32
7.1.11. To set the IP address of the Controller management interface via DHCP
Run the command: set controller management-interface config dhcp
This command sets the Controller management interface IP address using DHCP. If DHCP is configured, resource
pools cannot be set to Fail-Safe mode.
This command takes effect when executed, so remote access to the CLI may be lost if the address changes.
This command sets a static IP address for the Controller management interface. The DNS configuration
information is optional. The ability to specify a DNS search path requires the specification of two DNS servers.
This command takes effect when executed so remote access to the CLI may be lost if the address changes.
7.1.13. To set the VNC password for accessing the local GUI in XenCenter
Run the command: set controller vnc-password <password>
This command sets the VNC password for accessing the local GUI in XenCenter. The password must be at least
8 characters.
35