nlf / dlite

The simplest way to use Docker on OS X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't init the dlite beta

synic opened this issue · comments

commented

Bug Reports

  • dlite version in use (run dlite --version):

dlite version 2.0.0-beta8
OS X 10.12.1 (16B2657)

  • expected behavior:

It to start dlite

  • actual behavior:
[Projects]$ dlite init

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]:
exit status 1
commented

what result do you get if you run the command

defaults read /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist Shared_Net_Address
commented
commented
[~]$ defaults read /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist Shared_Net_Address

2016-10-30 11:14:21.094 defaults[47286:709452]
The domain/default pair of (/Library/Preferences/SystemConfiguration/com.apple.vmnet.plist, Shared_Net_Address) does not exist
commented

that's interesting.. does that file exist? can you paste the contents here?

commented

It does not exist

commented

what version of OS X are you on? have you ever successfully used a previous version of dlite? or xhyve? docker for mac?

commented

I'm on Sierra, a fresh install. I've used dlite before, but not on a fresh Sierra install.

Docker for Mac works

edit: I have also used dlite on a non-fresh sierra install. Maybe it's not a file present in Serria but just happened to be there because I upgraded?

commented

it looks like the file may only exist if you've already run a vm that uses vmnet before, so this is kind of a chicken and egg problem. i'm probably going to add a fallback and assume a default so the init process can continue and if it turns out to be wrong i'll have to figure out a more robust solution

commented

Is there a way I can cause the file to be created so I can use the prerelease?

commented

sorry for the delay! i'll release another beta build today or tomorrow that doesn't need the file to exist. i added a fallback so it will use a default

I'm running also into this issue on 2.0.0-beta8 (same output on defaults read /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist Shared_Net_Address) - is there any way to get past this error yet without building from sources? or could you release another beta build please?

commented

just released 2.0.0-beta9 that has a fallback in place for this issue