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

Setup Ubuntu server - Virtualbox #975

Closed
xtbe opened this issue Apr 6, 2016 · 6 comments
Closed

Setup Ubuntu server - Virtualbox #975

xtbe opened this issue Apr 6, 2016 · 6 comments

Comments

@xtbe
Copy link

xtbe commented Apr 6, 2016

Hi,

I've installed the latest Che version on a Ubuntu server VM running on Virtualbox

Server version : Ubuntu Server 14.04 LTS
Kernel version : 4.2.0-35-generic
Java version installed : 1.8.0_77-b03
Docker server version installed : 1.10.3
Docker client version installed : 1.10.3
Virtualbox : 5.0.16 r105871
Port forwarding on port 8080 has been set up in order to be accessible from the host system

I manage to get Eclipse Che started and can access it via my browser
I choose to create a new simple HelloWorld Java project

After doing this I get the build screen but the process get stucked at "Inject and start workspace agent"
I get this message

image

I increased the timeout in the conf/che.properties file however I keep getting this error

image

What I'm missing that this doesn't work.

I was able to create an empty Java container and get to the IDE but there the workspace agent remains in initializing and when I create a small program I'm also not able to display the console.

So it looks like i'm missing something ? Any advice ? Or doesn't it work with this kind of setup?

Thank you in advance for the help and feedback!
Tom

@ghost
Copy link

ghost commented Apr 6, 2016

If you are running Che in a VM, you should either setup port forwarding in VirtualBox for 32768-65535 port range (in fact, 20-30 ports is enough if you do not run a lot of workspaces at a time) or run che with -r:$IP flag where $IP is IP of your VM.

@xtbe
Copy link
Author

xtbe commented Apr 6, 2016

Hi,

I made some additional tests

My network setup on VirtualBox is NAT

I opened ports 32768 - 32788 -> not working
I started Che with the ip address "-r" -> not working

I changed the network adapter settings of my VirtualBox to host-only adapter
You can't have port forwarding so i started che with the ip address of the vm

bin/che.sh -r 192.168.56.101 -i run --skip:uid

With this command i was able to connect on the host via the ip address above.
The container/machine seems now to be created however I get another error message

image

image

So looks like there's a little bit progress but we're not yet there

@ghost
Copy link

ghost commented Apr 6, 2016

Drop -i - you do not need it here.

@xtbe
Copy link
Author

xtbe commented Apr 6, 2016

Ok, leaving that one out did the trick and I got further in the process.

Now the issue is that with "host-only adapter" network setup, the sample project can't be created because with "host-only" the VM can't reach out to the net.

So i'm stuck with creating an empty workspace or I need to find another working network setup solution with Virtualbox.

@ghost
Copy link

ghost commented Apr 6, 2016

Looks like a process in the container cannot reach out to the world. You need to make sure you can ping github.com from within a container. Similar issue here - #979

@xtbe
Copy link
Author

xtbe commented Apr 6, 2016

Hi,

I was able to get it working !

I reversed my Virtualbox network setup back to NAT and added some additional ports in the port forwarding based on the information on https://eclipse-che.readme.io/docs/networking#native-process-for-che-native-docker-for-workspace

By including these ports the VM could reach the outworld, create the workspace and project, start the agent and run the terminal

For reference I include my port forwarding setup which works for Virtualbox

image

Tnx a lot for all the help and advice !

@xtbe xtbe closed this as completed Apr 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant