nlf / dlite

The simplest way to use Docker on OS X
MIT License
2.34k stars 53 forks source link

Creating disk: ERROR! #217

Open synic opened 7 years ago

synic commented 7 years ago

Bug Reports

dlite version 2.0.0-beta9

dlite should init

I get this message:

[Downloads]$ ./dlite init
WARNING: It appears you have already initialized dlite. Continuing will destroy your current virtual machine and its configuration.
Continue? (y/n): y

Virtual machine hostname [local.docker]:
Disk size (in gigabytes) [20]:
CPU cores to allocate to VM [2]:
Memory to allocate to VM (in gigabytes) [2]:
DNS server [192.168.64.1]:
Docker version [latest]:
Extra flags to pass to the docker daemon:
Allow direct connections to containers [yes]:

Saving configuration: done
Creating ssh key pair: |
Creating ssh key pair: done
Adding host to ssh config: done
Creating tool binaries: done
Creating disk: ERROR!
signal: abort trap

Just downloaded the latest release and ran ./dlite init

danquah commented 7 years ago

I'm getting this as well, going back to beta8 the problem went away again

synic commented 7 years ago

Yeah, running beta9 fixed the missing plist, but would not work. If I ran beta9 to get the network settings in place, I am then able to run beta8.

ErikZigo commented 7 years ago

Same problem for me

Snipon commented 7 years ago

Can confirm aswell. OSX 10.11.6, fish shell

nlf commented 7 years ago

Are all of you on OSX 10.11? I did run this build on 10.12 with an updated qcow tool, I'm wondering if the updated dependency isn't as friendly about cross-version compiling..

synic commented 7 years ago

I am on 10.12.2 :( I guess that must not be it.

nlf commented 7 years ago

huh, very strange. if you run ~/.dlite/bin/qcow-tool create --size=1GiB test.qcow in a terminal, does it work correctly? note that will create a file named test.qcow in whatever directory you're in that you'll want to delete, it's small though.

synic commented 7 years ago

This is what I get (on beta 9, it works fine on beta 8):

$ ~/.dlite/bin/qcow-tool create --size=1GiB test.qcow
dyld: Library not loaded: /usr/local/opt/libev/lib/libev.4.dylib
  Referenced from: /Users/synic/.dlite/bin/qcow-tool
  Reason: image not found
[1]    12055 abort      ~/.dlite/bin/qcow-tool create --size=1GiB test.qcow

Here's some more information:

$ ls -lh /usr/local/opt/libev/lib/libev.4.dylib
gls: cannot access '/usr/local/opt/libev/lib/libev.4.dylib': No such file or directory

Issuing brew install libev totally fixes it. Should this be compiled statically?

nlf commented 7 years ago

bingo! that's exactly the info I was looking for! I'll see what I can figure out

Snipon commented 7 years ago

Installed libev with brew, works like a charm now.

Velrok commented 7 years ago

Thanks @Snipon, that did it.