|
15 | 15 | - Tjaž Eržen (@tjazsch) |
16 | 16 | short_description: Manage VM's disks |
17 | 17 | description: |
18 | | - Use this module to add, delete or set disks to the VM. |
19 | | - The module can also remove all disks from a VM, |
20 | | - attach and/or detach ISO image to the VM by ISO's name, |
21 | | - detach ISO image from the VM by disk's disk slot, |
22 | | - or update the existing disks (disk size etc.). |
23 | | -
|
24 | | - For a given VM, a particular disk is selected by combination of (I(type), I(disk_slot)). |
25 | | - I(disk_slot) means slot on bus (IDE, virtio or SCSI bus). |
26 | | -
|
27 | | - Changing disk I(type) can change its I(disk_slot). |
28 | | - For example, VM has one IDE CD-ROM and one virtio_disk. |
29 | | - The disk will have C(type=virtio_disk) and C(disk_slot=0), |
30 | | - and CD-ROM will have C(type=ide_cdrom) and C(disk_slot=0). |
31 | | - Changing disk I(type) to C(ide_disk) will as place disk on IDE bus, |
32 | | - after the CD-ROM, and disk will get C(disk_slot=1). |
| 18 | + - Use this module to add, delete or set disks to the VM. |
| 19 | + The module can also remove all disks from a VM, |
| 20 | + attach and/or detach ISO image to the VM by ISO's name, |
| 21 | + detach ISO image from the VM by disk's disk slot, |
| 22 | + or update the existing disks (disk size etc.). |
| 23 | +
|
| 24 | + - For a given VM, a particular disk is selected by combination of (I(type), I(disk_slot)). |
| 25 | + I(disk_slot) means slot on bus (IDE, virtio or SCSI bus). |
| 26 | +
|
| 27 | + - Changing disk I(type) can change its I(disk_slot). |
| 28 | + For example, VM has one IDE CD-ROM and one virtio_disk. |
| 29 | + The disk will have C(type=virtio_disk) and C(disk_slot=0), |
| 30 | + and CD-ROM will have C(type=ide_cdrom) and C(disk_slot=0). |
| 31 | + Changing disk I(type) to C(ide_disk) will as place disk on IDE bus, |
| 32 | + after the CD-ROM, and disk will get C(disk_slot=1). |
| 33 | +
|
| 34 | + - Module tries to remove disks from a running VM. |
| 35 | + If disk cannot be removed from running VM, |
| 36 | + then VM will be shutdown, disk will be removed, and VM is started back. |
| 37 | + - VM has C(shutdown_timeout) time to respond to shutdown request. |
| 38 | + If VM is not shutoff within I(shutdown_timeout), |
| 39 | + then a force shutdown will be issued if C(force_reboot=True). |
33 | 40 |
|
34 | 41 | version_added: 1.0.0 |
35 | 42 | extends_documentation_fragment: |
|
0 commit comments