diff --git a/tests/common.bash b/tests/common.bash index 1604ff7172..e45911283e 100644 --- a/tests/common.bash +++ b/tests/common.bash @@ -393,6 +393,7 @@ function install_kata() { restart_crio_service fi + load_vhost_mods } # creates a new kata configuration.toml hard link that @@ -714,3 +715,10 @@ function get_test_version(){ get_dep_from_yaml_db "${db}" "${dependency}" } + +# Load vhost, vhost_net, vhost_vsock modules. +function load_vhost_mods() { + sudo modprobe vhost + sudo modprobe vhost_net + sudo modprobe vhost_vsock +}