max-mapper / linux

run Linux on Yosemite easily from the CLI
http://hyperos.io/
458 stars 22 forks source link

Error: Timed out waiting for linux to boot #8

Closed kevinsimper closed 8 years ago

kevinsimper commented 8 years ago

Error: Timed out waiting for linux to boot

$ linux init

$ linux boot
Error: Timed out waiting for linux to boot

Version of xhyve that i have compiled from https://github.com/mist64/xhyve

$ xhyve -v
xhyve: v0.2.0

Version of virtualbox image

Running mac os x version 10.10.5. I have rebooted as well.

max-mapper commented 8 years ago

@kevinsimper Heya, here are some commands you can try:

ssh tc@<ip> -i linux/id_rsa
kevinsimper commented 8 years ago

I did not have any rogue xhyve processes, but something with permissions. Should have looked inside the ./linux folder.

Here is the errors that shows the denied permission

$ cat ./linux/stderr.log
Error return from kevent change: Invalid argument
Error return from kevent change: No such file or directory
Error return from kevent change: No such file or directory
Error return from kevent change: No such file or directory
$ cat ./linux/stdout.log
virtio_net: Could not create vmnet interface, permission denied or no entitlement?
virtio_net: Could not create vmnet interface, permission denied or no entitlement?
max-mapper commented 8 years ago

@kevinsimper the stderr.log looks normal (I get that output too), the stdout.log looks suspect, I have seen that happen sometimes when I kill an xhyve process and then run another one, sometimes I get that vmnet interface error the first time I try and run it, but running it a second time has fixed it every time for me.

For linux boot you have to use sudo to enable the virtual networking in xhyve, as it creates a virtual network device on OS X. There's a check in the code that is supposed to error if you aren't running it as uid 0, https://github.com/maxogden/linux/blob/master/cli.js#L55-L56, so I wonder why you didn't get that error message...

kevinsimper commented 8 years ago

That code is 6 hours old :joy: I had 2.0.1 which was 21 hours old.

The time it took me from installing it and updating virtual machine afterwards, I was slower than you! :joy:

Thank you for fixing this issue so fast!

You need to implement linux -v if you continue that speed!

max-mapper commented 8 years ago

lol