Modprobe: FATAL: Module vcan not found in directory /lib/modules/4.15.0-1023-gcp


#1

I develop a nodejs native extension which requires socketcan kernel modules to be loaded (at leas the vcan) to perform automated tests. These are part of vanilla Xenial image but are missing in travis ci.

sudo modprobe can
sudo modprobe can_raw
sudo modprobe vcan

# Config virtual CAN device (vcan0)
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0

# Create vcan1 only
sudo ip link add dev vcan1 type vcan