Do this

vagrant ssh
cd /vagrant
dos2unix /vagrant/Vagrantfile
dos2unix /vagrant/*sh

if you are in windows, you need to edit files only with editors that
handle the end of line properly for linux

so time by time is better run dos2unix from msysgit or from inside the
vm if you don't have at the host

if that fix the issue, then use an editor that can handle those end of
line is a more linux friendly way

not much on the logs..

On Sat, May 2, 2015 at 12:27 AM, Raif Harik <[email protected]> wrote:
> Hi, I hope this is what you need please let me know.
> it's the vagrantfile, the setup file, the plain output and the debug output.
> r
> https://gist.github.com/reharik/274369d5953bee400c87
> this isn't quite what I have above but it's the result is pretty much the
> same I can recreate above too if you like,
> Thanks,
> R
>
>
> On Friday, May 1, 2015 at 2:43:49 AM UTC-5, Alvaro Miranda Aguilera wrote:
>>
>> hello
>>
>> Can you share a gist of your run
>>
>> vagrant halt
>> vagrant up --provision
>>
>> and other like
>>
>> vagrant halt
>>
>> VAGRANT_LOG=debug vagrant up --provision
>>
>> I will like to have a look
>>
>> I tested the first code in OSX and works, so I would like to see the
>> logs from your system
>>
>> Thanks
>> Alvaro
>>
>> On Fri, May 1, 2015 at 6:45 AM, Raif Harik <[email protected]> wrote:
>> > Hi, just trying to bump this issue.
>> > I have vagrant running in windows. I'm trying to get a script to run
>> > after
>> > machine is created. I've tried config.vm.provision both inline and
>> > external.
>> > I've run it in debug and there are no errors it simply just exits after
>> > it's
>> > done installing the machine
>> > my script looks like this
>> >
>> > # -*- mode: ruby -*-
>> > # vi: set ft=ruby :
>> >
>> > $script = <<SCRIPT
>> > echo I am provisioning...
>> > date > /etc/vagrant_provisioned_at
>> > SCRIPT
>> >
>> > Vagrant.configure("2") do |config|
>> >   config.vm.box = "ubuntu/trusty64"
>> >   config.vm.provision "shell", inline: $script
>> > end
>> >
>> >
>> > the provision part is straight from the docs. I also tried this
>> >
>> > # -*- mode: ruby -*-
>> > # vi: set ft=ruby :
>> >
>> > Vagrant.configure(2) do |config|
>> >   config.vm.box = "ubuntu/trusty64"
>> > end
>> >
>> > $script = <<SCRIPT
>> > echo I am provisioning...
>> > date > /etc/vagrant_provisioned_at
>> > SCRIPT
>> >
>> > Vagrant.configure("2") do |config|
>> >   config.vm.provision "shell", inline: $script
>> > end
>> >
>> > still no dice. It's almost as if it's not running my file but some
>> > default
>> > vagrantfile somewhere.  I put echo's in the vagrantfile and they were
>> > never
>> > hit, which made me think it was not using my file, but then I changed
>> > the
>> > name of the file and it did error out. So I don't know I'm at a loss.
>> > I'd be
>> > happy to post parts of my --debug log.  But it does seem as though this
>> > feature is non functional.
>> > Any help would be greatly appreciated.
>> > R
>> >
>> > --
>> > 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].
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to