Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start VM with networking #5

Closed
SimonTate opened this issue Jan 18, 2021 · 2 comments
Closed

Unable to start VM with networking #5

SimonTate opened this issue Jan 18, 2021 · 2 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@SimonTate
Copy link

Hi,

Firstly, thanks for this project. Extremely useful. 馃槃

I have noticed an issue, and found the root cause, but I'd like to discuss the direction of any PR.

The issue:

When running vmcli on main with the networking portion left in, the VM never starts and silently fails. If I remove the networking code, then vmcli starts the VM with no issues (except no networking, obviously).

Debugging this, found the following log in console: default 08:55:10.482714+0000 InternetSharing VMNet in NAT mode can't be started now due to an active InternetSharing session on en0.

The fix:

Disable InternetSharing. Simple as that. Then everything works as expected (with a NAT device, haven't tested bridge mode).

How should we "fix" this? A note in documentation? Or a check in the code for this scenario (if possible?)?

@gyf304 gyf304 self-assigned this Jan 18, 2021
@gyf304 gyf304 added bug Something isn't working documentation Improvements or additions to documentation labels Jan 18, 2021
@gyf304
Copy link
Owner

gyf304 commented Jan 19, 2021

I added a print to stderr if the VM fails to start, hope that will make things easier to debug. Also added a note for InternetSharing in README.md.
Thank you for your feedback!

@gyf304 gyf304 closed this as completed Jan 19, 2021
@SimonTate
Copy link
Author

Looks great. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants