The builder imports a virtual machine or clones an existing virtual machine boots it,
and provisioning software within the OS, then shutting it down. The result of the
Hyper-V builder is a directory containing all the files necessary to run the virtual
The builder imports a virtual machine or clones an existing virtual machine boots it,
and provisioning software within the OS, then shutting it down. The result of the
Hyper-V builder is a directory containing all the files necessary to run the virtual
machine portably.
## Basic Example
@ -193,7 +193,7 @@ can be configured for this builder.
* `secondary_iso_images` (array of strings) - A list of iso paths to attached
to a VM when it is booted. This is most useful for unattended Windows
installs, which look for an `Autounattend.xml` file on removable media. By
default, no secondary iso will be attached.
default, no secondary iso will be attached.
- `shutdown_command` (string) - The command to use to gracefully shut down
the machine once all the provisioning is done. By default this is an empty
@ -275,7 +275,7 @@ will be replaced by the proper key:
- `<leftAltOn>``<rightAltOn>` - Simulates pressing and holding the alt key.
- `<leftCtrlOn>``<rightCtrlOn>` - Simulates pressing and holding the ctrl key.
- `<leftCtrlOn>``<rightCtrlOn>` - Simulates pressing and holding the ctrl key.
- `<leftShiftOn>``<rightShiftOn>` - Simulates pressing and holding the shift key.
@ -289,7 +289,7 @@ will be replaced by the proper key:
sending any additional keys. This is useful if you have to generally wait
for the UI to update before typing more.
When using modifier keys `ctrl`, `alt`, `shift` ensure that you release them, otherwise they will be held down until the machine reboots. Use lowercase characters as well inside modifiers. For example: to simulate ctrl+c use `<leftCtrlOn>c<leftCtrlOff>`.
When using modifier keys `ctrl`, `alt`, `shift` ensure that you release them, otherwise they will be held down until the machine reboots. Use lowercase characters as well inside modifiers. For example: to simulate ctrl+c use `<leftCtrlOn>c<leftCtrlOff>`.
In addition to the special keys, each command to type is treated as a
@ -250,7 +250,7 @@ SSH servers only allow you to attempt to authenticate a certain number of times.
googlecompute: fatal: [default]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added '[127.0.0.1]:62684' (RSA) to the list of known hosts.\r\nReceived disconnect from 127.0.0.1 port 62684:2: too many authentication failures\r\nAuthentication failed.\r\n", "unreachable": true}