github.com/ratanraj/packer@v1.3.2/website/source/partials/builders/_boot-command.html.md (about) 1 There are a set of special keys available. If these are in your boot 2 command, they will be replaced by the proper key: 3 4 - `<bs>` - Backspace 5 6 - `<del>` - Delete 7 8 - `<enter> <return>` - Simulates an actual "enter" or "return" keypress. 9 10 - `<esc>` - Simulates pressing the escape key. 11 12 - `<tab>` - Simulates pressing the tab key. 13 14 - `<f1> - <f12>` - Simulates pressing a function key. 15 16 - `<up> <down> <left> <right>` - Simulates pressing an arrow key. 17 18 - `<spacebar>` - Simulates pressing the spacebar. 19 20 - `<insert>` - Simulates pressing the insert key. 21 22 - `<home> <end>` - Simulates pressing the home and end keys. 23 24 - `<pageUp> <pageDown>` - Simulates pressing the page up and page down keys. 25 26 - `<menu>` - Simulates pressing the Menu key. 27 28 - `<leftAlt> <rightAlt>` - Simulates pressing the alt key. 29 30 - `<leftCtrl> <rightCtrl>` - Simulates pressing the ctrl key. 31 32 - `<leftShift> <rightShift>` - Simulates pressing the shift key. 33 34 - `<leftSuper> <rightSuper>` - Simulates pressing the ⌘ or Windows key. 35 36 - `<wait> <wait5> <wait10>` - Adds a 1, 5 or 10 second pause before 37 sending any additional keys. This is useful if you have to generally wait 38 for the UI to update before typing more. 39 40 - `<waitXX>` - Add an arbitrary pause before sending any additional keys. The 41 format of `XX` is a sequence of positive decimal numbers, each with 42 optional fraction and a unit suffix, such as `300ms`, `1.5h` or `2h45m`. 43 Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. For example 44 `<wait10m>` or `<wait1m20s>` 45 46 47 ### On/Off variants 48 49 Any printable keyboard character, and of these "special" expressions, with the 50 exception of the `<wait>` types, can also be toggled on or off. For example, to 51 simulate ctrl+c, use `<leftCtrlOn>c<leftCtrlOff>`. Be sure to release them, 52 otherwise they will be held down until the machine reboots. 53 54 To hold the `c` key down, you would use `<cOn>`. Likewise, `<cOff>` to release. 55 56 ### Templates inside boot command 57 58 In addition to the special keys, each command to type is treated as a 59 [template engine](/docs/templates/engine.html). The 60 available variables are: 61 62 - `HTTPIP` and `HTTPPort` - The IP and port, respectively of an HTTP server 63 that is started serving the directory specified by the `http_directory` 64 configuration parameter. If `http_directory` isn't specified, these will be 65 blank! 66 - `Name` - The name of the VM. 67 68 For more examples of various boot commands, see the sample projects from our 69 [community templates page](/community-tools.html#templates). 70