Skip to content

Interactive Vagrant commands #12

Description

@Metachemix1

Currently it's not possible to run a Vagrantfile that needs input because its output is sent to "Output window" instead of terminal.

The scenario below shows an example of what happens in the Output console.. It asks me which switch I want to use during the setup for my Docker environment in Vagrant. However I'm not able to input anything here because its read-only.

==> default: Successfully added box 'hashicorp/precise64' (v1.1.0) for 'hyperv'! ==> default: Configured startup memory is 4096 ==> default: Importing a Hyper-V instance default: Please choose a switch to attach to your Hyper-V instance. default: If none of these are appropriate, please open the Hyper-V manager default: to create a new virtual switch. default: default: 1) DockerNAT default: 2) Default Switch default: 3) nat default: 4) DockerEXT default: default: What switch would you like to use?

Is it possible to send the "Vagrant Up" output to a terminal shell which makes it interactive so I can provide input during the setup of my Vagrantfile?

Kind regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions