media_mount
Mounts an existing host ISO in a powered-off Hyper-V VM's DVD drive and can set it as the first boot device without stopping the VM.
Instructions
Mount an existing host ISO in an existing VM DVD drive while the VM is Off, optionally making it first boot device. Never stops the VM automatically. Requires ALLOW_MEDIA and confirm_vm equal to vm_name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_name | Yes | ||
| iso_path | Yes | ||
| boot_first | No | ||
| confirm_vm | Yes | ||
| controller_number | No | ||
| controller_location | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||