Skip to content

Commit

Permalink
F OpenNebula#115: VM: add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
treywelsh committed Nov 16, 2021
1 parent bb1e340 commit 0772de0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion website/docs/r/template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,12 @@ The following arguments are supported:

`disk` supports the following arguments

* `image_id` - (Required) ID of the image to attach to the virtual machine.
* `image_id` - (Optional) ID of the image to attach to the virtual machine. Conflicts with `type` and `format`.
* `size` - (Optional) Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
* `target` - (Optional) Target name device on the virtual machine. Depends of the image `dev_prefix`.
* `driver` - (Optional) OpenNebula image driver.
* `volatile_type` - (Optional) Type of the disk: `swap` or `fs`. Type `swap` is not supported in vcenter. Conflicts with `image_id`.
* `format` - (Optional) Format of the Image: `raw` or `qcow2`. Conflicts with `image_id`.

Minimum 1 item. Maximum 8 items.

Expand Down
4 changes: 3 additions & 1 deletion website/docs/r/virtual_machine.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,12 @@ The following arguments are supported:

`disk` supports the following arguments

* `image_id` - (Optional) ID of the image to attach to the virtual machine. Defaults to -1 if not set: this skip Image attchment to the VM.
* `image_id` - (Optional) ID of the image to attach to the virtual machine. Defaults to -1 if not set: this skip Image attchment to the VM. Conflicts with `volatile_type` and `format`.
* `size` - (Optional) Size (in MB) of the image. If set, it will resize the image disk to the targeted size. The size must be greater than the current one.
* `target` - (Optional) Target name device on the virtual machine. Depends of the image `dev_prefix`.
* `driver` - (Optional) OpenNebula image driver.
* `volatile_type` - (Optional) Type of the disk: `swap` or `fs`. Type `swap` is not supported in vcenter. Conflicts with `image_id`.
* `format` - (Optional) Format of the Image: `raw` or `qcow2`. Conflicts with `image_id`.

Minimum 1 item. Maximum 8 items.

Expand Down

0 comments on commit 0772de0

Please sign in to comment.