nlf / dlite

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

Can't init the dlite beta #209

Closed synic closed 8 years ago

synic commented 8 years ago

Bug Reports

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

It to start dlite

[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
nlf commented 8 years ago

what result do you get if you run the command

defaults read /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist Shared_Net_Address
synic commented 8 years ago
synic commented 8 years ago
[~]$ 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
nlf commented 8 years ago

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

synic commented 8 years ago

It does not exist

nlf commented 8 years ago

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

synic commented 8 years ago

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?

nlf commented 8 years ago

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

synic commented 7 years ago

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

nlf commented 7 years ago

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

bartrail commented 7 years ago

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?

nlf commented 7 years ago

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