Skip to content

Commit

Permalink
feat: Add 'import_disk' parameter to qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesharr committed Sep 1, 2022
1 parent 3675a76 commit 590a361
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/resources/vm_qemu.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ See the [docs about disks](https://pve.proxmox.com/pve-docs/chapter-qm.html#qm_h
| `mbps_rd_max` | `int` | `0` | Maximum read speed in megabytes per second. `0` means unlimited. |
| `mbps_wr` | `int` | `0` | Maximum write speed in megabytes per second. `0` means unlimited. |
| `mbps_wr_max` | `int` | `0` | Maximum throttled write pool in megabytes per second. `0` means unlimited. |
| `import_from` | `str` | | Import disk image. Value is a path local to the node, for example `/disk/image.img`. |
| `file` | `str` | | The filename portion of the path to the drive’s backing volume. You shouldn't need to specify this, use the `storage` parameter instead. |
| `media` | `str` | `"disk"` | The drive’s media type. Options: `cdrom`, `disk`. |
| `volume` | `str` | | The full path to the drive’s backing volume including the storage pool name. You shouldn't need to specify this, use the `storage` parameter instead. |
Expand Down
7 changes: 7 additions & 0 deletions proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,13 @@ func resourceVmQemu() *schema.Resource {
Optional: true,
Default: 0,
},

// Import disk
"import_from": {
Type: schema.TypeString,
Optional: true,
},

// Misc
"file": {
Type: schema.TypeString,
Expand Down

0 comments on commit 590a361

Please sign in to comment.