Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help needed to make custom che.properties work on boot2docker-hyperV in windows 10 #2384

Closed
thyeun opened this issue Sep 8, 2016 · 18 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@thyeun
Copy link

thyeun commented Sep 8, 2016

OS : windows 10 build 10240
Docker version : boot2docker v1.12.1
Virtual machine : Hyper-V

i'm not possible to using CLI "CHE_CONF_FOLDER" to make custom che.properties work on hyper-v, anyone here have any ideal? guide me or teach me pls

issue : after "set CHE_CONF_FOLDER=/c/Users/thomas/cong", when i check with "docker-machine ssh che" the folder inside "cong" are empty without the "che.properties" file

@ghost ghost added the kind/question Questions that haven't been identified as being feature requests or bugs. label Sep 8, 2016
@TylerJewell
Copy link

I don't have any experience with hyperv mounting with boot2docker. Have you done any research on which folders are acceptable for mounting? It could change. When you ssh into the VM, are there any root folders available in the VM that you can see?

@thyeun
Copy link
Author

thyeun commented Sep 8, 2016

@TylerJewell, the root folder that you mean, it is call "share folder" from VBox?

i think all folder can be mounted on hyper-V (after 8 hours of google-ing around), i found out that when i

set CHE_CONF_FOLDER=/c/Users/thomas/cong, the file che.properties are not copy/created inside the folder that i want to set as custom folder.

And it is different from CHE_DATA_FOLDER, data folder look like it copy the json file into the folder that i want to be set, but it is not the case for CHE_CONF_FOLDER.

very confusing but i have fun of it...hahaha

@ghost
Copy link

ghost commented Sep 8, 2016

@thyeun when you ssh into a machine, do you see /c/users directory when you run ls in the root?

@thyeun
Copy link
Author

thyeun commented Sep 8, 2016

@eivantsov good day, yes, i can see the folder but not the files!!! (not the file che.properties).

@ghost
Copy link

ghost commented Sep 8, 2016

You can see /thomas/cong directory as well?

@thyeun
Copy link
Author

thyeun commented Sep 8, 2016

@eivantsov yes i can see it, and i try all the folder, only spacing folder are not possible ("thyeun-che" folder possible too)

@TylerJewell
Copy link

can you "touch file" and does it generate in the host system? Can you screen shot the directory names and make sure case sensitivity is just right?

@thyeun
Copy link
Author

thyeun commented Sep 8, 2016

@TylerJewell and @eivantsov below picture show the result

ss15

no matter big "C" or small "c", it can see the folder inside ssh VM.

@TylerJewell
Copy link

This seems similar to your issue.
moby/moby#22981

@thyeun
Copy link
Author

thyeun commented Sep 8, 2016

@TylerJewell, i try this but hanging there almost 2 hours

ss16

@TylerJewell
Copy link

That means it worked. It doesn't return - it stays active during the mount period. Now you can see the files in other tools and consoles.

@thyeun
Copy link
Author

thyeun commented Sep 8, 2016

@TylerJewell not working, only mounted the folder, but inside the folder still empty without any files.

@TylerJewell
Copy link

TylerJewell commented Sep 8, 2016

This mount capability only works if you are able to mount folders into your hyperv VM. You haven't solved the first issue that you cited. Look on the docker forums - this is not a Che issue. You are having an issue with Docker & Hyperv. moby/moby#22981

@thyeun
Copy link
Author

thyeun commented Sep 9, 2016

still can't make the share folder working, but i'm using the "touch" to create the file and save the content by "vi editor", to make Oauth github working.

@TylerJewell
Copy link

That should be your ultimate test. You should be able to ssh into the VM, go to a mounted directory, create a file, edit it - and then see it appear on your host. If you can do that, then grab the exact folder path that you see within the VM and make sure it's identical to what you are setting with the CHE CLI variables.

@thyeun
Copy link
Author

thyeun commented Sep 9, 2016

that way is possible, i try it in "/mnt/sda1/var/lib/boot2docker/che.properties" is work even after restart docker/hyper-v

@thyeun
Copy link
Author

thyeun commented Sep 10, 2016

@TylerJewell, good day, no luck for me to make the share folder working for current knowledge that i have after try and error.

so, sorry for trouble you, and need you to close this "question", due to that it is not related with che.

@TylerJewell
Copy link

It seems - according to this particular comment - that this may not be a feature that is allowed with HyperV and VirtualBox yet.

moby/moby#22981 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

2 participants