This commit adds support for remote execution of commands in a VM through qemu Guest Agent (GA). The feature includes:
* New API calls so create, cancel and retry command execution
* Command results are included in VM information
* Command line tool exposing this functionality
* Monitor probe to reap execution of commands
* Supports for regular (veth) and PCI NIC devices
* Live context updates (for configuring the NIC devices)
* Supports Linux bridges, OVS and OVS DPDK
* Initial support for disk hotplugging (disabled)
Author: Daniel Clavijo Coca <dclavijo@opennebula.io>
Add library updates to improve LVM-based drivers code.
This introduces the support needed for using a Volume Group (VG)
as the backing store for an image datastore. Current version of the driver only
supports filesystem-based approach (fs_lvm_ssh).
Author: Guillermo Ramos <gramos@opennebula.io>
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
This commit add support for vTPM devices:
* TPM devices can be enabled by adding TPM = [ MODEL = "..." attribute to the VM. Only model is supported
* vTPM data is saved (and restored) as part of the backup information for the VM. The TPM data is saved as a tarball with the special name disk.tpm.0. This way backup drivers manage this as another disk. When restoring from a backup, the saved TPM state is stored into the new VM template using the attribute "TPM_STATE" (base64 encoded).
* A new sudo action has been added to the kvm driver to prepare the tpm folder
Note: Packages setup TPM permissions to oneadmin in libvirtd configuration files.
* Update filtering behavior
* Fix VM table filtering
* Updates all table filters to be inclusive
* Fix user input parsing for options
* Fixes options casting of existing values when updating
* Allows empty network definitions for service templates
* Fixes orphan Network Form Blocks OneKE Setup
* Fix generic quota tooltip rendering
* Fixes problems when defining a generic and cluster quota for an user
* VM (compute) generic quota can now be set using the "@Global" cluster
ID
* Resource ID dropdown now displays the names of all available resources
* Update views location + VNC fix
* Fixes folder profiles appears as a view
- Sunstone views location is now isolated to `sunstone/views/` instead
of being directly located in the base config directory of Sunstone.
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
- we deliver /usr/lib/ruby/load_opennebula_paths.rb
- sym-linked from known (system-wide) Ruby path
- Debian/Ubuntu: /usr/local/lib/site_ruby/load_opennebula_paths.rb
- RHEL/Alma: /usr/local/share/ruby/site_ruby/load_opennebula_paths.rb
- suppress warnings from Rubygems no longer needed
This commit implements the backup actions for the LVM driver (fs_lvm_ssh).
Datastores using the non-thin fs_lvm_ssh driver also benefit from this
implementation, although backups can only be made while the VM is powered off.
* Add resource type to all tables
* Update all cards to display new labels
* Add edit permissions check on labels
* Add table filter support
* Add default labels support
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
This commits adds the following improvements:
* Improving Usability & Consistency in flow documents:
- vm_template -> template_id, generic as also VR templates are
considered
- vm_template_contents -> template_contents, same as above
- custom_attrs -> user_inputs, use same name convention as VM
Templates
- custom_attrs_values -> user_inputs_values, same as above
* Easier OneFlow operations
- template_contents (old vm_template_contents) is now in JSON format
instead of a String.
- better error reporting when merging template contents
* Role can use Virtual Routers as main element, supporting all role
features (user inputs, dependencies and network creation). Related
changes:
- Role data model structure has been totally refactored to accomodate
the new type (vmrole.rb and vrrole.rb)
- VR roles use VR OpenNebula API to create associated VMs.
- VR HA uses the cardinaility of the role
New attributes:
- type, new attribute to identify the role type VM or VR
- vrouter_ips, floating IP of each network managed
- vrouter_id, of the associated VR
* Improved Sunstone interface for flows, including support for the new
features.
co-authored-by: Victor Palma <vpalma@opennebula.io>
co-authored-by: Miguel E. Ruiz <mruiz@opennebula.io>
co-authored-by: Victor Hansson <vhansson@opennebula.io>
This commit includes metrics forecasting for VMs and Hosts. It provides
basic algorithms for linear regression.
* VM prediction includes the following metrics:
- cpu
- memory
- netrx
- nettx
- diskrdbytes
- diskwrbytes
- diskrdiops
- diskwriops
* Host prediction includes:
- usedcpu
- freecpu
- usedmemory
- freememory
- netrx
- nettx
The prediction framework uses a time series DB per VM (stored in the VM
folder) to compute the forecast.
co-authored-by: Marco Mancini <mmancini@opennebula.io>
co-authored-by: Jakub Walczak <jwalczak@opennebula.io>
co-authored-by: dmingolla <dmingolla@opennebula.io>
This commits introduces a new framework for OpenNebula, it is based on
standard the OpenNebula middleware access driver (mad) model. Benefits
compared to the current implementation:
* Less overhead on API server and streamlined communications
* Ease integration with third party schedulers
* New "optimize" action to balance the workload of a cluster
* Embedded Plan Manager to apply optimization and deployment plans with
custom parameters for the scheduling window
* Custom optimization policies per cluster
This commits introduces 2 schedulers:
* Rank scheduler based on the match-making algorithm present in 6.x
series
* OpenNebula DRS an optimization algorithm based on an ILP solver for
placement and cluster optimization
Also new API calls has been added for onecluster as well as the CLI
updates to expose them.
co-authored-by: MarioRobres <mrobres@opennebula.io>
co-authored-by: Pavel Czerny <pczerny@opennebula.io>
co-authored-by: Mirko Stojiljkovic <mstojiljkovic@opennebula.io>
co-authored-by: Valentyn Bohdan <vbohdan@opennebula.io>
New and very cool Micro-Frontend architecture for Sunstone
* Removed devexpress dependencies due to conflicts with @emotion/css
* Rewrote chartist component to use recharts instead
* FixedOpenNebula/one#6788
* Updated packages & shared deps
* Adds the ability to dynamically change the URL of a remote without
restarting
- All modules (remotes) are resolved from the
/etc/sunstone/remotes-config.json file
* Change to deterministic naming
* Enabled parallel builds for components
* Adds a minimal fallback editor for when modules fail to load
* Client bootstrapping test-loads all remotes, reverting to editor in
case it can't be resolved
* Server now handles failed parsing of remotes-config.json
- Sends a fallback config in such cases pointing all remotes to
localhost.
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
- Now are named local. SSH drivers will be distributed for running VMs
that use the SSH drivers.
- The new drivers optimize Qcow2 operations in the same way as the
shared TM driver, including:
- thin provisioning, when available a cow copy is made
- Qcow2 snapshots for the snapshot operations
- Some operations has been improved code-wise
- It should be a drop-in replacement for ssh
- New drivers are written in Ruby to accommodate future improvements
- By default new datastores will use "local" instead of "ssh"
co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>