max-mapper / linux

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

Problem: `linux status` throws error if not booted once #14

Open julianpistorius opened 6 years ago

julianpistorius commented 6 years ago

Steps to reproduce:

npm install linux -g
linux init
linux status

Then I get this error:

/usr/local/lib/node_modules/linux/cli.js:232
      if (err) throw err
               ^

Error: ENOENT: no such file or directory, open '/Users/johndoe/some_project/linux/linux.pid'

Once I actually boot the VM for the first time it's fine:

$ sudo linux boot
Linux has booted { ip: '192.168.64.137',
  hostname: 'joe-pony-man-bearpig',
  pid: 1337 }
$ linux status
Linux is running { pid: 1337 }
max-mapper commented 6 years ago

Ahh good catch. I assumed people would boot the linux first before doing status