Solution Verified in:
- OpenNebula: 5.12
This tutorial shows how to access the Docker Hub marketplace through Sunstone (OpenNebula's WebUI) to import an official Docker image and deploy an application as a Firecracker MicroVM.
To follow the tutorial you will need an OpenNebula cloud deployment with at least one Firecracker node.
If you prefer a video-tutorial, have a look at the following screencast, which follows the procedure described in this article step by step:
As a practical example, we are going to import the nginx application from the Docker Hub marketplace.
You can select nginx from the Apps tab.
Now download it by selecting the image datastore and optionally a tag of the Docker image
When nginx is imported from Docker Hub, a VM template is also created. You'll have to update the template.
You can have to add a virtual network to access the nginx application
A kernel image should be set in the OS section. The kernel boot parameters are already setup during the import process.
A kernel image for Firecracker microVMs can be imported from the OpenNebula Public Marketplace:
And the start script.
Don't forget to update the Custom Vars with a root password of your choice.
Once the VM template is updated you can instantiate it to create a Firecracker microVM.
You can access the Firecracker microVM through VNC using the password you set earlier at the template's Custom Vars section:
Now you can use your browser to access the nginx application by using the IP of your VM. Voilà! 🤓