Closed kevinsimper closed 8 years ago
@kevinsimper Heya, here are some commands you can try:
sudo linux kill
ps -fe | grep xhyve
sudo linux boot
again. If it fails again, check linux/stderr.log
and linux/stdout.log
for errorscat /var/db/dhcpd_leases
and see if there is an entry with a name
that matches the value of linux/hostname
. This is the thing that linux boot
waits to see (and times out if it doesn't see it within 15 seconds)ssh tc@<ip> -i linux/id_rsa
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?
@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...
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!
lol
Error: Timed out waiting for linux to boot
$ linux init
Version of xhyve that i have compiled from https://github.com/mist64/xhyve
Version of virtualbox
Running mac os x version 10.10.5. I have rebooted as well.