[ovs-discuss] Unable to get openvswitch.ko installed (utilities/ovs-dev.py)

Stefan Mehner Stefan.Mehner at b-tu.de
Wed Jul 8 12:22:29 UTC 2020


Hi there,

I want to set up my development environment for OVS and found the hint that ''utilities/ovs-dev.py'' may be useful. 
So I followed the instructions provided by  "./ovs-dev.py doc" straightforward.

Everything up to "./ovs-dev.py conf make" was successful, but I am not able to install the kernel modules, since they are not existing in "datapath/linux/".

So I found the "modinst" parameter, but this also fails:

./ovs-dev.py modinst
------> sudo ./ovs-dev.py modinst
sudo: ./ovs-dev.py: command not found
Traceback (most recent call last):
  File "./ovs-dev.py", line 488, in <module>
    main()
  File "./ovs-dev.py", line 484, in main
    cmd()
  File "./ovs-dev.py", line 310, in modinst
    sudo()
  File "./ovs-dev.py", line 62, in sudo
    _sh(" ".join(["sudo"] + sys.argv), check=True)
  File "./ovs-dev.py", line 51, in _sh
    subprocess.check_call(args, shell=shell)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('sudo ./ovs-dev.py modinst',)' returned non-zero exit status 1.


Furthermore, running the switch is the same:

./ovs-dev.py run    
------> sudo ./ovs-dev.py run
sudo: ./ovs-dev.py: command not found
Traceback (most recent call last):
  File "./ovs-dev.py", line 488, in <module>
    main()
  File "./ovs-dev.py", line 484, in main
    cmd()
  File "./ovs-dev.py", line 229, in run
    sudo()
  File "./ovs-dev.py", line 62, in sudo
    _sh(" ".join(["sudo"] + sys.argv), check=True)
  File "./ovs-dev.py", line 51, in _sh
    subprocess.check_call(args, shell=shell)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('sudo ./ovs-dev.py run',)' returned non-zero exit status 1.


Do you have any idea how to get it working?

Best regards,

Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20200708/0bec55b8/attachment.html>


More information about the discuss mailing list