Skip to content

Commit

Permalink
tests: Load vhost modules explicitly while Kata installing
Browse files Browse the repository at this point in the history
The default network backend of runtime-rs with Dragonball is vhost-net
after kata-containers#8609 merged. The tests might be failed if vhost modules are not
loaded.

Fixes: kata-containers#8717

Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
  • Loading branch information
justxuewei committed Dec 22, 2023
1 parent 32e1ba2 commit e697764
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ function install_kata() {
restart_crio_service
fi

load_vhost_mods
}

# creates a new kata configuration.toml hard link that
Expand Down Expand Up @@ -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() {
modprobe vhost
modprobe vhost_net
modprobe vhost_vsock
}

0 comments on commit e697764

Please sign in to comment.