0

我在我的 Win10 上创建了一个 VM(ubuntu16.04) 并通过共享文件夹中的以下命令编译 onos。

$ export ONOS_ROOT=/media/sf_EC/onos
$ source $ONOS_ROOT/tools/dev/bash_profile
$ ./tools/build/onos-buck run onos-local -- debug clean

我发现了与权限相关的错误(省略一些错误并显示最后 5 行)

File "/media/sf_EC/onos/bin/buck/programs/buck.py", line 71, in <module>
  File "/media/sf_EC/onos/bin/buck/programs/buck.py", line 67, in main
  File "/media/sf_EC/onos/bin/buck/programs/tracing.py", line 113, in write_to_dir
  File "/media/sf_EC/onos/bin/buck/programs/tracing.py", line 28, in create_symlink
OSError: [Errno 1] Operation not permitted

我已将我的用户(jack)添加到 vboxsf 组并重新启动它并通过以下命令确认。

 $ sudo usermod -a -G vboxsf jack

$ cat /etc/group | grep "vboxsf"显示:

vboxsf:x:999:jack

我已经在互联网上搜索了很长时间,但它对我没有用。请帮助或尝试给出一些想法如何在 vm 共享文件夹中编译 onos。

4

1 回答 1

0

One of the problems could be that you are using buck to build the controller. Buck is not used anymore, instead, we use Bazel to build ONOS.

If for any reason, you need to use buck and a fairly old version of ONOS, then your issue seems to be related to permissions. It might be that you cloned, or installed some tools with admin privileges and now, when building, you can not do it as regular user and need to do it as "sudo".

Still, I would clone the latest version and follow the instructions from the ONOS wiki.

于 2021-08-24T20:37:35.110 回答