.bat file not running on guest machine while vagrant provision

234 views
Skip to first unread message

Mayank Suthar

unread,
Jun 22, 2017, 2:08:30 AM6/22/17
to Vagrant

Hi all,

I want to run the .bat file while provisioning vagrant that is should open Notepad ++ in guest machine, but it gives the following error. When the provision is given as "host_shell", that time it runs on host machine but not on guest. Is there any plugin required to run it on guest machine?

 

config.vm.provision "shell" do |s|

            s.inline = "Start '<C:\Program Files (x86)\Notepad++>' Notepad++.exe"

 end  

 

Thanks in Advance. 

Alvaro Miranda Aguilera

unread,
Jun 22, 2017, 3:46:36 AM6/22/17
to vagra...@googlegroups.com
Hello

If the guest is windows, please open a new session and run that command.

It should give the same error.

Vagrant is just sharing the error here, you need to have a valid script so vagrant can run it.

Alvaro.


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/05791ac3-b1e0-4959-8cfb-3c82803c45a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages