Hi.
I want learn vagrnat.
My goal: create Windows 7 and execute batch file wich create "Hello World" 
folder.

My *Vagrantfile* :

# -*- mode: ruby -*-
> # vi: set ft=ruby :
>
> # Vagrantfile API/syntax version. Don't touch unless you know what you're 
> doing!
>
> Vagrant.require_version ">= 1.6"
>
> VAGRANTFILE_API_VERSION = "2"
>
> Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
>   # Configure base box parameters
>
>   # Windows XP, Windows 7, Windows 8 with IE.
>   # List of the boxes is next:
>   # vagrant-xp-ie6
>   # vagrant-xp-ie8
>   # vagrant-vista-ie7
>   # vagrant-win7-ie8
>   # vagrant-win7-ie9
>   # vagrant-win7-ie10
>   # vagrant-win7-ie11
>   # vagrant-win8-ie10
>   config.vm.box = "vagrant-windows7-enterprise"
>   config.vm.box_url = "http://aka.ms/vagrant-win7-ie10";
>
>   config.vm.communicator = "winrm"
>
>   # default passwords for boxes with IE
>   config.winrm.username = "IEUser"
>   config.winrm.password = "Passw0rd!"
>
>   # Port forward WinRM and RDP
>   config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", 
> auto_correct: true
>   config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", 
> auto_correct: true
>
>   # This shell provisioner installs chocolatey and puppet. Also runs 
> librarian-puppet.
>   config.vm.provision :shell, :path => "boostrap.cmd"
>
>   # use this if you want GUI running
>   config.vm.provider "virtualbox" do |vm|
>         vm.gui = true
>   end
> end
>

 boostrap.cmd has following content:

mkdir c:\\HelloWorld
>

But when vagrant create VM, I doesn't see any folder. I think this batch 
file didn't execute. How can Ii fix it? 

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/119e5dc0-3978-4df7-afab-3393d4ca383f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to