Table des matières
VMoodle (local): User Guide
The VMoodle user guide is mainly oriented towards the use of the super-administration interfaces.
Implementing virtualisation is documented in the installation documentation.
Accessing VMoodle management
Access to VMoodle management is located in the main administration menu, under the “Server” heading. The menu entry is named “Administer virtual platforms”.
Instance management
The first screen corresponds to the management of the virtual instances.
On this screen you can manage and administer the different virtual instances that your installation operates.
Each declared instance (except the main physical instance) is displayed with indicators and commands.
Indicators
State (1)
The state indicator is green for an “open” platform, therefore resolved on arrival, and red if it is disabled. Disabling a virtual platform is a simple and quick way to prevent any use of a particular domain name.
MNET subnetwork (2)
Indicates the number of the MNET subnetwork the platform belongs to.
Crons (3)
The number of times the virtual cron has been executed
Last cron date (4)
The virtual cron runs the crons of each of the virtual platforms in rotation (ROUND ROBIN), or by respecting an interval constraint. This indicator gives the last execution date for this virtual platform.
Interval between runs (5)
Indicates the last interval between cron executions in seconds.
Commands (6)
Edit
This command makes it possible to modify the definition parameters of the virtual instance.
Note: This modification only affects the platform definition registry. It can in no case renegotiate the content obtained at creation by applying a “template”.
Disable / Destroy
This command works in two stages:
- If the platform is active, then the action will first be to disable this platform without touching the content.
- If the platform is already disabled, then this command totally destroys the platform, its registry and its content.
Snapshot
This command makes it possible to capture an image (snapshot) of the platform. This image is made available to serve as a new initialisation “template” for other platforms to create.
Mass commands
You can also run some commands in groups by selecting rows in the platform management table and choosing an action to apply in the lower list.
Special instance management commands
Snapshot the main platform
At the start of a VMoodle installation, you only have the main platform installed according to the standard configuration definition. You therefore have no reference virtual platform, nor any available template.
This button lets you launch the image capture of the main platform. It will be the first model you have to build your following instances.
Define a new platform
Click this button to call the form for creating a new platform. You will be able to create an “empty” platform or one pre-fed with the data of a “template”.
Generate the configurations
This command makes it possible to generate the physical configuration files of the virtual platforms as if they had been installed normally. This makes it possible, for example, to re-materialise a platform on another server as a “classic” operating Moodle.
Generate the copy scripts
During a major Moodle migration, it is always advised to work on copies of the sites, keeping the production site intact as long as the migration is not validated. Carrying out a global migration on a large number of platforms can prove tedious and costly in administration time.
This tool automates the production of operation scripts (unix shell) handling the main steps of this process replicated on a large number of platforms. It produces:
- Database-related scripts
- The archiving scripts of the batch of SQL databases (under MySQL or MariaDB)
- The creation scripts of the N+1 databases
- The data copy scripts from the N databases to N+1, and readjustment of the N databases
- Usage-file-related scripts
- The creation/copy scripts of the data directories
- Configuration adjustment scripts
- The copy scripts of the configuration files (config.php and local/vmoodle/vconfig.php) and configuration adjustment
- Scripts driving the migration operation
- Some pre-processing scripts (for example, launching mysql_compressed_rows.php)
- The update execution scripts (non-interactive)
- The post-migration scripts (adjustment operations needed after data transformation).
Note: These scripts are currently experimental and may be tied to a given deployment method and configuration.
Renew all the pairs (MNET)
In a large constellation, the network topology between the different instances may be rich and very dense in service crossings.
The VMoodle implementation offers an exclusive solution to stabilise the multiple relations through MNET for a large number of platforms. This mechanism allows continuous renewal of the keys over time.
Some extrinsic events such as a network outage, or a maintenance action causing some unavailability, can break the overall consistency of the trust network by preventing the correct renewal of the keys.
This button lets you attempt a repair of the trust network.
Super administration
The super administration screen makes it possible to broadcast commands across the whole network of virtualised platforms. Super administration relies on an extensible command infrastructure that works according to the following process:
- Choose a command and configure it
- Choose a set of target platforms
- Run the command
- Recycle the command or build a new command.
The command recycling principle makes it possible to handle the following three situations:
- Reuse the same command on a new set of platforms
- Reuse another command while keeping the same set of platforms
- Change the command and the set of target platforms
Command sets
Generic commands
Generic commands deal with “basic” actions such as the mass modification of a configuration value or the general clearing of caches.
Commands related to platform equipment (plugins)
Commands related to roles and rights
Commands related to updates
The update command
Test command set
An experimental test command set shows the different building primitives of the command infrastructure.




