churchers / vm-bhyve

Shell based, minimal dependency bhyve manager
BSD 2-Clause "Simplified" License
825 stars 174 forks source link

How to run vm from non-root user? #460

Closed rj-hwang closed 2 years ago

rj-hwang commented 2 years ago

When I run vm command in non-root user, I get this error:

$ vm list
/usr/local/sbin/vm: ERROR: virtual machines can only be managed by root
WanpengQian commented 2 years ago

currently vm-bhyve needs root permission. you can using sudo to permit non-root user.

churchers commented 2 years ago

Unfortunately bhyve currently only runs as root. Hopefully this will change in the future and we can allow creating/starting/stopped guests as other users.