The Virtual Machine Performance Is sluggish/poor¶
There are various issues that can impact the performance of a Virtual Machine (VM) in the Cyber Range, making the user experience slower than normal. Here is a slightly technical description of each, how to detect if it is the cause for your sluggish experience, and if it is the cause, how to address the issue.
New "Cold" vs Warmed Virtual Machines Causing Sluggishness (First Logins)¶
When cloud VMs on the range are provisioned and started for the first time, each dedicated VM's underlying block device (virtual hard drive in the cloud) is "instantly" imaged (by reference) from the VM's initial cloud image (or AMI). Until this block replication is complete, un-synchronized blocks from the cloud block storage (CBS) system are provided over the network from the originating AMI (image) storage. Until the freshly provisioned system is fully "warmed up" (i.e. synchronized between the active CBS device and the originating, read only AMI image), you or the student will be able to log into a “cold” or pre-warming machine but system performance can be erratic or sluggish.
To avoid experiencing this condition, we recommend provisioning (inviting) all of your students well before the first day of class, and then some time before 1hr prior to class time, click "Start" on each student environment to be used to ensure each student VM environment gets fully "pre-warmed" well before the student logs in. This will not need to ever be done after the student logs in and uses that specific exercise environment.
Custom Desktop Settings Causing Sluggishness¶
Instructors are free to customize exercise environments, including the ability to change the operating system's graphic settings (e.g. enable 2D/3D rendering effects, enable Compiz (on Linux), switch from XFCE to Gnome DEs, etc). If you are using a customized desktop environment like this, the additional CPU and memory resources needed for keeping such desktops properly refreshed can detract from the available resources for services and the OS' system scheduler. This can result in an overall slower VM session user experience. This can be seen by looking at the system load. If load levels are consistently high (or over 1-2 as seen from the Linux "uptime" command), or if you need to enable such multimedia rich settings — then please contact support to request a VM environment with additional CPU and/or memory resources. Note, that adding CPU/memory resources to an existing class/exercise architecture after the fact may require the tearing down and recreation of related instructor and student environments.
This solution is related to desktop loads vs allocated resources. In short, the fix here is to either not run desktop intensive configurations (such as Compiz, 2D/3D effects, Gnome/KDE Desktop Environments, etc), or request higher CPU/memory settings for your classroom environments (which can impose higher Cyber Range costs).
High Network Latency (Based on Location or ISP)¶
This is not a common issue, as the Cyber Range does not need a lot of bandwidth to deliver a crisp, snappy graphical environment to your desktop. In a pinch, some instructors have actually run their class over a smartphone hotspot. However, what can impact perceived performance is high latency (or round trip packet time from client to the cloud and back to the client). High network latency can greatly impact the user experience, especially on graphical (non-console/ssh) sessions. As such, we recommend against high-latency connection technologies such as connecting to the Range over VPN (encrypted Virtual Private Network) connections, satellite ISPs, or congested/shared WiFi (e.g. where clients watching YouTube or Netflix can impose choppy latency issues).
You can test your "ping time" to the front end of the Cyber Range by (on your local PC) opening a terminal or CMD text window and typing "ping console.virginiacyberrange.net". Any ping time of under 50ms should provide a very usable client experience. A ping time from 50-100ms is usable. But a ping time over over 100-200ms will incur noticeable sluggishness or "choppiness" client experience.
If you are on a high latency network, try reconnecting from an environment with better connectivity (using the ping test as a rough metric).