-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
template: volatile disk #115
Comments
Hi @Yenya Disk in VM or templates are OpenNebula Images. In your case you have to create the swap Image before using it in your VM template. Disk are not created automatically by the template resource for the moment. Best regards |
@jaypif - thanks for your reply. In fact, not all disks in OpenNebula VM or template are OpenNebula images. Volatile disks are not images living in an existing datastore. They are defined in the template (or a VM), and created on the fly during the template instantiation (or during Deploy of a previously undeployed VM). They get destroyed during Undeploy or a VM destruction. They do not have image ID nor datastore ID. They can have type (e.g "swap"), and OpenNebula initializes them accordingly before handing them to the VM, and contextualization scripts then can directly use them (e.g. enabling swapping on them) without any further configuration inside the VM. They usually live on a physical disk of the physical host machine. So, what would be needed is to recognize that a particular Could this please be supported in future versions of Terraform provider? Thanks! -Yenya |
It is possible to try volatile disks in base opennebula the following way: have a running VM, preferably Linux with the contextualization package (https://github.com/OpenNebula/addon-context-linux) installed. Then run the following:
After that, you should be able to log into the VM and see the new swap space being enabled automatically. It would be nice if the Terraform provider can support this as well. Thanks, -Yenya |
Hi @Yenya OK thanks, We never though about that becauase we do not use this feature. We can think about adding this feature in the provider in a future release. Regards |
Hello,
is there any way how to specify a volatile disk in the template?
For a template created with Sunstone, I use the following template section to specify 2GB swap as a volatile disk:
Is it possible to do the same in the terraform provider? If so, how? I tried guessing:
But it did not work (
An argument named "type" is not expected here.
).The text was updated successfully, but these errors were encountered: