Advanced Operations
Advanced operations are the diagnostic and recovery tools for a running virtual machine: its detailed record, its logs, the libvirt description of the machine, a VNC console, and controls for restarting the VM Controller, the agent inside the machine that tiCrypt communicates with.
Most of these are for the case where the normal path has already failed. If remote desktop works and the machine behaves, you should not need anything on this page.
Why the VM Controller can be restarted separately
The controller is not the machine. Every VM runs a controller that handles drive mounting, user synchronisation, and file transfer on tiCrypt's behalf. When the controller becomes unresponsive the machine underneath is usually fine, and restarting the controller recovers management access without rebooting the guest and interrupting a running job.
A VNC console reaches a machine whose network path is broken. Remote desktop depends on the guest being reachable and its session healthy. VNC attaches at the hypervisor level, so it still works when the guest's own networking or desktop session has failed. It is the tool for diagnosing why the normal route is unavailable.
Syncing permissions resolves drift. Access directory permissions are applied to the folders on the VM's drives. If an access directory change has not taken effect on those folders, Sync user permissions in the VM's ⋮ menu reapplies the current access directory permissions on every drive rather than requiring a restart. It does not add or remove VM users. Two other actions do:
- Synchronize users: the button on the warning that the running VM panel shows the VM's Owner when the backend does not know about all users authorized on the VM.
- Sync user permissions in the Users table: the action of the same name in the Users section of VM Settings and Details, for managers with the Share VMs with other users permission. It runs the task Sync user access for
vm-name, which removes VM users that were deleted from tiCrypt, deauthorizes users whose role does not match, authorizes missing users, and registers missing configuration co-owners as managers. For more information, see VM Users.
Before you begin
- The VM is running and you are its Owner or a Co-Owner.
- For controller operations, be aware that in-flight file transfers and drive mounts may be interrupted.
View Virtual Machines' Details
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to view the details.
- Click the VM Settings and Details option in the bottom center.
- In the new window, select the Overview section in the left panel.
- Then, view the running CPU, Memory, Network in and Network out graphs, and the drive list with each drive's used and total capacity. A warning appears above the drive list when attached drives are not mounted.
- View the VM controller version in the header (VMC version) and the Last 50 log entries panel, which refreshes every five seconds. Click the panel to open the Logs section.
View Logs in a Virtual Machine
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to view its logs.
- Click the VM Settings and Details option in the bottom center.
- In the new window, select the Logs section in the left panel.
- View the log entries, loaded 50 at a time.
- Optionally, narrow the list with the Filter ... level selector (Errors, Warnings, Info, Debug) or the Search logs ... field.
- Click Load Older to load the previous 50 entries, or Download to download the entries that match the filter and search.
- Once done, close the window with the button in its top left corner.
The log table lists each entry with its number (No.), Timestamp, User, and Log entry. Double-click an entry, right-click it, or select it and press Enter to expand it.
View the Logs of a Virtual Machine from the Menu
The View logs action shows the VM's recent log in a pop-up, without opening VM Settings and Details. Everyone with access to the VM has it. Users with the View the logs of any VM permission have it for every VM, including stopped ones.
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the menu next to the virtual machine.
- Select View logs.
- In the Showing logs of
vm-namepop-up, read the Timestamp and Log entry columns. Info, error, and warning entries are coloured. - Click REFRESH to load the latest entries.
- Click Close.
The pop-up shows the VM's latest log entries. It has no Load Older or Download; use the Logs section of VM Settings and Details for those.
If the entries cannot be loaded, the pop-up shows "Failed to refresh logs".
Export Virtual Machine Data in JSON Format
bulk-action
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the menu next to the virtual machine to export in JSON format.
- Select JSON Export.
- In the VM Info pop-up, click Expand all fields button in the top left panel.
- View all JSON export object data by users, groups, drives, access directories, and profiles.
- Once done, click Copy to copy the JSON data or click Download to download the JSON data.
- Click Close.
Download saves the data as vm-name-date.json. A section
you are not allowed to view holds an error instead of data, for example
{"error": "Cannot view users"}.
Use the search bar in the JSON export pop-up to search by keywords.
View the Libvirt XML Description of a Virtual Machine
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the menu next to the virtual machine to view the Libvirt XML description.
- Select Libvirt XML description.
- In the pop-up, view the Libvirt XML description from the backend.
- Click Copy to copy the XML description or click Download to download the XML description.
- Once done, click Close.
Only super-admins can access this feature.
Open a VNC Terminal in a Virtual Machine
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the menu next to the virtual machine to access the VNC terminal.
- Select Open VNC terminal.
- In the VNC console for
vm-namewindow, use the VNC terminal. - Once done, click Close.
An open VNC console counts as activity in tiCrypt only while you type, click, scroll, or touch inside it. A console left open without input does not keep your session from locking.
The VNC terminal is meant for VMs whose hardware setup is in debug mode, and for debugging by system admins. For any other VM, tiCrypt shows an error and offers Try anyways.
Restart Virtual Machine Controller
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the menu next to the virtual machine to restart the controller.
- Select Restart controller.
- In the pop-up, read the risks.
- Once done, click Restart.
Restarting the controller takes time. Wait at least 15 seconds before using the virtual machine after a controller restart.
Forcefully Restart a Virtual Machine Controller
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the menu next to the virtual machine to restart the controller.
- Select Restart controller.
- In the pop-up, read the risks.
- Tick the box I know the risks of force restarting the controller, and wish to force restart anyways.
- Once done, click Force Restart.
Force restarting the VM controller kills the controller process immediately via an OS syscall, without letting it finish its current work. Do not force restart a controller while other users are active on the virtual machine: pending database transactions may only partly reach the drive, ongoing file transfers cannot finish, and the VM's database of users and access directories can be corrupted.
Sync Users' Permissions in a Virtual Machine
bulk-action
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the menu next to the virtual machine to sync users' permissions.
- Select Sync user permissions.
Sync user permissions in this menu only refreshes access directory permissions on the VM's drives. If a newly added user is not recognized, use the Synchronize users button on the warning shown on the running VM panel, or the Sync user permissions action of the Users table in VM Settings and Details, which shares this label but synchronizes the VM's users. See Why the VM Controller can be restarted separately.
Repair Corrupted Databases in Virtual Machines
bulk-action
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the menu next to the virtual machine to repair the corrupted database.
- Select Repair corrupted database.
- In the Warning: Database Repair Process pop-up, type
Repairin the Type to Confirm field. - Click Repair.
Repair corrupted database appears only for users the backend has authorized as managers of the virtual machine. Other users do not see it in the menu.
Do not use this option unless instructed by an admin. Repairing may cause secondary issues when performed arbitrarily. All VM connections, including RDP, will be disconnected.
Access the Virtual Machine Controller Logs
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to access its controller logs.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Logs section in the left panel.
- View the logs.
- Optionally, click the Load Older button to view older VM logs.
Download All Virtual Machine Controller Logs
bulk-action
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to download its controller logs.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Logs section in the left panel.
- View the logs.
- Click the Download button in the toolbar above the logs. The
.tsvfile holds every log entry that matches the current filter and search, so clear them first to download all logs.
tiCrypt saves vm-name_YYYY-MM-DD.tsv. Its first line is the header
Log No., Timestamp, Information, separated by tabs, followed
by one line per entry.
A log entry that starts with =, +, -, or @ (other than a plain negative number) is saved
with a leading ', so a spreadsheet opens it as text instead of running it as a formula. If part of the log cannot be loaded, the
download stops and the task shows the error from the VM.
Only the VM owner, co-owners, and users with the VM Manager role can view and download controller logs.
Access the Virtual Machine Applications
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to access its applications.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Video annotation types section in the left panel.
- View the existing video annotation templates.
The Applications group of VM Settings and Details holds two applications, Video annotation types and Avicenna Research Transfers (see Avicenna Research Transfers), on every VM, Linux or Windows. Adding, editing, exporting, and deleting templates needs the system permission Share VMs with other users, and adding one also needs the Manager role on the VM.
A video annotation template is the set of rules for annotating the videos in one directory of the
VM. It defines the tag categories and tags that people can apply, which VM users see each tag,
where annotation exports go, and how much video the player buffers. A template covers its directory
and every subfolder on the same drive. When a subfolder has a template of its own, that template
applies there instead, so the deepest template wins. A template on /videos does not cover
/videos2.
Create a Video Annotation Template
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to create its video annotation template.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Video annotation types section in the left panel.
- Click Add template in the top right panel.
- In the Add annotation template to
vm-nameprompt, enter the template name in the Name field. The name is required, up to 32 characters, without special characters, and must differ from the other templates of the VM. - Select the annotation type, Video Tags, and the Directory containing the files to annotate.
- Optionally, select the Directory to export annotation files (optional) and the Video playback buffer size (Default, or 16 to 256 KB).
- Click Create Templates.
The template appears in the Video annotation types list. Videos in its directory and subfolders now open in the annotator. Add categories and tags next, so people have something to apply.
A directory can hold only one video annotation template. A subfolder of that directory can hold its own template, which then applies to the subfolder instead.
- Use a smaller buffer size to minimize buffering delay. Ideal for fast and stable internet connections.
- Use a larger buffer size to increase template data pre-loading and enhance playback stability. Ideal for slower or less reliable internet connections.
View an Existing Video Annotation Template
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to view its video annotation template.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Video annotation types section in the left panel.
- Select the video annotation template to view.
- Click the View button in the top right panel.
- In the new window, view the categories and tags of the video annotation template.
Add a Category to Video Annotation Template
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to add a category to its video annotation template.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Video annotation types section in the left panel.
- Select the video annotation template to add a category to.
- Click the View button in the top right panel.
- In the new window, click the Edit button on the right.
- Next, click Add category in the top-left panel.
- In the Create a new tag category for
template-nameprompt, enter the category name. It can have up to 64 characters and must differ from the other categories of the template. - Click Create category.
- Click the Save button on the top right.
Changes to categories and tags, including deletions, take effect only when you click Save. If
you leave the template with unsaved changes, tiCrypt asks "Save changes to template-name
template?" with Discard and Save. If saving fails, tiCrypt shows "Failed to save the
template".
Add a Category Tag in Video Annotation Template
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to which you want to add a category tag in its video annotation template.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Video annotation types section in the left panel.
- Select the video annotation template to add a tag to its category.
- Click the View button in the top right panel.
- In the new window, click the Edit button on the right.
- Next, click Add tag to category next to the category you want to add a tag to.
- Enter the tag name in the Type tag name field below the category name.
- Select Everybody, or the individual VM users the tag applies to. VM managers are not listed; a tag with no one selected shows Managers only.
- Once done, click the Save button on the top right.
The default tag is set to Everybody, which includes all users from the virtual machine. Selecting a user replaces Everybody. A tag hidden from a user does not appear in that user's annotator, and a category none of whose tags they can see is hidden from them too. Managers see every tag.
Edit a Category Tag in Video Annotation Template
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine for which you want to edit a category tag in its video annotation template.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Video annotation types section in the left panel.
- Select the video annotation template to edit a tag in its category.
- Click the View button in the top right panel.
- In the new window, click the Edit button on the right.
- Next, update the tag name below the category name or the VM users the tag applies to.
- Once done, click the Save button on the top right.
Edit a Video Annotation Template
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to edit its video annotation template.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Video annotation types section in the left panel.
- Select the video annotation template to edit.
- Click the Open full menu button in the top right panel.
- Select Edit.
- In the prompt, update the annotation name, export directory, or video playback buffer size. The type and the annotated directory cannot be changed after creation.
- Once done, click Save Changes.
Export a Video Annotation Template in JSON Format
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to export its video annotation template.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Video annotation types section in the left panel.
- Select the video annotation template to export.
- Click the Open full menu button in the top right panel.
- Select Export annotation.
- In the prompt, select the export directory.
- Click Export.
tiCrypt saves template-name.json in the directory you chose. The file holds the
template definition, not the annotations made with it: its name, type, tags, categories, the tag
names and long names by tag ID, and the user names by user ID. To export the annotations of a
video, see Annotate a Video.
Delete a Category Tag in Video Annotation Template
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine for which you want to delete a category tag in its video annotation template.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Video annotation types section in the left panel.
- Select the video annotation template to delete a tag from its category.
- Click the View button in the top right panel.
- In the new window, click the Edit button on the right.
- Next, click the Delete button next to the tag you want to remove.
- In the Delete
tag-name? prompt, which warns "This tag will be removed from the template.", click Delete tag. - Click the Save button on the top right.
Delete a Category in Video Annotation Template
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine for which you want to delete a category in its video annotation template.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Video annotation types section in the left panel.
- Select the video annotation template to delete its category.
- Click the View button in the top right panel.
- In the new window, click the Edit button on the right.
- Next, click the Remove category button next to the category you want to delete.
- In the Delete
category-name? prompt, which warns "All tags in this category will be removed from the template.", click Delete category. - Click the Save button on the top right.
Delete a Video Annotation Template
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to delete its video annotation template.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Video annotation types section in the left panel.
- Select one or more video annotation templates to delete.
- Click the Open full menu button in the top right panel.
- Select Delete.
- In the Delete N annotation template(s)? prompt, which asks "Are you sure you want to delete N annotation template(s)?", click Delete.
Annotate a Video
An annotation is a note attached to a video in a VM: a set of tags from the video's annotation template, applied either to the whole video, to one moment, or to a stretch of time. The annotator opens when you view a video in a directory that a template covers.
Before you begin:
- The VM has a video annotation template that covers the video's directory. See Create a Video Annotation Template.
- You have the VM permission Files.
- The video is an FLV, MP4, Matroska, Ogg, WebM, 3GPP, MPEG, or QuickTime file.
This procedure describes how to annotate a video.
- Open the VM's File Explorer.
- Go to the video's folder and double-click the video, or select it and choose View.
- Play the video. In the editor panel, choose the annotation Type: Time interval, Time point, or Global. The default is Global, and the editor keeps the last type you used.
- For a time point or interval, click Set next to Start at the moment the annotation begins. Set pauses the video and pins the exact time. You can also type a time in the field.
- For a time interval, click Set next to End at the moment it ends.
- Click the tag buttons to apply. They are grouped by category.
- Click Add annotation.
The annotation appears in the table below the video and as a marker on the timeline. Click a row or a marker, or select a row and press Enter or Space, to skip the video to that time.
Add annotation stays disabled until the annotation has a start time (or is Global) and at least one tag, unless the template has no tags. If you set an end before the start, the end moves to the start. If saving fails, tiCrypt shows "Failed to save the annotation".
If you switch to another annotation with unsaved changes, tiCrypt asks "Do you want to save the current annotation?" with Cancel, Discard, and Save. Closing the annotator asks the same without Cancel.
Who sees which annotations
Users who are not managers see only their own annotations, and only the tags the template makes visible to them. Managers see everyone's annotations. A manager who edits someone else's annotation does not take it over: the original author stays its owner. The table refreshes every minute.
Annotation table
The table has the columns Timestamp (the start and end, a single time, or "Global"), User, Annotation, Created, Updated, and Actions. To edit an annotation, select it, change it in the editor, and click Update annotation. Cancel drops your changes.
The button in a row deletes the annotation at once. If deletion fails, tiCrypt shows "Failed to delete the annotation".
The toolbar above the table offers:
- Filter: filters the table by Users or Tags with the Filter ... field.
- Import: adds annotations from a file. You become the owner of the imported annotations.
- Export: saves the annotations as JSON, either with Export all or for one user's annotations.
- Refresh: reloads the annotations.
The following table describes the files Import accepts.
| Format | Contents |
|---|---|
.json | A list of annotations. Each needs start and tagIDs; end and type are optional. |
.txt | One annotation. Line 1 is the start in seconds, line 2 the end in seconds, and each further line a tag name, matched without regard to case. |
An import is refused with "The first two lines must be the start and end times in seconds", "End time is greater than video duration", "Start time is greater than video duration", "Start time is greater than end time", "Start time is negative", or "Unknown file extension:" followed by the extension.
Export opens the Export annotations pop-up with a directory picker. It starts at the
template's export directory if one is set, otherwise at your home directory. tiCrypt saves
video-name.json there and shows "Annotations exported to" followed by the directory and
file name. Each exported annotation holds start, end, tags (tag names by category), tagIDs,
userID, userName, and type.
To export the annotations of several videos at once, select them in the File Explorer and choose Export annotations. Files with annotations show a count badge. The task reads "Export annotations for N file(s)".
Video player controls
- Play and volume: play or pause the video, and set its volume. Space also plays or pauses.
- Time display: shows the current time. Its copy button copies the timestamp.
- Buffer size: sets how much video is loaded ahead, from 16 KB to 2 MB.
- Skip back 15s and Skip forward 15s: jump 15 seconds. The Left and Right arrow keys jump 3 seconds, or 30 seconds with Shift.
- Speed: plays the video from 0.25x to 10x.
- Fullscreen: fills the screen with the video.
- Previous file (Shift+P) and Next file (Shift+N): open the previous or next video in the folder.
View Drive Capacity of a Virtual Machine
bulk-action
Method One
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to view its drive capacity.
- In the right panel, click Show statistics, then view each drive's name, used and total capacity, and percentage in the drive list at the top of the panel.
The statistics panel is hidden by default; Show statistics and Hide statistics toggle it, and tiCrypt remembers your choice. It appears only while you are connected, once the home drive is mounted, and only if you have the VM permission System Statistics. Below the drive list, it shows CPU, Memory, Network in, and Network out graphs of the last 120 samples. Each drive's bar is green below 70% usage, amber from 70% to 90%, and red from 90%.
Method Two
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the virtual machine to view its drive capacity.
- Click the VM Settings and Details option in the bottom center.
- In the new window, click the Overview section in the left panel.
- In the drive list below the graphs, view each drive's name, used and total capacity, and percentage.
Open the Debugger of a Virtual Machine
The debugger sends raw requests to the VM Controller. It exists only while tiCrypt runs in debug mode, for diagnosing the controller, and is not part of normal use.
- Go to the Virtual Machines icon in the top left taskbar.
- Click the VMs section on the top left panel.
- In the left panel, click the menu next to the virtual machine.
- Select Open debugger.
- In the Send RAW requests to
vm-namepop-up, select the Service and the Method, and edit the request body. - Click Send to send the request and show the reply, or Send No Reply to send it without waiting for one.
The VM Controller receives the request. With Send, its reply appears below the request.
The Restart Controller button of the debugger stops the VM Controller at once, without asking for confirmation.