Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Is there a sucessful way to set up bosh cli in windows ?? #376

Closed
jaikanthm opened this issue Jun 15, 2016 · 13 comments
Closed

Is there a sucessful way to set up bosh cli in windows ?? #376

jaikanthm opened this issue Jun 15, 2016 · 13 comments

Comments

@jaikanthm
Copy link

Trying to setup bosh cli in windows and have not been successful yet

@dpb587-pivotal
Copy link
Contributor

Hi - the cli doesn't currently support Windows. Since you created this issue on bosh-lite, I assume that is what you're using? If that's true, the bosh CLI is pre-installed in the bosh-lite VM, so what you could do is vagrant ssh and use the bosh command from inside the VM.

@cppforlife
Copy link
Contributor

Closing. We'll update docs when bosh-cli supports Windows.

@jaikanthm
Copy link
Author

thanks guys I did the same and I was somehow able to get bosh cli working directly from windows by installing the ruby dependencies but yeah ssh looks like a much easier option

@kseniatupytska
Copy link

Hi. Could you please clarify availability of bosh CLI on Windows.
I was able to install bosh CLI on Windows via gem and all commands were working.
But I got following exception during creating release of my project:
Cannot create tarball: tar (child): Cannot connect to C: resolve failed
tar: C:/Users/USER~1/AppData/Local/Temp/d20170203-8668-11opgm0/ruby20170203-8668-1rp5rgc.tgz: Cannot write: Broken pipe
tar: Child returned status 128

Is bosh CLI still shouldn't be used on Windows?

@allomov
Copy link
Contributor

allomov commented Feb 3, 2017

@otupytska from what I know there is no official support for windows for bosh_cli ruby gem. But did you try a new bosh-cli in golang? Since it is built in golang you can try to compile it on your windows host.

@kseniatupytska
Copy link

@allomov didn't here about new bosh-cli. Will try, thanks!

@shivdeepnv
Copy link

Hi Team, I am following the instructions in the link - https://bosh.io/docs/bosh-lite

I installed Bosh CLI using gem install on Windows (since it was an auto install, it picked up the version BOSH 1.3262.26.0)

Now, I need to install the BOSH Director VM for which I need to execute -

$ bosh create-env ~/workspace/bosh-deployment/bosh.yml \

but, it looks like create-env is an unknown command. How do I go about this?

@Infra-Red
Copy link

@shivdeepnv You should install Bosh CLI v2, bosh create-env command is not available in ruby bosh cli. https://bosh.io/docs/cli-v2.html#install

@ivandavidov
Copy link

ivandavidov commented Aug 9, 2017

@shivdeepnv - You are using the Ruby based bosh CLI (which is v1) but the instructions say that you have to install bosh CLI v2. If you install bosh CLI v2 you will find out that the create-env command is valid.

https://bosh.io/docs/cli-v2.html#install

@shivdeepnv
Copy link

Thanks @Infra-Red and @ivandavidov. I tried this, but it does not execute correctly. I downloaded bosh-cli-2.0.28-windows-amd64.exe and tried executing this, but it opens up a command prompt and it immediately closes. When I check the version of CLI it still states V 1.3xxxx

@ivandavidov
Copy link

I strongly suggest that you try this with Linux instead of Windows. I know that all of this should work on Windows but IMHO you will get much better results and user experience in Linux.

@xu-chenyang
Copy link

maybe no people still care about this, but here is a way to fix? this issue. @shivdeepnv
(not sure is this the right way to do though...)

  1. change the file name into bosh.exe.
    2.move the file to ....../system32/
    3.run bosh -v on cmd.
    4.you can use bosh command on windows now.

@Fydon
Copy link

Fydon commented Apr 11, 2018

@xu-chenyang As highlighted above the Windows build can be downloaded from bosh.io, however it has limitations highlighted in bosh-notes. There is no need to rename it or move it to system32.

If you want to help with getting this working on Windows, or want to see more details about setting up the environment, then see this post.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants