Error while setting up Vagrant box for Bahmni using vagrant up

HELLO… please help me, have downloaded tht vagrant box manually and and edited the following like this

"# Change this value as below = “my-bahmni-box”

Add this line to point the url to the

config.vm.box_url = “file:///d:/my-bahmni-vagrant/”

but when i execute the vagrant up command i this error about the sysntax "Microsoft Windows [Version 10.0.10240] © 2015 Microsoft Corporation. All rights reserved.

C:\Users\morenamt>cd bahmni vagrant The system cannot find the path specified.

C:\Users\morenamt>cd bahmni-vagrant

C:\Users\morenamt\bahmni-vagrant>vagrant up There is a syntax error in the following Vagrantfile. The syntax error message is reproduced below for convenience:

C:/Users/morenamt/bahmni-vagrant/Vagrantfile:6: syntax error, unexpected tIDENTIFIER, expecting keyword_end …ni-vagrant/" config.vm.box_check_update = true … ^


how can i resolve it?

Can you please paste the contents of the file “Vagrantfile” in your bahmni-vagrant folder? You can use to paste your file contents, and then put the pastebin link here in this discussion.

thank you for getting back to me… here is the link

do you have in your machine ?

yes i do have it @sravanthi17

I see two issues:

  1. Your file has “config.vm.box_url” and “config.vm.box_check_update” on the same line. They should be in different lines in the file, like this:

    config.vm.box_url = “file:///d:/my-bahmni-vagrant/”
    config.vm.box_check_update = true

  2. The path of the URL (config.vm.box_url) in the Vagrantfile is: file:///d:/my-bahmni-vagrant/ Is the location where you downloaded file, the one mentioned here, or is it different. If you downloaded the file to say: C:/Users/morenamt/, then you should set this variable to: file:///c:/Users/morenamt/ (note the slash direction is forward / ).

After you make these changes, and have downloaded in the right location, please retry. If you still get an error, please paste the Vagrantfile again, and the location of your file in your machine.

thank you let me get to it and see if it will work

Alternate solution:

vagrant box add my-bahmni-box file:///d:/my-bahmni-vagrant/
vagrant init my-bahmni-box

You can remove the line below from your file[quote=“morena, post:3, topic:7434”] config.vm.box_url = “file:///d:/my-bahmni-vagrant/” [/quote]

then go ahead with vagrant up

thank you guys a lot, its unpacking now

thanks again

thank you it worked

now um getting this error during the installatio

whats the output for vagrant box list

Are you running Vagrant on Windows 10? If yes, please read this discussion: Unable to download Vagrant box - cannot find box error (windows 10) A solution is mentioned at the bottom of the discussion.

where do i find tht file?

@gsluthrai did install those files before installing vagrant

i did install those files before i installed vagrant

Hi, Its the Virtualbox version compatability issue with Windows 10. Can you please follow the below thread for the fix.

i managed to fix the error but now im unable to login to the virtual machine, it requires localhost login username and password which i do not know nor setup