Some distributions like Debian don't add sbin directories in non-root users PATH. But apparently
mkswap does not require root privileges.
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
This commit introduces a new API server based on the gRPC/Protobuf. The
API follow the design of the existing xml-rpc to ease the transition to
the new server and support the current state management engine.
Both API servers can be run in parallel.
Main changes:
- Decouple Generic and XMLRPC specific logic and add gRPC classes.
- Source code re-structure to include logic for each server
- New compilation options to generate gRPC stubs
- Client code for C++, Ruby, Python and Go
co-authored-by: Jan Orel <jorel@opennebula.io>
co-authored-by: Pavel Czerny <pczerny@opennebula.io>
co-authored-by: MarioRobres <mrobres@opennebula.io>
On q35 machines, OpenNebula < 7.0 sets the hd bus to IDE or SATA.
As a side effect, CDROM devices using the hd prefix (e.g. context disks)
were not attached to the SCSI bus.
In some cases, virtio-scsi fails to initialize during boot due to
resource exhaustion, causing CDROM devices on that bus not being
detected.
Observed kernel errors:
scsi host6: error handler thread failed to spawn, error = -11
virtio_scsi: probe of virtio1 failed with error -12
(Probably EAGAIN / ENOMEM errors)
Setting the MACHINE default when parsing VM attributes make the default
available when assigning the CD-ROM prefix.
NOTE: This prvents to set MACHINE at host or cluster level.
- pf-440 VMs uses IDE
- virt and q35 uses SATA/iSCSI
- arm64/vmm_exec_kvm.conf defaults ARCH set to aarch64
IMPORTANT: DEV_PREFIX in CD-ROM Images is now ignored and cleared for
new images. Users can still force a CD-ROM bus/prefix by setting it in the
DISK/CONTEXT attribute.
This commit adds support for memory encryption. It includes:
* A new VM template attribute to set memory encryption
* A host probe to gather the memory extensions available (SEV,
SEV-ES...)
* When selected AUTOMATIC_REQUIREMENTS include memory encryption as a
requirement
* Domain XML generation has been updated to include memory encryption
attributes
* A kvm.conf attribute MEMORY_TUNE_OFFSET to add an additional memory
offset for encryption.
Author: MarioRobres <mrobres@opennebula.io>
Author: Daniel Clavijo Coca <dclavijo@opennebula.io>
When using q35 machines and NUMA pinning a specialized PCIe topology is
generated to resemble the one presented by the host. In this case PCI
devices can be mapped to the incorrect node, missmatching CPU+Mem and PCI pinning.
(cherry picked from commit 52ba320d0dd27f85131da7e681d98dbef748eaeb)