-
Notifications
You must be signed in to change notification settings - Fork 193
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
Issue while starting unik daemon in docker-machine setup #98
Comments
Ah, tried with sudo as well! No difference. Is this the UDP Server listening on 0.0.0.0:9967? Why does it point to Vbox process?
|
That's the error...
I can run the docker command manually: Which then gives
|
Hi, one step further: I had to start the daemon within the default docker-machine and open the port 3000. Now I get following:
At least I got the App tarball :) |
Ok, I found out that I have to run the daemon outside the docker-machine. Is there any way to remove the docker depenecy on this whole toolchain?
And the daemon logs heavily (so it works). But: inside docker-machine VM there is obviously no VirtualBox installation... |
How docker, virtualbox, and unik work together:unik runs on the same machine as virtualbox. it's controlling virtualbox by running commands with docker can run anywhere as long as the terminal session that unik is running in has access to it. if you can run docker is a necessary part of unik because we package unik's many dependencies (unikernel toolchains, disk image utils, etc.) as docker containers. it simplifies the work users have to do in order to build images with unik, and allows the devs to manage dependencies as part of unik's codebase. you should be running unik locally (or wherever you're running virtualbox), and simply give it access to the docker backend with |
in the last error it looks like you don't have a properly configured unik is booting with 0 providers configured (hence the error two solutions are, either: 2 - use a provider that targets a remote hypervisor, such as AWS, Vsphere, or Openstack (probably not what you are looking for) |
Hi, thanks for the suggestions, I already tried Maybe the issue is the mounting -v command. Have to check which directories have to be mounted where.... |
So, docker command is still failing, although manually docker daemon is responding:
|
Interesting. Are you running Unik as sudo? Unik calls docker by making exec calls on the docker binary, so it should just work |
Yes, I was running Unik as sudo. My docker exec is in /usr/local/bin/docker, but in the PATH as well. Don't know, but I have overcome the docker issue, now I am on (I guess it's some drive mapping issue):
What would be the command to start the listener manually? I am able to login to the container via
and can see the mounted DIR /opt/code filled with the files: gomaincaller.go and mainstub.c. go run gomaincaller.go gives: |
This is a different error than the one you posted before. Before it was
How did you solve this? The new error
means that the This sharing of files between unik and the docker containers it uses is essential to compiling unikernels. I recommend running |
Hi, I am running docker within a virtualbox (boot2docker) and using docker-machine for controling. Due to security issues I don't want to have running docker directly on my host. So I have VirtualBox running on my host, with a boot2docker client. I have installed unik on my host. This setup seems not to work due to missing libs/files (as seen above). I would need to understand which steps need which access, I might even help to enhance unik for docker-machine compatiblity. But I have to understand the interaction between the complete toolchain (e.g. sequence diagram, architecture or so). Meanwhile I will try and poke around and see what I understand. |
try the following steps from your host machine:
you should see the output if this doesn't work, the problem is the issue i mentioned; that directories are not shared properly with the docker-machine vm. if it works, the problem is something else |
hmm....is something different, I guess... :( ./gomaincaller.go:20[/tmp/go-build194448468/command-line-arguments/_obj/gomaincaller.cgo1.go:26]: undefined: main It works with PWD as well: |
try one more thing... if this is indeed the problem, you can set the environment variable |
Hi, I gave mounted the host /tmp into docker-machine after sharing directory to docker vm within virtualbox. And: now I got passed that error, but it's stuck in downloading fs layers (since 2 hours)
Will try at home. What I did to overcome the issue was: |
I think issue can be closed, I have the daemon running and now a different issue (not able to connect to localhost:3000). Will go along to try to solve this one..... |
thanks for the update. are you able to compile & build a unikernel? if so, i'll close this issue |
Still not able to compile, but I think at least I got beyond this issue here - so I would be ok to close (not to mix up topics) |
can you open a new issue with the logs from your failed compile attempt? I'll close this issue for now |
Hello,
I think i successfully have build the unik binary, but I have some issues in starting it. Actually I am on Ubuntu, but running docker in a seperate virtual machine for security reasons, no fancy setup, just using docker-machine. The binary already ended up within the docker-machine "default", I copied it to my local, bare-metal machine, I can execute it by calling:
unik daemon --debug --trace --logfile logs.txt
But then I get the error:
As I still don't have the understanding how virtualbox, docker, unik are playing together, I don't know where the issue could be.
The text was updated successfully, but these errors were encountered: