Seeking Current Best Practices for Installing and Managing OpenNebula with PXE Boot and Autoconfiguration

Hello everyone,

I’m woking at a University Data Centre and i’m planning a deployment of OpenNebula on bare-metal servers and am looking for up-to-date best practices, particularly around PXE boot for unattended installations and autoconfiguration to streamline the process. My setup involves a scalable, automated environment that supports multi-tenant management, high availability, and robust security measures. To provide more context, I’ll outline my key requirements based on my actual setup and feature list.

First, I need guidance on using PXE boot effectively for network-based deployment. This includes setting up a PXE server with DHCP and TFTP to enable automatic booting of bare-metal servers, combined with tools like Kickstart or Cloud-Init for OS installation and initial configuration. I’m aiming for minimal manual intervention to ensure scalability and reliability in a production environment.

Additionally, autoconfiguration is crucial for my use case. I want to automate the provisioning of bare metal Servers with scripts that handle host registration, inventory management, and eventually also firmware updates right after boot. This ties into broader automation strategies using tools like Ansible or Terraform to manage configurations. The Host must use FC Connection to a Huawei Dorado SAN Array for Data Storage. The Servers are DELL-Server (R640,R750,R6515, R7515). Optionally HCI (Storage inside Compute-Server) with Ceph should also be possible.

From a management perspective, I’m focusing on multi-tenant features, such as integrating LDAP or OIDC for authentication, implementing strict quotas to prevent resource overuse, and enabling self-service portals via OpenNebula’s Sunstone UI. Security is a top priority, so I’m interested in best practices for RBAC, separated networks, Multi-VLAN usage, Microsegmentation and regular updates to mitigate vulnerabilities.

If anyone has recent experiences or recommendations—such as sample scripts, configuration templates, or pitfalls to avoid—please share them. I’m particularly curious about integrating these elements into a CI/CD pipeline for ongoing maintenance and how to handle challenges like ensuring fault tolerance during deployments and upgrades.

For the Beginning there will be around 500 VMs on ~20 Servers. What do you think? Is it possible to administer this Setup with 1 Person?

Thanks in advance for your insights and any resources you can point to!

Best regards,
Christian

Hello @fly,

Welcome to this forum, hope we can help you.

Regarding your question, OpenNebula does not address that use case to manage automatic configuration of baremetal servers using PXE, but it can be easily integrated with solutions like Metal As A Service MAAS from Ubuntu to bootstrap the hypervisors using built-in DHCP and PXE Ubuntu OS images. Using ansible playbooks it is possible to complete the node configuration and register it in OpenNebula.

For more info:
MAAS: https://maas.io/
OpenNebula Ansible Playbooks: Blogpost
OpenNebula Whitepaper: Cloud Provisioning Models and User Roles

Thank you for your reply. I will have a look at the provided links.

Does anyone already has done this with MAAS + OpenNebula?

The Ansible Playbooks only use NFS for shared storage if i read correctly. Does someone has playbooks to integrate FiberChannel LUNs into OpenNebula?

Thanks again.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.