-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
129 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
.. _firecracker: | ||
|
||
=========== | ||
Firecracker | ||
=========== | ||
|
||
OpenNebula 5.12 introduces the support for microVMs hypervisor called Firecracker which we will cover in this section. | ||
|
||
Similarly as for KVM or LXD for the firecracker you need to pass `--firecracker` option. As before, MiniONE prepares | ||
an image for you, specify the image from the Dockerhub registry using the `--fc-marketapp-name` option, by default it's | ||
the latest `alpine` image. As the Firecracker requires special kernel you can specify its name using `--fc-kernel-name` | ||
option usually you don't need to modify this value. | ||
|
||
|
||
+---------------------------------------+------------------------------------------------------+ | ||
| Parameter | Description | | ||
+=======================================+======================================================+ | ||
| ``--firecracker`` | Show all available command line switches. | | ||
+---------------------------------------+------------------------------------------------------+ | ||
| ``--fc-marketapp-name`` | Dockerhub image for Firecracker | | ||
+---------------------------------------+------------------------------------------------------+ | ||
| ``--fc-kernel-name`` | Market app kernel name for Firecracker. | | ||
+---------------------------------------+------------------------------------------------------+ | ||
|
||
The rest of the parameters, especially the networking remianed the same as for the KVM/LXD -- the integration is seemless. | ||
|
||
Examples | ||
======== | ||
|
||
Verbose deployment of Firecracker environment | ||
|
||
.. prompt:: bash # auto | ||
|
||
# bash minione --verbose --firecracker | ||
|
||
Verbose deployment of Firecracker, import latest ubuntu | ||
|
||
.. prompt:: bash # auto | ||
|
||
# bash minione --verbose --firecracker --fc-marketapp-name ubuntu | ||
|
||
|
||
.. _firecracker-dockerhub: | ||
|
||
====================================== | ||
Image from DockerHub and Kernel update | ||
====================================== | ||
|
||
Trying different image with Firecracker is a little bit different from KVM and LXD because Firecracker | ||
micro VMs require specific Kernel to be used. This Kernel is available on OpenNebula Public marketplace | ||
and Minione downloads it always during the installation. What remains is to link the Kernel from the VM | ||
template as we show in the following example. | ||
|
||
First, go to **Storage** -> **Apps** tab and pick an Image from the DockerHub, e.g. **nginx** like here | ||
|
||
|images-sunstone-dockerhub| | ||
|
||
Download the image to the only image datastore we have | ||
|
||
|images-sunstone-dockerhub-import-nginx| | ||
|
||
Now we need to update the VM template, navigate to the **Templates** -> **VMs** -> **nginx** and switch to **Template** | ||
tab. | ||
|
||
|images-sunstone-update-template| | ||
|
||
Click the **Update** button and switch to **Advanced** mode. Update the **OS** section with this snippet | ||
|
||
|
||
.. code:: | ||
OS = [ | ||
KERNEL_CMD = "console=ttyS0 reboot=k panic=1 pci=off i8042.noaux i8042.nomux i8042.nopnp i8042.dumbkbd", | ||
KERNEL_DS = "$FILE[IMAGE=\"kernel\"]" ] | ||
|images-sunstone-update-template-replace-kernel| | ||
|
||
After you save the template and wait until the image is fully downloaded it is ready to start the micro VM. | ||
|
||
.. |images-sunstone-dockerhub| image:: /images/sunstone-dockerhub.png | ||
.. |images-sunstone-dockerhub-import-nginx| image:: /images/sunstone-dockerhub-import-nginx.png | ||
.. |images-sunstone-update-template| image:: /images/sunstone-update-template.png | ||
.. |images-sunstone-update-template-replace-kernel| image:: /images/sunstone-update-template-replace-kernel.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters